c-r4k.c build fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux