Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 1 participant 2 messages Dec 8, 2015

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

Hi Andrew,

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

arch/arm64/mm/mmap.c:54:1: error: unknown type name 'ifdef' arch/arm64/mm/mmap.c:55:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'if' arch/arm64/mm/mmap.c:57:2: error: 'else' without a previous 'if' arch/arm64/mm/mmap.c:58:2: error: #endif without #if

Caused by commit

2e4614190421 ("arm64-mm-support-arch_mmap_rnd_bits-v4")

An obvious typo :-(

I will add the missing '#' tomorrow if it si not fixed by then.

Reported by Mark's build bot.

Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]
#1 lore raw

Hi Andrew,

Quoted 11 lines · On Tue, 8 Dec 2015 21:51:40 +1100 Stephen Rothwell <[email protected]> wrote:

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

arch/arm64/mm/mmap.c:54:1: error: unknown type name 'ifdef' arch/arm64/mm/mmap.c:55:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'if' arch/arm64/mm/mmap.c:57:2: error: 'else' without a previous 'if' arch/arm64/mm/mmap.c:58:2: error: #endif without #if

Caused by commit

Quoted 7 lines

2e4614190421 ("arm64-mm-support-arch_mmap_rnd_bits-v4")

An obvious typo :-(

I will add the missing '#' tomorrow if it si not fixed by then.

Reported by Mark's build bot.

I have added this commit for today:

From: Stephen Rothwell <[email protected]>
Date: Wed, 9 Dec 2015 10:00:16 +1100
Subject: [PATCH] arm64-mm-support-arch_mmap_rnd_bits-v4-fix

---
 arch/arm64/mm/mmap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/mm/mmap.c +1 -1
index af461b935137..e59a75a308bc 100644
@@ -51,7 +51,7 @@ unsigned long arch_mmap_rnd(void)
 {
 	unsigned long rnd;
 
-ifdef CONFIG_COMPAT
+#ifdef CONFIG_COMPAT
 	if (test_thread_flag(TIF_32BIT))
 		rnd = (unsigned long)get_random_int() % (1 << mmap_rnd_compat_bits);
 	else
Signature · 5 lines
2.6.2

-- 
Cheers,
Stephen Rothwell                    [email protected]