]> git.baikalelectronics.ru Git - kernel.git/commitdiff
signal: Fix name of SIGEMT in #if defined() check
authorAndrew Clayton <andrew@digital-domain.net>
Wed, 1 Nov 2017 15:49:59 +0000 (15:49 +0000)
committerEric W. Biederman <ebiederm@xmission.com>
Wed, 1 Nov 2017 22:04:57 +0000 (17:04 -0500)
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>
kernel/signal.c

index 800a18f77732c14cf49d81bc615b01cd56d11933..8dcd8825b2dedf3f16c108808192f8751aa19c96 100644 (file)
@@ -2698,7 +2698,7 @@ enum siginfo_layout siginfo_layout(int sig, int si_code)
                        [SIGSEGV] = { NSIGSEGV, SIL_FAULT },
                        [SIGBUS]  = { NSIGBUS,  SIL_FAULT },
                        [SIGTRAP] = { NSIGTRAP, SIL_FAULT },
-#if defined(SIGMET) && defined(NSIGEMT)
+#if defined(SIGEMT) && defined(NSIGEMT)
                        [SIGEMT]  = { NSIGEMT,  SIL_FAULT },
 #endif
                        [SIGCHLD] = { NSIGCHLD, SIL_CHLD },