Skip to contentSkip to conversation

: config1 is only used by MIPS32 and MIPS64

PATCH In review Juan Quintela 2 participants 2 messages Dec 18, 2002 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : config1 is only used by MIPS32 and MIPS64

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

mips/mm/tlb-r4k.c +4 -2
diff -u -r1.6.2.9 tlb-r4k.c
@@ -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)))
 		/*
Signature · 2 lines
In theory, practice and theory are the same, but in practice they 
are different -- Larry McVoy
#1 lore raw
Quoted 1 line · Juan Quintela

subject told everything

The code is broken anyway -- it shouldn't use #ifdef in the first place
-- that's what PRId is there for.

Signature · 3 lines
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: [email protected], PGP key available        +