aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2005-08-02 00:11:45 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-08-02 00:38:00 -0400
commit6ade43fbbcc3c12f0ddba112351d14d6c82ae476 (patch)
tree1e5651082607a90345a7f042ed4937c938e11483
parent39bbb07d7c0cf3e374831d1474e2246d9cabd931 (diff)
[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>
-rw-r--r--ipc/shm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc/shm.c b/ipc/shm.c
index cce022435dbc..1d6cf08d950b 100644
--- a/ipc/shm.c
+++ b/ipc/shm.c
@@ -170,7 +170,7 @@ static struct vm_operations_struct shm_vm_ops = {
170 .open = shm_open, /* callback for a new vm-area open */ 170 .open = shm_open, /* callback for a new vm-area open */
171 .close = shm_close, /* callback for when the vm-area is released */ 171 .close = shm_close, /* callback for when the vm-area is released */
172 .nopage = shmem_nopage, 172 .nopage = shmem_nopage,
173#ifdef CONFIG_NUMA 173#if defined(CONFIG_NUMA) && defined(CONFIG_SHMEM)
174 .set_policy = shmem_set_policy, 174 .set_policy = shmem_set_policy,
175 .get_policy = shmem_get_policy, 175 .get_policy = shmem_get_policy,
176#endif 176#endif