[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:59
Message-ID: S6833480Ab3AXMjCMikGN/20130124123902Z+3838 () 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: b9a09d2baa3fb566e63de6a41b6b779d7e621498
Gitweb: http://git.linux-mips.org/g/ralf/linux/b9a09d2baa3f
Branch: linux-3.3-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