signal/frv: Move the frv specific si_codes to asm-generic/siginfo.h
authorEric W. Biederman <ebiederm@xmission.com>
Sun, 14 Jan 2018 01:02:46 +0000 (19:02 -0600)
committerEric W. Biederman <ebiederm@xmission.com>
Mon, 15 Jan 2018 23:42:34 +0000 (17:42 -0600)
Having si_codes in many different files simply encourages duplicate definitions
that can cause problems later.  To avoid that merce the frv specific si_codes
into uapi/asm-generic/siginfo.h

This allows the removal of arch/frv/uapi/include/asm/siginfo.h as the last
last meaningful definition it held was FPE_MDAOVF.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
arch/frv/include/uapi/asm/Kbuild
arch/frv/include/uapi/asm/siginfo.h [deleted file]
include/uapi/asm-generic/siginfo.h

index 14a2e9af97e9992d87821e8f11276ecfef8e57cf..5354b0f84d41a1d1738c61bff989f83c8d5a6e46 100644 (file)
@@ -1,4 +1,5 @@
 # UAPI Header export list
 include include/uapi/asm-generic/Kbuild.asm
 
+generic-y += siginfo.h
 generic-y += bpf_perf_event.h
diff --git a/arch/frv/include/uapi/asm/siginfo.h b/arch/frv/include/uapi/asm/siginfo.h
deleted file mode 100644 (file)
index 4c8c975..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-#ifndef _ASM_SIGINFO_H
-#define _ASM_SIGINFO_H
-
-#include <linux/types.h>
-#include <asm-generic/siginfo.h>
-
-#define FPE_MDAOVF     9       /* media overflow */
-#undef NSIGFPE
-#define NSIGFPE                9
-
-#endif
-
index 2f0ae46076034d15f81999057fd7293f31653f09..f1c0af4f36a487e8edbcec18ffb4fd0c81c8ca5d 100644 (file)
@@ -204,6 +204,9 @@ typedef struct siginfo {
 #define FPE_FLTRES     6       /* floating point inexact result */
 #define FPE_FLTINV     7       /* floating point invalid operation */
 #define FPE_FLTSUB     8       /* subscript out of range */
+#ifdef __frv__
+# define FPE_MDAOVF    9       /* media overflow */
+#endif
 #ifdef __ia64__
 # define __FPE_DECOVF  9       /* decimal overflow */
 # define __FPE_DECDIV  10      /* decimal division by zero */