Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752037AbcDRIfA (ORCPT ); Mon, 18 Apr 2016 04:35:00 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:53679 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751463AbcDRIe5 (ORCPT ); Mon, 18 Apr 2016 04:34:57 -0400 From: Arnd Bergmann To: Will Deacon , Matt Fleming Cc: Steve Capper , Ard Biesheuvel , David Daney , Arnd Bergmann , Catalin Marinas , Mark Rutland , Leif Lindholm , Dan Williams , linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] efi: ARM: avoid warning about phys_addr_t cast Date: Mon, 18 Apr 2016 10:34:19 +0200 Message-Id: <1460968481-169298-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:JRi9R70UUQYw0kx1WynAUMm0noTbttoUe46H1Gx7PXaiuPr7k4o 72gr1q+/CRQX+3lE+MFOTuQ8xmEJWvOItmsFfL+H9n/GPpoPR96xUO9fFIyoSkTRSRAPMF+ TUfxxc2PQi+wm2ME5r/p8j2eexuwQydWHv4AEYf8PJAhPDmJLmo2xAwJCpgLcq745A91hT0 F7fyttSJ3N0UN3eWPybAQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:GQVDD8SPZuY=:RZ7ePokISIxKfAnYgvOoO7 oBI7Bv6PSbLuvgAW2dr1ziwvClFq9WIzvbHT0uZckOspZmgpsy3yCA85W9XcD3cY+i6pYLWI5 7ehtSF8AAFdC8gmL8sWU3Fz2svgfE3sk5kyfiBzWRMQvhjdicndgX5L/fraPWyDkOE9gugtjl EHitgYYVB1QhsgrqBR+k5RjtCOBEovqze07AWdT5iVz6OKKZi3GOvuUqUByLrPW5HMsyU+cu5 2gX6UIcSB5TUPGJ27h2HqEF9D/Qmg9yvdqOas0+Fc0QKxXOXhU40M4Jk8eentTtwOqfNIwFoh GvA3ffVDtiLCh96SYNeWrYcWodB3coKg05vcz+rVkQGPD3/lwljVbyXo1LxZKM2KpgoDcRKxY gD11VGfdvhYuJVgMZc8wgkGDVIyyEq8nVCzgjfDQZlwZHOI+IGEwInXaajG/dz4vGh9BGknME AwXv7KCbBHzl/qS0cnZHeZu60R2Cbn5ZM6PB6sOUm/TzRb6r3ZcYYGdW4VnsiUsT6YAuzmZBs f8Vj0tUnPVZfgQ0W5pqvsPKl+blNo6JSSu2B365tKV4a0vi9jkHYK8aUqClQ6PoE8LOlwJhIu DlE0c6MHMbIQZcDd2Q9h47PPVsd4d0NJP5XvaaCOy8Zd8KRgVI5+JXxXSq+srJ6rI5w1kBbX0 ukp9u4HcFcM7mGuIoIEiyKkbib8P/GaCyaqKfCvLwWntKT5d+jnMZ3ZBQQ7qTYu9mpEo= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1204 Lines: 33 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(-) diff --git a/drivers/firmware/efi/arm-init.c b/drivers/firmware/efi/arm-init.c index 434dd6065935..fac567c3b66a 100644 --- a/drivers/firmware/efi/arm-init.c +++ b/drivers/firmware/efi/arm-init.c @@ -149,7 +149,7 @@ static __init void reserve_regions(void) * uses its own memory map instead. */ memblock_dump_all(); - memblock_remove(0, ULLONG_MAX); + memblock_remove(0, (phys_addr_t)ULLONG_MAX); for_each_efi_memory_desc(&memmap, md) { paddr = md->phys_addr; -- 2.7.0