Re: [PATCH v2 2/4] linux/const.h: move UL() macro to include/linux/const.h

2017-01-07 Thread Masahiro Yamada
Hi. 2017-01-06 19:45 GMT+09:00 David Howells : > Masahiro Yamada wrote: > >> diff --git a/include/uapi/linux/const.h b/include/uapi/linux/const.h >> index c872bfd..76fb0f9 100644 >> --- a/include/uapi/linux/const.h >> +++ b/include/uapi/linux/const.h >> @@ -1,7 +1,7 @@ >> /* const.h: Macros for

Re: [PATCH v2 2/4] linux/const.h: move UL() macro to include/linux/const.h

2017-01-06 Thread David Howells
Masahiro Yamada wrote: > diff --git a/include/uapi/linux/const.h b/include/uapi/linux/const.h > index c872bfd..76fb0f9 100644 > --- a/include/uapi/linux/const.h > +++ b/include/uapi/linux/const.h > @@ -1,7 +1,7 @@ > /* const.h: Macros for dealing with constants. */ > > -#ifndef _LINUX_CONST_H

Re: [PATCH v2 2/4] linux/const.h: move UL() macro to include/linux/const.h

2017-01-05 Thread Russell King - ARM Linux
On Thu, Jan 05, 2017 at 11:20:07AM +0900, Masahiro Yamada wrote: > ARM, ARM64 and UniCore32 duplicate the definition of UL(): > > #define UL(x) _AC(x, UL) > > This is not actually arch-specific, so it will be useful to move it > to a common header. Currently, we only have the uapi variant for

Re: [PATCH v2 2/4] linux/const.h: move UL() macro to include/linux/const.h

2017-01-05 Thread Catalin Marinas
> diff --git a/arch/arm64/include/asm/memory.h b/arch/arm64/include/asm/memory.h > index bfe6328..4310bcc 100644 > --- a/arch/arm64/include/asm/memory.h > +++ b/arch/arm64/include/asm/memory.h > @@ -28,12 +28,6 @@ > #include > > /* > - * Allow for constants defined here to be used from assembl

[PATCH v2 2/4] linux/const.h: move UL() macro to include/linux/const.h

2017-01-04 Thread Masahiro Yamada
ARM, ARM64 and UniCore32 duplicate the definition of UL(): #define UL(x) _AC(x, UL) This is not actually arch-specific, so it will be useful to move it to a common header. Currently, we only have the uapi variant for linux/const.h, so I am creating include/linux/const.h. I am also adding _UL(