Messages in this thread | | | Date | Fri, 6 Feb 2009 19:42:05 +0100 | From | Sam Ravnborg <> | Subject | Re: [git pull -tip] headers_check fixes for other architectures |
| |
> > Subject: [PATCH] make linux/types.h as assembly safe > > Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com> > --- > include/linux/types.h | 6 +++++- > 1 files changed, 5 insertions(+), 1 deletions(-) > > diff --git a/include/linux/types.h b/include/linux/types.h > index 712ca53..e1322a7 100644 > --- a/include/linux/types.h > +++ b/include/linux/types.h > @@ -1,6 +1,10 @@ > #ifndef _LINUX_TYPES_H > #define _LINUX_TYPES_H > > +#ifdef __ASSEMBLY__ > +# include <asm/types.h> > +#else /* __ASSEMBLY__ */
Please use: #ifndef __ASEMBLY__
This is what is used in the most cases.
And I think you need to nuke an include in the file a bit later so we do not include asm/types.h twice.
Sam
| |