Re: [PATCH 45/45] include/uapi/asm-generic/ucontext.h: include signal.h and sigcontext.h

2015-03-10 Thread Mikko Rapeli
On Tue, Feb 17, 2015 at 10:10:42AM +0100, Arnd Bergmann wrote: > On Tuesday 17 February 2015 00:05:48 Mikko Rapeli wrote: > > #ifndef __ASM_GENERIC_UCONTEXT_H > > #define __ASM_GENERIC_UCONTEXT_H > > > > +#include > > +#include > > + > > struct ucontext { > > > > Including another

Re: [PATCH 45/45] include/uapi/asm-generic/ucontext.h: include signal.h and sigcontext.h

2015-03-10 Thread Mikko Rapeli
On Tue, Feb 17, 2015 at 10:10:42AM +0100, Arnd Bergmann wrote: On Tuesday 17 February 2015 00:05:48 Mikko Rapeli wrote: #ifndef __ASM_GENERIC_UCONTEXT_H #define __ASM_GENERIC_UCONTEXT_H +#include asm-generic/signal.h +#include asm/sigcontext.h + struct ucontext {

Re: [PATCH 45/45] include/uapi/asm-generic/ucontext.h: include signal.h and sigcontext.h

2015-02-17 Thread Arnd Bergmann
On Tuesday 17 February 2015 00:05:48 Mikko Rapeli wrote: > #ifndef __ASM_GENERIC_UCONTEXT_H > #define __ASM_GENERIC_UCONTEXT_H > > +#include > +#include > + > struct ucontext { > Including another asm-generic header here is a bad idea: it breaks if an architecture overrides asm/signal.h

Re: [PATCH 45/45] include/uapi/asm-generic/ucontext.h: include signal.h and sigcontext.h

2015-02-17 Thread Arnd Bergmann
On Tuesday 17 February 2015 00:05:48 Mikko Rapeli wrote: #ifndef __ASM_GENERIC_UCONTEXT_H #define __ASM_GENERIC_UCONTEXT_H +#include asm-generic/signal.h +#include asm/sigcontext.h + struct ucontext { Including another asm-generic header here is a bad idea: it breaks if an

[PATCH 45/45] include/uapi/asm-generic/ucontext.h: include signal.h and sigcontext.h

2015-02-16 Thread Mikko Rapeli
Fixes userspace compiler errors: error: unknown type name ‘stack_t’ error: field ‘uc_mcontext’ has incomplete type struct sigcontext uc_mcontext; error: unknown type name ‘sigset_t’ Signed-off-by: Mikko Rapeli --- include/uapi/asm-generic/ucontext.h | 3 +++ 1 file changed, 3 insertions(+)

[PATCH 45/45] include/uapi/asm-generic/ucontext.h: include signal.h and sigcontext.h

2015-02-16 Thread Mikko Rapeli
Fixes userspace compiler errors: error: unknown type name ‘stack_t’ error: field ‘uc_mcontext’ has incomplete type struct sigcontext uc_mcontext; error: unknown type name ‘sigset_t’ Signed-off-by: Mikko Rapeli mikko.rap...@iki.fi --- include/uapi/asm-generic/ucontext.h | 3 +++ 1 file changed,