From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758582AbdAELgg (ORCPT ); Thu, 5 Jan 2017 06:36:36 -0500 Received: from pandora.armlinux.org.uk ([78.32.30.218]:55524 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751528AbdAELg1 (ORCPT ); Thu, 5 Jan 2017 06:36:27 -0500 Date: Thu, 5 Jan 2017 11:24:26 +0000 From: Russell King - ARM Linux To: Masahiro Yamada Cc: Andrew Morton , Mark Rutland , Nicolas Pitre , Catalin Marinas , Srinivas Pandruvada , Will Deacon , David Howells , "H . Peter Anvin" , Guan Xuetao , Pratyush Anand , x86@kernel.org, Ingo Molnar , Laura Abbott , Neeraj Upadhyay , Alexander Popov , Arnd Bergmann , Santosh Shilimkar , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, Ard Biesheuvel , linux-kernel@vger.kernel.org, James Morse , Olof Johansson Subject: Re: [PATCH v2 2/4] linux/const.h: move UL() macro to include/linux/const.h Message-ID: <20170105112425.GT14217@n2100.armlinux.org.uk> References: <1483582810-7046-1-git-send-email-yamada.masahiro@socionext.com> <1483582810-7046-3-git-send-email-yamada.masahiro@socionext.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1483582810-7046-3-git-send-email-yamada.masahiro@socionext.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > linux/const.h, so I am creating include/linux/const.h. > > I am also adding _UL(), _ULL() and ULL() because _AC() is mostly > used in the form either _AC(..., UL) or _AC(..., ULL). I expect > they will be replaced in later cleanups. The underscore-prefixed > ones should be used for exported headers. > > Signed-off-by: Masahiro Yamada > Acked-by: Guan Xuetao > --- > > Changes in v2: None > > arch/arm/include/asm/memory.h | 6 ------ > arch/arm64/include/asm/memory.h | 6 ------ > arch/unicore32/include/asm/memory.h | 6 ------ > include/linux/const.h | 9 +++++++++ > include/uapi/linux/const.h | 9 ++++++--- > 5 files changed, 15 insertions(+), 21 deletions(-) > create mode 100644 include/linux/const.h > > diff --git a/arch/arm/include/asm/memory.h b/arch/arm/include/asm/memory.h > index 76cbd9c..7558247 100644 > --- a/arch/arm/include/asm/memory.h > +++ b/arch/arm/include/asm/memory.h > @@ -22,12 +22,6 @@ > #include > #endif > > -/* > - * Allow for constants defined here to be used from assembly code > - * by prepending the UL suffix only with actual C code compilation. > - */ > -#define UL(x) _AC(x, UL) > - > /* PAGE_OFFSET - the virtual address of the start of the kernel image */ > #define PAGE_OFFSET UL(CONFIG_PAGE_OFFSET) > For ARM, Acked-by: Russell King Thanks. -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net.