From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Fleming Subject: Re: [PATCH] efi: ARM: avoid warning about phys_addr_t cast Date: Mon, 18 Apr 2016 22:12:33 +0100 Message-ID: <20160418211233.GZ2829@codeblueprint.co.uk> References: <1460968481-169298-1-git-send-email-arnd@arndb.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1460968481-169298-1-git-send-email-arnd-r2nGTMty4D4@public.gmane.org> Sender: linux-efi-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Arnd Bergmann Cc: Will Deacon , Steve Capper , Ard Biesheuvel , David Daney , Catalin Marinas , Mark Rutland , Leif Lindholm , Dan Williams , linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-efi@vger.kernel.org On Mon, 18 Apr, at 10:34:19AM, Arnd Bergmann wrote: > memblock_remove() takes a phys_addr_t, which may be narrower than 64 bits, > causing a harmless warning: > > drivers/firmware/efi/arm-init.c: In function 'reserve_regions': > include/linux/kernel.h:29:20: error: large integer implicitly truncated to unsigned type [-Werror=overflow] > #define ULLONG_MAX (~0ULL) > ^ > drivers/firmware/efi/arm-init.c:152:21: note: in expansion of macro 'ULLONG_MAX' > memblock_remove(0, ULLONG_MAX); > > This adds an explicit typecast to avoid the warning > > Signed-off-by: Arnd Bergmann > Fixes: 500899c2cc3e ("efi: ARM/arm64: ignore DT memory nodes instead of removing them") > --- > drivers/firmware/efi/arm-init.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Will, this one is for you. Reviewed-by: Matt Fleming