MIPS: Octeon: Fix warning.
authorRalf Baechle <ralf@linux-mips.org>
Tue, 22 Jan 2013 17:03:45 +0000 (18:03 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 22 Jan 2013 17:07:46 +0000 (18:07 +0100)
commit757be67f565b4336f0d847f3ca9332e050c9ba83
treeecd6403707febbb2c4e954d2e12f978b4d94ab5d
parent4ea494b528ac1b9df9f0c77ba49e3e8ee108d9ec
MIPS: Octeon: Fix warning.

Cong Ding <dinggnu@gmail.com> reports correctly that the variable dummy
is being used without initialization.  That said, I can't reproduce this
warning with GCC 4.7.1.  However, since the variable dummy servces no
real purpose, I'm going for a different fix.  This fix
includes https://patchwork.linux-mips.org/patch/4801/ plus Geert's
suggestion to use ACCESS_ONCE().

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/cavium-octeon/executive/cvmx-l2c.c