[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>
This commit is contained in:
Andrew Morton 2005-08-01 21:11:45 -07:00 коммит произвёл Linus Torvalds
Родитель 39bbb07d7c
Коммит 6ade43fbbc
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -170,7 +170,7 @@ static struct vm_operations_struct shm_vm_ops = {
.open = shm_open, /* callback for a new vm-area open */ .open = shm_open, /* callback for a new vm-area open */
.close = shm_close, /* callback for when the vm-area is released */ .close = shm_close, /* callback for when the vm-area is released */
.nopage = shmem_nopage, .nopage = shmem_nopage,
#ifdef CONFIG_NUMA #if defined(CONFIG_NUMA) && defined(CONFIG_SHMEM)
.set_policy = shmem_set_policy, .set_policy = shmem_set_policy,
.get_policy = shmem_get_policy, .get_policy = shmem_get_policy,
#endif #endif