Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751483AbdIJKss (ORCPT ); Sun, 10 Sep 2017 06:48:48 -0400 Received: from baptiste.telenet-ops.be ([195.130.132.51]:52274 "EHLO baptiste.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751413AbdIJKsr (ORCPT ); Sun, 10 Sep 2017 06:48:47 -0400 From: Geert Uytterhoeven To: Andrew Morton , Yury Norov Cc: linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] test_bitmap: Use ULL suffix for 64-bit constants Date: Sun, 10 Sep 2017 12:48:43 +0200 Message-Id: <1505040523-31230-1-git-send-email-geert@linux-m68k.org> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1393 Lines: 39 With gcc 4.1.2: lib/test_bitmap.c:189: warning: integer constant is too large for ‘long’ type lib/test_bitmap.c:190: warning: integer constant is too large for ‘long’ type lib/test_bitmap.c:194: warning: integer constant is too large for ‘long’ type lib/test_bitmap.c:195: warning: integer constant is too large for ‘long’ type Add the missing "ULL" suffix to fix this. Fixes: 60ef690018b262dd ("bitmap: introduce BITMAP_FROM_U64()") Signed-off-by: Geert Uytterhoeven --- lib/test_bitmap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/test_bitmap.c b/lib/test_bitmap.c index 599c6713f2a2aaa8..aa1f2669bdd5d836 100644 --- a/lib/test_bitmap.c +++ b/lib/test_bitmap.c @@ -186,13 +186,13 @@ static const unsigned long exp[] __initconst = { BITMAP_FROM_U64(0x22222222), BITMAP_FROM_U64(0xffffffff), BITMAP_FROM_U64(0xfffffffe), - BITMAP_FROM_U64(0x3333333311111111), - BITMAP_FROM_U64(0xffffffff77777777) + BITMAP_FROM_U64(0x3333333311111111ULL), + BITMAP_FROM_U64(0xffffffff77777777ULL) }; static const unsigned long exp2[] __initconst = { - BITMAP_FROM_U64(0x3333333311111111), - BITMAP_FROM_U64(0xffffffff77777777) + BITMAP_FROM_U64(0x3333333311111111ULL), + BITMAP_FROM_U64(0xffffffff77777777ULL) }; static const struct test_bitmap_parselist parselist_tests[] __initconst = { -- 2.7.4