[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:39:30
Message-ID: S6833483Ab3AXMjw2t0hp/20130124123952Z+3850 () 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: a3afaa3309d3874679e764313a7569b8c0a76b50
Gitweb: http://git.linux-mips.org/g/ralf/linux/a3afaa3309d3
Branch: linux-3.6-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