Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751617AbdIJNdf (ORCPT ); Sun, 10 Sep 2017 09:33:35 -0400 Received: from mail-by2nam03on0071.outbound.protection.outlook.com ([104.47.42.71]:61600 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751525AbdIJNdd (ORCPT ); Sun, 10 Sep 2017 09:33:33 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@cavium.com; Date: Sun, 10 Sep 2017 16:33:19 +0300 From: Yury Norov To: Geert Uytterhoeven Cc: Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: [PATCH] test_bitmap: Use ULL suffix for 64-bit constants Message-ID: <20170910133319.urmptwfq7qifjlay@yury-thinkpad> References: <1505040523-31230-1-git-send-email-geert@linux-m68k.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1505040523-31230-1-git-send-email-geert@linux-m68k.org> User-Agent: NeoMutt/20170113 (1.7.2) X-Originating-IP: [176.59.32.144] X-ClientProxiedBy: DB6PR02CA0024.eurprd02.prod.outlook.com (10.170.218.165) To SN1PR07MB1453.namprd07.prod.outlook.com (10.161.223.14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7a64fd3c-46a8-4d7e-e61c-08d4f85086e9 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:SN1PR07MB1453; X-Microsoft-Exchange-Diagnostics: 1;SN1PR07MB1453;3:QxBs8VUtIa6QJhj7nMb3ZUbCPAWXXri2dc1rD2mDWp1pWY/4E9tWnVfPpbjckvoLEkhkKd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ZdmBrrekI7NGTbNVA4DfIo22r/RlcZiveFHfCd74RKN2thWfXSz5vV64TQno+paWF1HeyXhAn6x/zGL4YgdMXo0vmYETZPGQJXW899fAvPdBOYEMXwj//rLbF2gT3FgthZB8v7iY8184dmEXbkwxK9h7bJLwGz5YTaCuR9TZwt1xrpLKJNW/4H040RSePwxjnWPz0matClMcb2xVwlXrpBz3i60KRnq4SArM/dhh64BevOZ/qAFchpDYx7iBD789WjlXhxwRCUiR0AWdqKX5nPy61kckojjL9sDy3UxHQXqr5WkZPZsQ8lwkdtoV/ciLJoY2OB3C8k5YXgE87v5vCnuoT7cBrMdG14laLxZPsKNlUmHufH0mwvIF5Tgk=;4:1cVoIpNocX/BGQby+Fg4fjUQiPAZDcb918qV3walALIVtO1mW4V0DTgixTByU/4n5yBbQKxgWkT+apKH4vmuxhV9+9gcAFP/PZ++Rju4JTgWCIZqm53vdNonGooflcUBFbUbsRPZXTinHXYM07A2G20va1hPVy175XOy3AFcH6bKuQ3j4GYseGGvv0mzQQO+sA0/l3hoBPrcpVIAG0wPGn4zMSochnoJrPvTIWSGrzNDzXz0WHigesSe4qACchgd X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(6041248)(20161123562025)(20161123564025)(20161123555025)(20161123560025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:SN1PR07MB1453;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:SN1PR07MB1453; X-Forefront-PRVS: 04267075BD X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(6009001)(7916004)(199003)(24454002)(189002)(25786009)(81156014)(81166006)(8936002)(42186005)(23676002)(50466002)(83506001)(6666003)(8676002)(6916009)(2870700001)(42882006)(2950100002)(2906002)(47776003)(66066001)(3846002)(1076002)(6116002)(7736002)(305945005)(106356001)(33716001)(76506005)(68736007)(6486002)(53936002)(5660300001)(50986999)(54356999)(76176999)(110136004)(105586002)(6246003)(9686003)(478600001)(6496005)(97736004)(101416001)(33646002)(4001350100001)(189998001)(72206003)(4326008)(229853002);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR07MB1453;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtTTjFQUjA3TUIxNDUzOzIzOmRlTDNNMEhPVlFCZkhhMm1DbUZuSjZhTEE5?= =?utf-8?B?YmxxUTNHK3lsaDlvaWFCOXRGNjBlYThncXNoNTdvR3lBYk9CT3hYdGQxMGhV?= =?utf-8?B?bGN1dURhcVQ0RENobWI2SUc1VXl5d2VLSnN4eTZNb2NwOGdDY0YzZThwdG5a?= =?utf-8?B?ZFFVaCswU0N4S3lFeis1c1MzTGVMQkdVM3h1eFU2U1gyMzU4NktXMTlRc0E4?= =?utf-8?B?V0REazBlUFQ0ekRuYSt1T1dXYkF6VlU1U2l5eGlqWkMwQ2EzOEhNT1k0NkI5?= =?utf-8?B?QnF0MW1BZXBWdUJodnBTQitTV2NwSXNCT0xmOUM1L1J0Ym5iTEZYVHdxUjdq?= =?utf-8?B?RXVtdnI4QnpzbXR4RmJRUmdDRVZoam1kcmpXb0pMMTc5WCtJS1h0d1dtT1Rh?= =?utf-8?B?cU1rOWhWUllHUHRDeHNIY3lVaHpQTDRzek14NjZpdHVEWmRub1VURE1acGdh?= =?utf-8?B?R0kwM1NIVVNKWjFkTTNLdXMyVUJHZ3hTcmppZVhwbTJvYnpWZ1g4YmtOYUNu?= =?utf-8?B?T3FSL0FSeUpZdHYrWUFrQV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BthStu4X2L5uoCcKVIzc4qUkUHzoXAVmkHc+3X9C3IW41BJUpMY6VZ8B5jtAahFRedH8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2017 13:33:30.1724 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR07MB1453 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1598 Lines: 44 On Sun, Sep 10, 2017 at 12:48:43PM +0200, Geert Uytterhoeven wrote: > 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 Thanks. Acked-by: Yury Norov > --- > 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