linux-mips
[Top] [All Lists]

[PATCH]: config1 is only used by MIPS32 and MIPS64

To: linux mips mailing list <linux-mips@linux-mips.org>, Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH]: config1 is only used by MIPS32 and MIPS64
From: Juan Quintela <quintela@mandrakesoft.com>
Date: 18 Dec 2002 02:42:50 +0100
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Hi
        subject told everything

Later, Juan.

Index: arch/mips/mm/tlb-r4k.c
===================================================================
RCS file: /home/cvs/linux/arch/mips/mm/tlb-r4k.c,v
retrieving revision 1.6.2.9
diff -u -r1.6.2.9 tlb-r4k.c
--- arch/mips/mm/tlb-r4k.c      4 Dec 2002 23:50:23 -0000       1.6.2.9
+++ arch/mips/mm/tlb-r4k.c      18 Dec 2002 00:49:19 -0000
@@ -334,8 +334,10 @@
 
 static void __init probe_tlb(unsigned long config)
 {
-       unsigned int prid, config1;
-
+       unsigned int prid;
+#if defined(CONFIG_CPU_MIPS32) || defined (CONFIG_CPU_MIPS64)
+       unsigned int config1;
+#endif
        prid = read_c0_prid() & 0xff00;
        if (prid == PRID_IMP_RM7000 || !(config & (1 << 31)))
                /*


-- 
In theory, practice and theory are the same, but in practice they 
are different -- Larry McVoy

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