diff options
author | Andrew Clayton <andrew@digital-domain.net> | 2017-11-01 11:49:59 -0400 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2017-11-01 18:04:57 -0400 |
commit | c3aff086ea11f17f5c0bec77bdbf4365ba6b41fc (patch) | |
tree | 0bc2b8fb3467e6dbcc6eb9a889ff182c0985b0e4 | |
parent | e19b205be43d11bff638cad4487008c48d21c103 (diff) |
signal: Fix name of SIGEMT in #if defined() check
Commit cc731525f26a ("signal: Remove kernel interal si_code magic")
added a check for SIGMET and NSIGEMT being defined. That SIGMET should
in fact be SIGEMT, with SIGEMT being defined in
arch/{alpha,mips,sparc}/include/uapi/asm/signal.h
This was actually pointed out by BenHutchings in a lwn.net comment
here https://lwn.net/Comments/734608/
Fixes: cc731525f26a ("signal: Remove kernel interal si_code magic")
Signed-off-by: Andrew Clayton <andrew@digital-domain.net>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
-rw-r--r-- | kernel/signal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/signal.c b/kernel/signal.c index 800a18f77732..8dcd8825b2de 100644 --- a/kernel/signal.c +++ b/kernel/signal.c | |||
@@ -2698,7 +2698,7 @@ enum siginfo_layout siginfo_layout(int sig, int si_code) | |||
2698 | [SIGSEGV] = { NSIGSEGV, SIL_FAULT }, | 2698 | [SIGSEGV] = { NSIGSEGV, SIL_FAULT }, |
2699 | [SIGBUS] = { NSIGBUS, SIL_FAULT }, | 2699 | [SIGBUS] = { NSIGBUS, SIL_FAULT }, |
2700 | [SIGTRAP] = { NSIGTRAP, SIL_FAULT }, | 2700 | [SIGTRAP] = { NSIGTRAP, SIL_FAULT }, |
2701 | #if defined(SIGMET) && defined(NSIGEMT) | 2701 | #if defined(SIGEMT) && defined(NSIGEMT) |
2702 | [SIGEMT] = { NSIGEMT, SIL_FAULT }, | 2702 | [SIGEMT] = { NSIGEMT, SIL_FAULT }, |
2703 | #endif | 2703 | #endif |
2704 | [SIGCHLD] = { NSIGCHLD, SIL_CHLD }, | 2704 | [SIGCHLD] = { NSIGCHLD, SIL_CHLD }, |