Re: [PATCH 45/45] include/uapi/asm-generic/ucontext.h: include signal.h and sigcontext.h
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 asm-generic header here is a bad idea: it breaks > if an architecture overrides asm/signal.h with its own version > but wants to use the asm-generic/ucontext.h file. > > It would be best to just use linux/signal.h here, which includes > the correct architecture specific files. Thanks, I will use asm/signal.h instead. -Mikko -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 45/45] include/uapi/asm-generic/ucontext.h: include signal.h and sigcontext.h
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 { Including another asm-generic header here is a bad idea: it breaks if an architecture overrides asm/signal.h with its own version but wants to use the asm-generic/ucontext.h file. It would be best to just use linux/signal.h here, which includes the correct architecture specific files. Thanks, I will use asm/signal.h instead. -Mikko -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 45/45] include/uapi/asm-generic/ucontext.h: include signal.h and sigcontext.h
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 with its own version but wants to use the asm-generic/ucontext.h file. It would be best to just use linux/signal.h here, which includes the correct architecture specific files. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 45/45] include/uapi/asm-generic/ucontext.h: include signal.h and sigcontext.h
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 architecture overrides asm/signal.h with its own version but wants to use the asm-generic/ucontext.h file. It would be best to just use linux/signal.h here, which includes the correct architecture specific files. Arnd -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH 45/45] include/uapi/asm-generic/ucontext.h: include signal.h and sigcontext.h
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(+) diff --git a/include/uapi/asm-generic/ucontext.h b/include/uapi/asm-generic/ucontext.h index ad77343..31ece341 100644 --- a/include/uapi/asm-generic/ucontext.h +++ b/include/uapi/asm-generic/ucontext.h @@ -1,6 +1,9 @@ #ifndef __ASM_GENERIC_UCONTEXT_H #define __ASM_GENERIC_UCONTEXT_H +#include +#include + struct ucontext { unsigned long uc_flags; struct ucontext *uc_link; -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH 45/45] include/uapi/asm-generic/ucontext.h: include signal.h and sigcontext.h
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, 3 insertions(+) diff --git a/include/uapi/asm-generic/ucontext.h b/include/uapi/asm-generic/ucontext.h index ad77343..31ece341 100644 --- a/include/uapi/asm-generic/ucontext.h +++ b/include/uapi/asm-generic/ucontext.h @@ -1,6 +1,9 @@ #ifndef __ASM_GENERIC_UCONTEXT_H #define __ASM_GENERIC_UCONTEXT_H +#include asm-generic/signal.h +#include asm/sigcontext.h + struct ucontext { unsigned long uc_flags; struct ucontext *uc_link; -- 2.1.4 -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/