Skip to contentSkip to conversation

linux-next: upstream tree build failure

PATCH Applied Stephen Rothwell 3 participants 4 messages Apr 23, 2009

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

Hi all,

[I am now using gcc version 4.4.0 ...]

Today's linux-next build (powerpc ppc44x_defconfig) failed like this:

arch/powerpc/mm/tlb_nohash_low.S:206:6: error: #elif with no expression

Previous gcc versions didn't notice this because one of the preceding #ifs always evaluated to true. I have applied the following patch for today.

Signature · 18 lines
Cheers,
Stephen Rothwell                    [email protected]
http://www.canb.auug.org.au/~sfr/

From: Stephen Rothwell <[email protected]>
Date: Thu, 23 Apr 2009 16:00:47 +1000
Subject: [PATCH] powerpc: fix for long standing bug noticed by gcc 4.4.0

Previous gcc versions didn't notice this because one of the preceding

gcc 4.4.0 produced this error:

arch/powerpc/mm/tlb_nohash_low.S:206:6: error: #elif with no expression

Signed-off-by: Stephen Rothwell <[email protected]>
---
 arch/powerpc/mm/tlb_nohash_low.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/powerpc/mm/tlb_nohash_low.S +1 -1
index 45fed36..21e1b9a 100644
@@ -203,6 +203,6 @@ ALT_MMU_FTR_SECTION_END_IFCLR(MMU_FTR_USE_TLBILX)
 	isync
 1:	wrtee	r10
 	blr
-#elif
+#else
 #error Unsupported processor type !
 #endif
Signature · 1 line
1.6.2.3
Acked-by
#1 lore raw
Quoted 27 lines · Stephen Rothwell

Hi all,

[I am now using gcc version 4.4.0 ...]

Today's linux-next build (powerpc ppc44x_defconfig) failed like this:

arch/powerpc/mm/tlb_nohash_low.S:206:6: error: #elif with no expression

Previous gcc versions didn't notice this because one of the preceding #ifs always evaluated to true. I have applied the following patch for today.

Signature · 15 lines
Cheers,
Stephen Rothwell                    [email protected]
http://www.canb.auug.org.au/~sfr/

From: Stephen Rothwell <[email protected]>
Date: Thu, 23 Apr 2009 16:00:47 +1000
Subject: [PATCH] powerpc: fix for long standing bug noticed by gcc 4.4.0

Previous gcc versions didn't notice this because one of the preceding

gcc 4.4.0 produced this error:

arch/powerpc/mm/tlb_nohash_low.S:206:6: error: #elif with no expression

Signed-off-by: Stephen Rothwell <[email protected]>

Your changelog got truncated in the first sentence. No big deal.

I have a gcc 4.4.0 system as well. I'll try a bunch of various builds to see if it catches anything else. This fix looks good to me in the meantime.

josh

Quoted 16 lines

---
arch/powerpc/mm/tlb_nohash_low.S | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)
arch/powerpc/mm/tlb_nohash_low.S +0 -0
index 45fed36..21e1b9a 100644
@@ -203,6 +203,6 @@ ALT_MMU_FTR_SECTION_END_IFCLR(MMU_FTR_USE_TLBILX)
 	isync

1: wrtee r10
blr

arch/powerpc/mm/tlb_nohash_low.S +1 -1
-#elif
+#else

#error Unsupported processor type !
#endif

#2 lore raw

PATCH v2 1/1 powerpc: fix for long standing bug noticed by gcc 4.4.0

Previous gcc versions didn't notice this because one of the preceding #ifs always evaluated to true.

gcc 4.4.0 produced this error:

arch/powerpc/mm/tlb_nohash_low.S:206:6: error: #elif with no expression

---
 arch/powerpc/mm/tlb_nohash_low.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

v2: fixed up commit message, added Josh'd Ack.

arch/powerpc/mm/tlb_nohash_low.S +1 -1
index 45fed36..21e1b9a 100644
@@ -203,6 +203,6 @@ ALT_MMU_FTR_SECTION_END_IFCLR(MMU_FTR_USE_TLBILX)
 	isync
 1:	wrtee	r10
 	blr
-#elif
+#else
 #error Unsupported processor type !
 #endif
Signature · 7 lines
1.6.2.3


-- 
Cheers,
Stephen Rothwell                    [email protected]
http://www.canb.auug.org.au/~sfr/
Applied
#3 lore raw

Re: [PATCH v2] powerpc: fix for long standing bug noticed by gcc 4.4.0

Quoted 7 lines · Stephen Rothwell

Previous gcc versions didn't notice this because one of the preceding #ifs always evaluated to true.

gcc 4.4.0 produced this error:

arch/powerpc/mm/tlb_nohash_low.S:206:6: error: #elif with no expression

Quoted 7 lines

---
arch/powerpc/mm/tlb_nohash_low.S | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)

v2: fixed up commit message, added Josh'd Ack.

applied to merge. Picking this up as I'm touching tlb_nohash_low.S w/another "fix".

- k