[PATCH] Shmem: compilation fix for !NUMA case

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Pavel Emelyanov
Date: Thursday, March 13, 2008 - 4:32 am

The shmem_parse_mpol stub's 3rd argument is a pointer on flags:

  CC      mm/shmem.o
mm/shmem.c: In function ‘shmem_parse_options’:
mm/shmem.c:2228: warning: passing argument 3 of ‘shmem_parse_mpol’ makes integer from pointer without a cast

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>

---
 mm/shmem.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mm/shmem.c b/mm/shmem.c
index 281f6c2..e40f56d 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -1215,7 +1215,7 @@ static struct page *shmem_alloc_page(gfp_t gfp,
 #else /* !CONFIG_NUMA */
 #ifdef CONFIG_TMPFS
 static inline int shmem_parse_mpol(char *value, unsigned short *policy,
-				unsigned short flags, nodemask_t *policy_nodes)
+				unsigned short *flags, nodemask_t *policy_nodes)
 {
 	return 1;
 }
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Shmem: compilation fix for !NUMA case, Pavel Emelyanov, (Thu Mar 13, 4:32 am)