diff options
author | James Hogan <jhogan@kernel.org> | 2017-11-13 16:12:06 +0000 |
---|---|---|
committer | Sasha Levin <alexander.levin@microsoft.com> | 2018-03-04 10:28:22 -0500 |
commit | 627af85d2fa7f1ad35514fb4dc475264c9069553 (patch) | |
tree | 0ac00756aef7ab9713d2d1f43f8b4becb9ae0f7f /fs | |
parent | fec5bb921e304cf6d0b956f38bdbbfb88272d2d7 (diff) |
EDAC, octeon: Fix an uninitialized variable warning
[ Upstream commit 544e92581a2ac44607d7cc602c6b54d18656f56d ]
Fix an uninitialized variable warning in the Octeon EDAC driver, as seen
in MIPS cavium_octeon_defconfig builds since v4.14 with Codescape GNU
Tools 2016.05-03:
drivers/edac/octeon_edac-lmc.c In function ‘octeon_lmc_edac_poll_o2’:
drivers/edac/octeon_edac-lmc.c:87:24: warning: ‘((long unsigned int*)&int_reg)[1]’ may \
be used uninitialized in this function [-Wmaybe-uninitialized]
if (int_reg.s.sec_err || int_reg.s.ded_err) {
^
Iinitialise the whole int_reg variable to zero before the conditional
assignments in the error injection case.
Signed-off-by: James Hogan <jhogan@kernel.org>
Acked-by: David Daney <david.daney@cavium.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Cc: linux-mips@linux-mips.org
Cc: <stable@vger.kernel.org> # 3.15+
Fixes: 1bc021e81565 ("EDAC: Octeon: Add error injection support")
Link: http://lkml.kernel.org/r/20171113161206.20990-1-james.hogan@mips.com
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions