MIPS: tlbex: Fix build error in R3000 code.
commit949cb4ca0aa53e97ea5f524536593ad2d2946b73
authorRalf Baechle <ralf@linux-mips.org>
Tue, 2 Aug 2011 23:52:48 +0000 (3 00:52 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 2 Aug 2011 23:52:48 +0000 (3 00:52 +0100)
tree0a97568f685c2b80b3c228184652241b8580e512
parent91c5f4b5e1c7e4641c97f2b8405ad33d900b067d
MIPS: tlbex: Fix build error in R3000 code.

Only some GCC versions such as gcc 4.2 notice that the variable wr in
build_r3000_tlb_modify_handler is used uninitialized.  When using one
of those GCCs the build will fail due to -Werror.  GCC 4.6 does not
warn about the uninitialized use of wr.

This issue was introduced by 7211f4d7a3dcbe57c5d396c334dca525315dceb2
[MIPS: Close races in TLB modify handlers.]

Reported-by: Ganesan Ramalingam <ganesan18@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/tlbex.c