Re: [PATCH] hexdump: Add ability to do endian conversions in print_hex_dump functions
From: kbuild test robot
Date: Thu Dec 10 2015 - 00:56:23 EST
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/