From: Matt Fleming Date: Wed, 4 May 2016 11:17:50 +0000 (+0100) Subject: ia64/unaligned: Silence another GCC warning about an uninitialised variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=787ca32dc704bde981760de01a3a7e6ce9835fdb;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ia64/unaligned: Silence another GCC warning about an uninitialised variable arch/ia64/kernel/unaligned.c: In function 'ia64_handle_unaligned': arch/ia64/kernel/unaligned.c:1385:16: warning: 'u.l' may be used uninitialized in this function [-Wmaybe-uninitialized] opcode = (u.l >> IA64_OPCODE_SHIFT) & IA64_OPCODE_MASK; ^ Signed-off-by: Matt Fleming Signed-off-by: Tony Luck --- diff --git a/arch/ia64/kernel/unaligned.c b/arch/ia64/kernel/unaligned.c index e7ae6088350a..7f0d31656b4d 100644 --- a/arch/ia64/kernel/unaligned.c +++ b/arch/ia64/kernel/unaligned.c @@ -1378,6 +1378,7 @@ ia64_handle_unaligned (unsigned long ifa, struct pt_regs *regs) * extract the instruction from the bundle given the slot number */ switch (ipsr->ri) { + default: case 0: u.l = (bundle[0] >> 5); break; case 1: u.l = (bundle[0] >> 46) | (bundle[1] << 18); break; case 2: u.l = (bundle[1] >> 23); break;