Skip to contentSkip to conversation

linux-next: build failure after merge of the akpm-current tree

DISCUSSION Stephen Rothwell 3 participants 3 messages Oct 21, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi Andrew,

After merging the akpm-current tree, today's linux-next build (arm allnoconfig and others) failed like this:

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

Caused by commit

e4f28388eb72 ("mm: simplify reclaim path for MADV_FREE")

Discovered after the linux-next release.

Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]
maintainer
#1 lore raw
Quoted 5 lines · On Wed, 21 Oct 2015 17:34:38 +1100 Stephen Rothwell <[email protected]>…

Hi Andrew,

After merging the akpm-current tree, today's linux-next build (arm allnoconfig and others) failed like this:

Quoted 8 lines

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

Caused by commit

e4f28388eb72 ("mm: simplify reclaim path for MADV_FREE")

Discovered after the linux-next release.

argh, we broke nommu.

include/linux/rmap.h renamed from include/linux/rmap.h~mm-dont-split-thp-page-when-syscall-is-called-fix-6-fix +1 -1
@@ -270,7 +270,7 @@ int rmap_walk(struct page *page, struct 
 
 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;
#2 lore raw
In reply to Stephen Rothwell

Hello,

Quoted 5 lines · Stephen Rothwell

Hi Andrew,

After merging the akpm-current tree, today's linux-next build (arm allnoconfig and others) failed like this:

Quoted 8 lines

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

Caused by commit

e4f28388eb72 ("mm: simplify reclaim path for MADV_FREE")

Discovered after the linux-next release.

It was my bad. Sorry about that.
Here patch goes. Maybe Andrew want to fold it to e4f28388eb72.

Thanks.

Quoted 1 line

From 1062bfcfcc65b4a019666ada3786e95e4b299df6 Mon Sep 17 00:00:00 2001

From: Minchan Kim <[email protected]>
Date: Wed, 21 Oct 2015 15:41:49 +0900
Subject: [PATCH] mm: fix compile error caused omitting parentheses

This patch fixes build error introudced by e4f28388eb72 ("mm: simplify reclaim path for MADV_FREE").

---
 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
1.9.1
Quoted 4 lines
Signature · 3 lines
-- 
Cheers,
Stephen Rothwell                    [email protected]