Skip to contentSkip to conversation

x86: sigframe.h: include headers for dependency

PATCH Applied Hiroshi Shimamoto 2 participants 4 messages Dec 18, 2008 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 x86: sigframe.h: include headers for dependency

From: Hiroshi Shimamoto <[email protected]>

Impact: cleanup

Include following headers for dependency.
asm/sigcontext.h
asm/siginfo.h
asm/ucontext.h

---
 arch/x86/include/asm/sigframe.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
arch/x86/include/asm/sigframe.h +4 -0
index 3bd0f42..4e0fe26 100644
@@ -1,6 +1,10 @@
 #ifndef _ASM_X86_SIGFRAME_H
 #define _ASM_X86_SIGFRAME_H
 
+#include <asm/sigcontext.h>
+#include <asm/siginfo.h>
+#include <asm/ucontext.h>
+
 #ifdef CONFIG_X86_32
 #define sigframe_ia32		sigframe
 #define rt_sigframe_ia32	rt_sigframe
Signature · 1 line
1.6.0.4
#1 lore raw

PATCH 2/3 x86: asm-offset_64: use rt_sigframe_ia32

From: Hiroshi Shimamoto <[email protected]>

Impact: cleanup

Use rt_sigframe_ia32 instead of rt_sigframe32.

---
 arch/x86/kernel/asm-offsets_64.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
arch/x86/kernel/asm-offsets_64.c +3 -1
index 7fcf63d..1d41d3f 100644
@@ -20,6 +20,8 @@
 
 #include <xen/interface/xen.h>
 
+#include <asm/sigframe.h>
+
 #define __NO_STUBS 1
 #undef __SYSCALL
 #undef _ASM_X86_UNISTD_64_H
@@ -87,7 +89,7 @@ int main(void)
 	BLANK();
 #undef ENTRY
 	DEFINE(IA32_RT_SIGFRAME_sigcontext,
-	       offsetof (struct rt_sigframe32, uc.uc_mcontext));
+	       offsetof (struct rt_sigframe_ia32, uc.uc_mcontext));
 	BLANK();
 #endif
 	DEFINE(pbe_address, offsetof(struct pbe, address));
Signature · 1 line
1.6.0.4
#2 lore raw

PATCH 3/3 x86: ia32.h: remove unused struct sigfram32 and rt_sigframe32

In reply to Hiroshi Shimamoto

From: Hiroshi Shimamoto <[email protected]>

Impact: cleanup

Remove struct sigfram32 and rt_sigframe32 because there is no user.

---
 arch/x86/include/asm/ia32.h |   18 ------------------
 1 files changed, 0 insertions(+), 18 deletions(-)
arch/x86/include/asm/ia32.h +0 -18
index 97989c0..50ca486 100644
@@ -129,24 +129,6 @@ typedef struct compat_siginfo {
 	} _sifields;
 } compat_siginfo_t;
 
-struct sigframe32 {
-	u32 pretcode;
-	int sig;
-	struct sigcontext_ia32 sc;
-	struct _fpstate_ia32 fpstate;
-	unsigned int extramask[_COMPAT_NSIG_WORDS-1];
-};
-
-struct rt_sigframe32 {
-	u32 pretcode;
-	int sig;
-	u32 pinfo;
-	u32 puc;
-	compat_siginfo_t info;
-	struct ucontext_ia32 uc;
-	struct _fpstate_ia32 fpstate;
-};
-
 struct ustat32 {
 	__u32			f_tfree;
 	compat_ino_t		f_tinode;
Signature · 1 line
1.6.0.4