Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] shm: CONFIG_SHMEM=n build fix

Fix bug found by Grant Coady <lkml@dodo.com.au>'s autobuild setup.

shmem_set_policy() and shmem_get_policy() are macros if !CONFIG_SHMEM, so this
doesn't work.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Andrew Morton and committed by
Linus Torvalds
6ade43fb 39bbb07d

+1 -1
+1 -1
ipc/shm.c
··· 170 170 .open = shm_open, /* callback for a new vm-area open */ 171 171 .close = shm_close, /* callback for when the vm-area is released */ 172 172 .nopage = shmem_nopage, 173 - #ifdef CONFIG_NUMA 173 + #if defined(CONFIG_NUMA) && defined(CONFIG_SHMEM) 174 174 .set_policy = shmem_set_policy, 175 175 .get_policy = shmem_get_policy, 176 176 #endif