Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752084AbdHIU2x (ORCPT ); Wed, 9 Aug 2017 16:28:53 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:38056 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750866AbdHIU2v (ORCPT ); Wed, 9 Aug 2017 16:28:51 -0400 Date: Wed, 9 Aug 2017 13:28:50 -0700 From: Andrew Morton To: kbuild test robot Cc: Yury Norov , kbuild-all@01.org, Noam Camus , Rasmus Villemoes , Matthew Wilcox , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] lib: add test for bitmap_parselist() Message-Id: <20170809132850.6cfbf046963706b93b552158@linux-foundation.org> In-Reply-To: <201708091225.VnEfixt9%fengguang.wu@intel.com> References: <20170807225438.16161-2-ynorov@caviumnetworks.com> <201708091225.VnEfixt9%fengguang.wu@intel.com> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2116 Lines: 47 On Wed, 9 Aug 2017 12:11:15 +0800 kbuild test robot wrote: > [auto build test WARNING on linus/master] > [also build test WARNING on v4.13-rc4 next-20170808] > [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] > > url: https://github.com/0day-ci/linux/commits/Yury-Norov/lib-make-bitmap_parselist-thread-safe-and-much-faster/20170809-105307 > config: xtensa-allmodconfig (attached as .config) > compiler: xtensa-linux-gcc (GCC) 4.9.0 > reproduce: > wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # save the attached .config to linux build tree > make.cross ARCH=xtensa > > All warnings (new ones prefixed by >>): > > lib/test_bitmap.c:180:5: warning: large integer implicitly truncated to unsigned type [-Woverflow] > 0xfffffffe, 0x3333333311111111, 0xffffffff77777777}; > ^ > lib/test_bitmap.c:180:5: warning: large integer implicitly truncated to unsigned type [-Woverflow] > lib/test_bitmap.c:181:1: warning: large integer implicitly truncated to unsigned type [-Woverflow] > static const unsigned long exp2[] = {0x3333333311111111, 0xffffffff77777777}; > ^ > lib/test_bitmap.c:181:1: warning: large integer implicitly truncated to unsigned type [-Woverflow] > lib/test_bitmap.c: In function 'test_bitmap_parselist': > >> lib/test_bitmap.c:235:4: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'cycles_t' [-Wformat=] > pr_err("test %d: input is '%s' OK, Time: %lu\n", > ^ Maybe we need a %p thingy for printing cycles_t. But this will do: --- a/lib/test_bitmap.c~lib-add-test-for-bitmap_parselist-fix +++ a/lib/test_bitmap.c @@ -232,8 +232,9 @@ static void __init test_bitmap_parselist } if (ptest.flags & PARSE_TIME) - pr_err("test %d: input is '%s' OK, Time: %lu\n", - i, ptest.in, cycles); + pr_err("test %d: input is '%s' OK, Time: %llu\n", + i, ptest.in, + (unsigned long long)cycles); } } _