[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-mips-cvs
Subject:    MIPS: Octeon: Fix warning.
From:       linux-mips () linux-mips ! org
Date:       2013-01-24 12:38:40
Message-ID: S6833472Ab3AXMinlYePR/20130124123843Z+3830 () eddie ! linux-mips ! org
[Download RAW message or body]

Author: Ralf Baechle <ralf@linux-mips.org> Tue Jan 22 18:03:45 2013 +0100
Commit: a30505d7c47f70f2b0001a261b5bb082ac8ef946
Gitweb: http://git.linux-mips.org/g/ralf/linux/a30505d7c47f
Branch: linux-3.1-stable

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>
(cherry picked from commit 2ff9ace08f98b00cbdb8eeb95a68d63c93281f04)

---

 arch/mips/cavium-octeon/executive/cvmx-l2c.c |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic