aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2018-04-18 20:15:59 -0400
committerEric W. Biederman <ebiederm@xmission.com>2018-10-03 10:42:13 -0400
commit018303a931a89b91dacd76140b8ebe51893dc5fe (patch)
treec8033044cf13b9ab8e2d5744363ccb6c4cbff236
parentf040d23c81860e59deef2089669f8ef330541f69 (diff)
signal/sparc: Move EMT_TAGOVF into the generic siginfo.h
When moving all of the architectures specific si_codes into siginfo.h, I apparently overlooked EMT_TAGOVF. Move it now. Remove the now redundant test in siginfo_layout for SIGEMT as now NSIGEMT is always defined. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
-rw-r--r--arch/sparc/include/uapi/asm/siginfo.h6
-rw-r--r--include/uapi/asm-generic/siginfo.h6
-rw-r--r--kernel/signal.c2
3 files changed, 7 insertions, 7 deletions
diff --git a/arch/sparc/include/uapi/asm/siginfo.h b/arch/sparc/include/uapi/asm/siginfo.h
index e7049550ac82..6c820ea0813b 100644
--- a/arch/sparc/include/uapi/asm/siginfo.h
+++ b/arch/sparc/include/uapi/asm/siginfo.h
@@ -17,10 +17,4 @@
17 17
18#define SI_NOINFO 32767 /* no information in siginfo_t */ 18#define SI_NOINFO 32767 /* no information in siginfo_t */
19 19
20/*
21 * SIGEMT si_codes
22 */
23#define EMT_TAGOVF 1 /* tag overflow */
24#define NSIGEMT 1
25
26#endif /* _UAPI__SPARC_SIGINFO_H */ 20#endif /* _UAPI__SPARC_SIGINFO_H */
diff --git a/include/uapi/asm-generic/siginfo.h b/include/uapi/asm-generic/siginfo.h
index 80e2a7227205..1811b8101937 100644
--- a/include/uapi/asm-generic/siginfo.h
+++ b/include/uapi/asm-generic/siginfo.h
@@ -286,6 +286,12 @@ typedef struct siginfo {
286#define NSIGSYS 1 286#define NSIGSYS 1
287 287
288/* 288/*
289 * SIGEMT si_codes
290 */
291#define EMT_TAGOVF 1 /* tag overflow */
292#define NSIGEMT 1
293
294/*
289 * sigevent definitions 295 * sigevent definitions
290 * 296 *
291 * It seems likely that SIGEV_THREAD will have to be handled from 297 * It seems likely that SIGEV_THREAD will have to be handled from
diff --git a/kernel/signal.c b/kernel/signal.c
index e16278710b36..7b49c31d3fdb 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -2856,7 +2856,7 @@ enum siginfo_layout siginfo_layout(int sig, int si_code)
2856 [SIGSEGV] = { NSIGSEGV, SIL_FAULT }, 2856 [SIGSEGV] = { NSIGSEGV, SIL_FAULT },
2857 [SIGBUS] = { NSIGBUS, SIL_FAULT }, 2857 [SIGBUS] = { NSIGBUS, SIL_FAULT },
2858 [SIGTRAP] = { NSIGTRAP, SIL_FAULT }, 2858 [SIGTRAP] = { NSIGTRAP, SIL_FAULT },
2859#if defined(SIGEMT) && defined(NSIGEMT) 2859#if defined(SIGEMT)
2860 [SIGEMT] = { NSIGEMT, SIL_FAULT }, 2860 [SIGEMT] = { NSIGEMT, SIL_FAULT },
2861#endif 2861#endif
2862 [SIGCHLD] = { NSIGCHLD, SIL_CHLD }, 2862 [SIGCHLD] = { NSIGCHLD, SIL_CHLD },