sparc: unify siginfo.h
PATCH 2/7 sparc: unify siginfo.h
Trivial unification where the sparc64 specific parts are protected using a signle ifdef/endif pair.
Signed-off-by Sam Ravnborg <[email protected]>
--- 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
@@ -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
@@ -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
@@ -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
From: Sam Ravnborg <[email protected]>
Date: Thu, 1 Jan 2009 21:03:05 +0100
Quoted 4 lines
Trivial unification where the sparc64 specific parts are protected using a signle ifdef/endif pair.
Signed-off-by Sam Ravnborg <[email protected]>
Applied, thanks Sam.