Skip to contentSkip to conversation

sparc: unify siginfo.h

PATCH Applied Sam Ravnborg 2 participants 2 messages Jan 1, 2009 – Jan 3, 2009 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

PATCH 2/7 sparc: unify siginfo.h

Trivial unification where the sparc64 specific parts are protected using a signle ifdef/endif pair.

---
 arch/sparc/include/asm/Kbuild       |    3 --
 arch/sparc/include/asm/siginfo.h    |   43 +++++++++++++++++++++++++++++-----
 arch/sparc/include/asm/siginfo_32.h |   17 -------------
 arch/sparc/include/asm/siginfo_64.h |   32 --------------------------
 4 files changed, 36 insertions(+), 59 deletions(-)
 delete mode 100644 arch/sparc/include/asm/siginfo_32.h
 delete mode 100644 arch/sparc/include/asm/siginfo_64.h
arch/sparc/include/asm/Kbuild +0 -3
index 1209485..2eb9450 100644
@@ -1,9 +1,6 @@
 # User exported sparc header files
 include include/asm-generic/Kbuild.asm
 
-header-y += siginfo_32.h
-header-y += siginfo_64.h
-
 header-y += apc.h
 header-y += asi.h
 header-y += display7seg.h
arch/sparc/include/asm/siginfo.h +36 -7

44 lines not on this page · raw message

arch/sparc/include/asm/siginfo_32.h deleted +0 -17
deleted file mode 100644
index 3c71af1..0000000
@@ -1,17 +0,0 @@
-#ifndef _SPARC_SIGINFO_H
-#define _SPARC_SIGINFO_H
-
-#define __ARCH_SI_UID_T		unsigned int
-#define __ARCH_SI_TRAPNO
-
-#include <asm-generic/siginfo.h>
-
-#define SI_NOINFO	32767		/* no information in siginfo_t */
-
-/*
- * SIGEMT si_codes
- */
-#define EMT_TAGOVF	(__SI_FAULT|1)	/* tag overflow */
-#define NSIGEMT		1
-
-#endif /* !(_SPARC_SIGINFO_H) */
arch/sparc/include/asm/siginfo_64.h deleted +0 -32
deleted file mode 100644
index c96e6c3..0000000
@@ -1,32 +0,0 @@
-#ifndef _SPARC64_SIGINFO_H
-#define _SPARC64_SIGINFO_H
-
-#define SI_PAD_SIZE32	((SI_MAX_SIZE/sizeof(int)) - 3)
-
-#define __ARCH_SI_PREAMBLE_SIZE	(4 * sizeof(int))
-#define __ARCH_SI_TRAPNO
-#define __ARCH_SI_BAND_T int
-
-#include <asm-generic/siginfo.h>
-
-#ifdef __KERNEL__
-
-#include <linux/compat.h>
-
-#ifdef CONFIG_COMPAT
-
-struct compat_siginfo;
-
-#endif /* CONFIG_COMPAT */
-
-#endif /* __KERNEL__ */
-
-#define SI_NOINFO	32767		/* no information in siginfo_t */
-
-/*
- * SIGEMT si_codes
- */
-#define EMT_TAGOVF	(__SI_FAULT|1)	/* tag overflow */
-#define NSIGEMT		1
-
-#endif
Signature · 1 line
1.6.0.2.GIT