]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Fix shmem.c stubs
authorAndrew Morton <akpm@osdl.org>
Fri, 3 Sep 2004 03:20:35 +0000 (20:20 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 3 Sep 2004 03:20:35 +0000 (20:20 -0700)
Fix the build with CONFIG_SHMEM=n

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/mm.h

index 397236df38942b74e86338e8c83e8d9f60e27764..65ff5b5e896a006facf9522d944ec6f595960a69 100644 (file)
@@ -528,9 +528,9 @@ struct mempolicy *shmem_get_policy(struct vm_area_struct *vma,
 int shmem_lock(struct file *file, int lock, struct user_struct *user);
 #else
 #define shmem_nopage filemap_nopage
-#define shmem_lock(a, b) /* always in memory, no need to lock */
-#define shmem_set_policy(a, b) (0)
-#define shmem_get_policy(a, b) (NULL)
+#define shmem_lock(a, b, c)    ({0;})  /* always in memory, no need to lock */
+#define shmem_set_policy(a, b) (0)
+#define shmem_get_policy(a, b) (NULL)
 #endif
 struct file *shmem_file_setup(char *name, loff_t size, unsigned long flags);