Skip to contentSkip to conversation

mm: Fix build on non-MMU systems

PATCH In review Guenter Roeck 2 participants 2 messages Oct 21, 2015 – Oct 22, 2015 MM rmap

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm: Fix build on non-MMU systems

Non-MMU systems fail to build with

In file included from init/main.c:50:0:
include/linux/rmap.h:274:1: error:
expected declaration specifiers or ‘...’ before ‘{’ token

Fixes c3f568752340 ("mm: support madvise(MADV_FREE)")
Cc Minchan Kim <[email protected]>
---
 include/linux/rmap.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/rmap.h +1 -1
index 978f65066fd5..853f4f3c6742 100644
@@ -270,7 +270,7 @@ int rmap_walk(struct page *page, struct rmap_walk_control *rwc);
 
 static inline int page_referenced(struct page *page, int is_locked,
 				  struct mem_cgroup *memcg,
-				  unsigned long *vm_flags,
+				  unsigned long *vm_flags)
 {
 	*vm_flags = 0;
 	return 0;
Signature · 1 line
2.1.4
#1 lore raw

Hello,

Andrew already had a fix.

Thanks for the report!

Quoted 29 lines · Guenter Roeck

Non-MMU systems fail to build with

In file included from init/main.c:50:0:
include/linux/rmap.h:274:1: error:
expected declaration specifiers or ‘...’ before ‘{’ token

Fixes c3f568752340 ("mm: support madvise(MADV_FREE)")
Cc Minchan Kim <[email protected]>
---
 include/linux/rmap.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/rmap.h +1 -1
index 978f65066fd5..853f4f3c6742 100644
@@ -270,7 +270,7 @@ int rmap_walk(struct page *page, struct rmap_walk_control *rwc);
 
 static inline int page_referenced(struct page *page, int is_locked,
 				  struct mem_cgroup *memcg,
-				  unsigned long *vm_flags,
+				  unsigned long *vm_flags)
 {
 	*vm_flags = 0;
 	return 0;
Signature · 1 line
2.1.4