[2.6.8+][TRIVIAL] linux/mm.h compilation fix

From: Vinay K Nallamothu
Date: Fri Sep 03 2004 - 05:18:20 EST


Trivial compilation fix when shared memory is not enabled.

Signed-off-by: Vinay K Nallamothu <vinay.nallamothu@xxxxxxxxxxx>

--- linux-2.6.9-rc1-mm2/include/linux/mm.h 2004-09-03 13:01:52.000000000 +0530
+++ linux-2.6.9-rc1-mm2-nvk/include/linux/mm.h 2004-09-03 15:20:59.000000000 +0530
@@ -528,7 +528,7 @@
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_lock(a, b, c) /* always in memory, no need to lock */
#define shmem_set_policy(a, b) (0)
#define shmem_get_policy(a, b) (NULL)
#endif


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/