]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: tlbex: Fix build error in R3000 code.
authorRalf Baechle <ralf@linux-mips.org>
Tue, 2 Aug 2011 23:52:48 +0000 (00:52 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 9 Aug 2011 08:16:27 +0000 (09:16 +0100)
commit6a9d62b1f7776db77398060da8dadccfdda0a7bc
tree0fde512a3aa59c5c3c57613ac58f9e3f9b0346b8
parentbcdae8c2daf0e0b9a0f04abc8a0ff29f113b3f71
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