1
0
Fork 0
alistair23-linux/arch
Eric W. Biederman c65626c0cd signal/sh: Use force_sig_fault where appropriate
Filling in struct siginfo before calling force_sig_info a tedious and
error prone process, where once in a great while the wrong fields
are filled out, and siginfo has been inconsistently cleared.

Simplify this process by using the helper force_sig_fault.  Which
takes as a parameters all of the information it needs, ensures
all of the fiddly bits of filling in struct siginfo are done properly
and then calls force_sig_info.

In short about a 5 line reduction in code for every time force_sig_info
is called, which makes the calling function clearer.

Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Rich Felker <dalias@libc.org>
Cc: linux-sh@vger.kernel.org
Acked-by: Rich Felker <dalias@libc.org>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
2018-04-25 10:44:09 -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: Use force_sig_fault where appropriate 2018-04-25 10:41:02 -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: Use force_sig_fault where appropriate 2018-04-25 10:44:09 -05:00
sparc signal: Ensure every siginfo we send has all bits initialized 2018-04-25 10:40:51 -05:00
um signal: Ensure every siginfo we send has all bits initialized 2018-04-25 10:40:51 -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: Ensure every siginfo we send has all bits initialized 2018-04-25 10:40:51 -05:00
.gitignore
Kconfig kbuild: remove incremental linking option 2018-03-26 02:01:19 +09:00