linux_dsm_epyc7002/arch
Eric W. Biederman 26da35010c signal/sh: Stop gcc warning about an impossible case in do_divide_error
Geert Uytterhoeven <geert@linux-m68k.org> reported:
>   HOSTLD  scripts/mod/modpost
>   CC      arch/sh/kernel/traps_32.o
> arch/sh/kernel/traps_32.c: In function 'do_divide_error':
> arch/sh/kernel/traps_32.c:606:17: error: 'code' may be used uninitialized in this function [-Werror=uninitialized]
> cc1: all warnings being treated as errors

It is clear from inspection that do_divide_error is only called with
TRAP_DIVZERO_ERROR or TRAP_DIVOVF_ERROR, as that is the way
set_exception_table_vec is called.  So let gcc know the other cases
should not be considered by returning in all other cases.

This removes the warning and let's the code continue to build.

Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Fixes: c65626c0cd ("signal/sh: Use force_sig_fault where appropriate")
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
2018-05-29 09:59:21 -05:00
..
alpha signal/alpha: Use force_sig_fault where appropriate 2018-04-25 10:40:59 -05:00
arc signal: Ensure every siginfo we send has all bits initialized 2018-04-25 10:40:51 -05:00
arm signal: Ensure every siginfo we send has all bits initialized 2018-04-25 10:40:51 -05:00
arm64 signal: Ensure every siginfo we send has all bits initialized 2018-04-25 10:40:51 -05:00
c6x signal/c6x: Use force_sig_fault where appropriate 2018-04-25 10:40:59 -05:00
h8300 h8300: remove extraneous __BIG_ENDIAN definition 2018-03-22 17:07:01 -07:00
hexagon signal/hexagon: Use force_sig_fault as appropriate 2018-04-25 10:41:00 -05:00
ia64 signal/ia64: Replace FPE_FIXME with FPE_FLTUNK 2018-04-25 10:40:55 -05:00
m68k signal/m68k: Use force_sig_fault where appropriate 2018-04-25 10:41:01 -05:00
microblaze signal/microblaze: Use force_sig_fault where appropriate 2018-04-25 10:41:02 -05:00
mips signal/mips: Report FPE_FLTUNK for undiagnosed floating point exceptions 2018-05-16 19:21:41 -05:00
nds32 signal/nds32: Use force_sig_fault where appropriate 2018-04-25 10:42:47 -05:00
nios2 signal/nios2: Use force_sig_fault where appropriate 2018-04-25 10:44:04 -05:00
openrisc signal/openrisc: Use force_sig_fault where appropriate 2018-04-25 10:44:05 -05:00
parisc signal/parisc: Use force_sig_fault where appropriate 2018-04-25 10:44:06 -05:00
powerpc signal/powerpc: Replace TRAP_FIXME with TRAP_UNK 2018-04-25 10:40:58 -05:00
riscv signal/riscv: Replace do_trap_siginfo with force_sig_fault 2018-04-25 10:44:07 -05:00
s390 signal/s390: Use force_sig_fault where appropriate 2018-04-25 10:44:08 -05:00
sh signal/sh: Stop gcc warning about an impossible case in do_divide_error 2018-05-29 09:59:21 -05:00
sparc signal/sparc: Use force_sig_fault where appropriate 2018-04-25 10:44:10 -05:00
um signal/um: More carefully relay signals in relay_signal. 2018-04-28 08:46:49 -05:00
unicore32 signal/unicore32: Use FPE_FLTUNK instead of 0 in ucf64_raise_sigfpe 2018-04-25 10:40:56 -05:00
x86 signal: Add TRAP_UNK si_code for undiagnosted trap exceptions 2018-04-25 10:40:56 -05:00
xtensa signal/xtensa: Use force_sig_fault where appropriate 2018-04-25 10:44:12 -05:00
.gitignore
Kconfig kbuild: remove incremental linking option 2018-03-26 02:01:19 +09:00