diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2018-05-29 17:40:11 +0300 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2018-05-29 17:59:21 +0300 |
commit | 26da35010c6d6ce317d511c8186585bdd8ab6629 (patch) | |
tree | 6c4eae125c289bae0873a4132355890c29b85aff /arch/nds32 | |
parent | 0bb0a1149e6fb6d8cfdcbcb2dc54d9a7b37db718 (diff) | |
download | linux-26da35010c6d6ce317d511c8186585bdd8ab6629.tar.xz |
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: c65626c0cd4d ("signal/sh: Use force_sig_fault where appropriate")
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'arch/nds32')
0 files changed, 0 insertions, 0 deletions