summaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/smp.c
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2012-09-14 11:09:52 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2012-09-26 15:45:23 +0200
commit41459d36cf0d57813017dae6080a879cc038e5fe (patch)
tree61c0baebaf1ed70a5c733668f93961f9e903f1ae /arch/s390/kernel/smp.c
parent6b563d8c26735a76d84664d1b48271c432d63983 (diff)
downloadlinux-stable-41459d36cf0d57813017dae6080a879cc038e5fe.tar.gz
linux-stable-41459d36cf0d57813017dae6080a879cc038e5fe.tar.bz2
linux-stable-41459d36cf0d57813017dae6080a879cc038e5fe.zip
s390: add uninitialized_var() to suppress false positive compiler warnings
Get rid of these: arch/s390/kernel/smp.c:134:19: warning: ‘status’ may be used uninitialized in this function [-Wuninitialized] arch/s390/mm/pgtable.c:641:10: warning: ‘table’ may be used uninitialized in this function [-Wuninitialized] arch/s390/mm/pgtable.c:644:12: warning: ‘page’ may be used uninitialized in this function [-Wuninitialized] drivers/s390/cio/cio.c:1037:14: warning: ‘schid’ may be used uninitialized in this function [-Wuninitialized] Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/smp.c')
-rw-r--r--arch/s390/kernel/smp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/smp.c b/arch/s390/kernel/smp.c
index 8676aab6ea6a..ea431e551c6b 100644
--- a/arch/s390/kernel/smp.c
+++ b/arch/s390/kernel/smp.c
@@ -126,7 +126,7 @@ static int pcpu_sigp_retry(struct pcpu *pcpu, u8 order, u32 parm)
static inline int pcpu_stopped(struct pcpu *pcpu)
{
- u32 status;
+ u32 uninitialized_var(status);
if (__pcpu_sigp(pcpu->address, SIGP_SENSE,
0, &status) != SIGP_CC_STATUS_STORED)