Linux MIPS Architecture development
 help / color / mirror / Atom feed
* c-r4k.c build fix
@ 2003-04-23  3:18 Atsushi Nemoto
  2003-04-23 15:20 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Atsushi Nemoto @ 2003-04-23  3:18 UTC (permalink / raw)
  To: linux-mips, ralf

If neither R4600_V1_HIT_CACHEOP_WAR or R4600_V2_HIT_CACHEOP_WAR were
defined (i.e. R4600_HIT_CACHEOP_WAR_DECL was empty), gcc 2.x can not
compile c-r4k.c.

c-r4k.c: In function `r4k_blast_dcache_page':
c-r4k.c:138: parse error before `static'

Here is a patch.

--- linux-mips-cvs/arch/mips/mm/c-r4k.c	Fri Apr 18 10:23:03 2003
+++ linux.new/arch/mips/mm/c-r4k.c	Wed Apr 23 12:09:58 2003
@@ -134,9 +134,9 @@
 
 static void r4k_blast_dcache_page(unsigned long addr)
 {
-	R4600_HIT_CACHEOP_WAR_DECL;
 	static void *l = &&init;
 	unsigned long dc_lsize;
+	R4600_HIT_CACHEOP_WAR_DECL;
 
 	goto *l;
 
---
Atsushi Nemoto

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: c-r4k.c build fix
  2003-04-23  3:18 c-r4k.c build fix Atsushi Nemoto
@ 2003-04-23 15:20 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2003-04-23 15:20 UTC (permalink / raw)
  To: Atsushi Nemoto; +Cc: linux-mips

On Wed, Apr 23, 2003 at 12:18:36PM +0900, Atsushi Nemoto wrote:

> If neither R4600_V1_HIT_CACHEOP_WAR or R4600_V2_HIT_CACHEOP_WAR were
> defined (i.e. R4600_HIT_CACHEOP_WAR_DECL was empty), gcc 2.x can not
> compile c-r4k.c.
> 
> c-r4k.c: In function `r4k_blast_dcache_page':
> c-r4k.c:138: parse error before `static'
> 
> Here is a patch.

Thanks,

  Ralf

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-04-23 15:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-23  3:18 c-r4k.c build fix Atsushi Nemoto
2003-04-23 15:20 ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox