From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753234AbbLJF4V (ORCPT ); Thu, 10 Dec 2015 00:56:21 -0500 Received: from mga03.intel.com ([134.134.136.65]:51846 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751041AbbLJF4S (ORCPT ); Thu, 10 Dec 2015 00:56:18 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,407,1444719600"; d="scan'208";a="10732745" Date: Thu, 10 Dec 2015 13:55:35 +0800 From: kbuild test robot To: Joe Perches Cc: kbuild-all@01.org, Andrew Morton , linux-kernel@vger.kernel.org, Andy Shevchenko , Rasmus Villemoes , Rob Herring Subject: Re: [PATCH] hexdump: Add ability to do endian conversions in print_hex_dump functions Message-ID: <201512101350.IAyMRrzm%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Joe, [auto build test WARNING on v4.4-rc4] [also build test WARNING on next-20151209] url: https://github.com/0day-ci/linux/commits/Joe-Perches/hexdump-Add-ability-to-do-endian-conversions-in-print_hex_dump-functions/20151210-060244 reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__ sparse warnings: (new ones prefixed by >>) include/linux/compiler.h:228:8: sparse: attribute 'no_sanitize_address': unknown attribute include/linux/printk.h:430:24: sparse: undefined identifier 'BIT' >> include/linux/printk.h:430:27: sparse: bad constant expression type include/linux/printk.h:431:24: sparse: undefined identifier 'BIT' include/linux/printk.h:431:27: sparse: bad constant expression type In file included from lib/decompress.c:19:0: include/linux/printk.h:430:17: error: implicit declaration of function 'BIT' [-Werror=implicit-function-declaration] DUMP_TYPE_LE = BIT(30), ^ include/linux/printk.h:430:2: error: enumerator value for 'DUMP_TYPE_LE' is not an integer constant DUMP_TYPE_LE = BIT(30), ^ include/linux/printk.h:432:1: error: enumerator value for 'DUMP_TYPE_BE' is not an integer constant }; ^ cc1: some warnings being treated as errors vim +430 include/linux/printk.h 414 printk_ratelimited(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) 415 #else 416 #define pr_debug_ratelimited(fmt, ...) \ 417 no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) 418 #endif 419 420 extern const struct file_operations kmsg_fops; 421 422 enum { 423 DUMP_PREFIX_NONE, 424 DUMP_PREFIX_ADDRESS, 425 DUMP_PREFIX_OFFSET 426 }; 427 428 enum { 429 DUMP_TYPE_CPU = 0, > 430 DUMP_TYPE_LE = BIT(30), 431 DUMP_TYPE_BE = BIT(31) 432 }; 433 434 extern int hex_dump_to_buffer(const void *buf, size_t len, int rowsize, 435 int groupflags, char *linebuf, size_t linebuflen, 436 bool ascii); 437 #ifdef CONFIG_PRINTK 438 extern void print_hex_dump(const char *level, const char *prefix_str, --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation