x86: sigframe.h: include headers for dependency
PATCH 1/3 x86: sigframe.h: include headers for dependency
From: Hiroshi Shimamoto <[email protected]>
Impact: cleanup
Include following headers for dependency.asm/sigcontext.hasm/siginfo.hasm/ucontext.h
Signed-off-by Hiroshi Shimamoto <[email protected]>
--- arch/x86/include/asm/sigframe.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
arch/x86/include/asm/sigframe.h +4 -0
@@ -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
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.
Signed-off-by Hiroshi Shimamoto <[email protected]>
--- arch/x86/kernel/asm-offsets_64.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
arch/x86/kernel/asm-offsets_64.c +3 -1
@@ -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 ENTRYDEFINE (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
PATCH 3/3 x86: ia32.h: remove unused struct sigfram32 and rt_sigframe32
In reply to Hiroshi ShimamotoFrom: Hiroshi Shimamoto <[email protected]>
Impact: cleanup
Remove struct sigfram32 and rt_sigframe32 because there is no user.
Signed-off-by Hiroshi Shimamoto <[email protected]>
--- arch/x86/include/asm/ia32.h | 18 ------------------ 1 files changed, 0 insertions(+), 18 deletions(-)
arch/x86/include/asm/ia32.h +0 -18
@@ -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
Applied to tip:x86/signal, thanks!
-hpa
Signature · 2 lines
H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.