Skip to content

Commit

Permalink
consolidate declarations of k_sigaction
Browse files Browse the repository at this point in the history
Only alpha and sparc are unusual - they have ka_restorer in it.
And nobody needs that exposed to userland.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Feb 3, 2013
1 parent 6883da8 commit 92a3ce4
Show file tree
Hide file tree
Showing 19 changed files with 9 additions and 69 deletions.
5 changes: 1 addition & 4 deletions arch/alpha/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ struct sigaction {
sigset_t sa_mask; /* mask last for extensibility */
};

struct k_sigaction {
struct sigaction sa;
__sigrestore_t ka_restorer;
};
#define __ARCH_HAS_KA_RESTORER
#include <asm/sigcontext.h>
#endif
4 changes: 0 additions & 4 deletions arch/arm/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,5 @@ struct sigaction {
sigset_t sa_mask; /* mask last for extensibility */
};

struct k_sigaction {
struct sigaction sa;
};

#include <asm/sigcontext.h>
#endif
4 changes: 0 additions & 4 deletions arch/avr32/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ struct sigaction {
sigset_t sa_mask; /* mask last for extensibility */
};

struct k_sigaction {
struct sigaction sa;
};

#include <asm/sigcontext.h>
#undef __HAVE_ARCH_SIG_BITOPS

Expand Down
3 changes: 0 additions & 3 deletions arch/cris/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ struct sigaction {
sigset_t sa_mask; /* mask last for extensibility */
};

struct k_sigaction {
struct sigaction sa;
};
#include <asm/sigcontext.h>

#endif
4 changes: 0 additions & 4 deletions arch/h8300/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ struct sigaction {
sigset_t sa_mask; /* mask last for extensibility */
};

struct k_sigaction {
struct sigaction sa;
};

#include <asm/sigcontext.h>
#undef __HAVE_ARCH_SIG_BITOPS

Expand Down
4 changes: 0 additions & 4 deletions arch/ia64/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ struct sigaction {
sigset_t sa_mask; /* mask last for extensibility */
};

struct k_sigaction {
struct sigaction sa;
};

# include <asm/sigcontext.h>

# endif /* !__ASSEMBLY__ */
Expand Down
3 changes: 0 additions & 3 deletions arch/m32r/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ struct sigaction {
sigset_t sa_mask; /* mask last for extensibility */
};

struct k_sigaction {
struct sigaction sa;
};
#include <asm/sigcontext.h>

#undef __HAVE_ARCH_SIG_BITOPS
Expand Down
3 changes: 0 additions & 3 deletions arch/m68k/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ struct sigaction {
sigset_t sa_mask; /* mask last for extensibility */
};

struct k_sigaction {
struct sigaction sa;
};
#include <asm/sigcontext.h>

#ifndef CONFIG_CPU_HAS_NO_BITFIELDS
Expand Down
4 changes: 0 additions & 4 deletions arch/mips/include/uapi/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,6 @@ struct sigaction {
sigset_t sa_mask;
};

struct k_sigaction {
struct sigaction sa;
};

/* IRIX compatible stack_t */
typedef struct sigaltstack {
void __user *ss_sp;
Expand Down
3 changes: 0 additions & 3 deletions arch/mn10300/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ struct sigaction {
sigset_t sa_mask; /* mask last for extensibility */
};

struct k_sigaction {
struct sigaction sa;
};
#include <asm/sigcontext.h>

#endif /* _ASM_SIGNAL_H */
4 changes: 0 additions & 4 deletions arch/parisc/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ struct sigaction {
sigset_t sa_mask; /* mask last for extensibility */
};

struct k_sigaction {
struct sigaction sa;
};

#include <asm/sigcontext.h>

#endif /* !__ASSEMBLY */
Expand Down
4 changes: 0 additions & 4 deletions arch/powerpc/include/uapi/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,6 @@ struct sigaction {
sigset_t sa_mask; /* mask last for extensibility */
};

struct k_sigaction {
struct sigaction sa;
};

typedef struct sigaltstack {
void __user *ss_sp;
int ss_flags;
Expand Down
4 changes: 0 additions & 4 deletions arch/s390/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,4 @@ struct sigaction {
sigset_t sa_mask; /* mask last for extensibility */
};

struct k_sigaction {
struct sigaction sa;
};

#endif
5 changes: 1 addition & 4 deletions arch/sparc/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@
*/
#define SA_STATIC_ALLOC 0x8000

struct k_sigaction {
struct __new_sigaction sa;
void __user *ka_restorer;
};
#define __ARCH_HAS_KA_RESTORER

#endif /* !(__ASSEMBLY__) */
#endif /* !(__SPARC_SIGNAL_H) */
5 changes: 0 additions & 5 deletions arch/x86/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,6 @@ struct sigaction {
sigset_t sa_mask; /* mask last for extensibility */
};

struct k_sigaction {
struct sigaction sa;
};

#else /* __i386__ */
#endif /* !__i386__ */
#include <asm/sigcontext.h>

Expand Down
4 changes: 0 additions & 4 deletions arch/x86/include/uapi/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,6 @@ struct sigaction {
sigset_t sa_mask; /* mask last for extensibility */
};

struct k_sigaction {
struct sigaction sa;
};

#endif /* !__i386__ */

typedef struct sigaltstack {
Expand Down
4 changes: 0 additions & 4 deletions arch/xtensa/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ struct sigaction {
sigset_t sa_mask; /* mask last for extensibility */
};

struct k_sigaction {
struct sigaction sa;
};

#include <asm/sigcontext.h>

#endif /* __ASSEMBLY__ */
Expand Down
7 changes: 7 additions & 0 deletions include/linux/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,13 @@ extern void __set_current_blocked(const sigset_t *);
extern int show_unhandled_signals;
extern int sigsuspend(sigset_t *);

struct k_sigaction {
struct sigaction sa;
#ifdef __ARCH_HAS_KA_RESTORER
__sigrestore_t ka_restorer;
#endif
};

extern int get_signal_to_deliver(siginfo_t *info, struct k_sigaction *return_ka, struct pt_regs *regs, void *cookie);
extern void signal_delivered(int sig, siginfo_t *info, struct k_sigaction *ka, struct pt_regs *regs, int stepping);
extern void exit_signals(struct task_struct *tsk);
Expand Down
4 changes: 0 additions & 4 deletions include/uapi/asm-generic/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,6 @@ struct sigaction {
sigset_t sa_mask; /* mask last for extensibility */
};

struct k_sigaction {
struct sigaction sa;
};

typedef struct sigaltstack {
void __user *ss_sp;
int ss_flags;
Expand Down

0 comments on commit 92a3ce4

Please sign in to comment.