linux-mips
[Top] [All Lists]

c-r4k.c build fix

To: linux-mips@linux-mips.org, ralf@linux-mips.org
Subject: c-r4k.c build fix
From: Atsushi Nemoto <nemoto@toshiba-tops.co.jp>
Date: Wed, 23 Apr 2003 12:18:36 +0900 (JST)
Organization: TOSHIBA Personal Computer System Corporation
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
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

<Prev in Thread] Current Thread [Next in Thread>