tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-next head: f772fa121d50d980457dc0c37152e30bf60c6452 commit: 3f268f5d6669b61e38ad65095480cdf80389ae40 [284/304] staging: ccree: turn compile time debug log to params config: i386-randconfig-b0-12200126 (attached as .config) compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4 reproduce: git checkout 3f268f5d6669b61e38ad65095480cdf80389ae40 # save the attached .config to linux build tree make ARCH=i386
All warnings (new ones prefixed by >>):
drivers/staging/ccree/ssi_driver.c:83:6: error: conflicting types for
'__dump_byte_array'
void __dump_byte_array(const char *name, const u8 *buf, size_t len)
^
In file included from drivers/staging/ccree/ssi_driver.c:63:0:
drivers/staging/ccree/ssi_driver.h:175:6: note: previous declaration of
'__dump_byte_array' was here
void __dump_byte_array(const char *name, const u8 *the_array,
^
drivers/staging/ccree/ssi_driver.c: In function '__dump_byte_array':
>> drivers/staging/ccree/ssi_driver.c:90:2: warning: format '%lu' expects
>> argument of type 'long unsigned int', but argument 5 has type 'size_t'
>> [-Wformat=]
snprintf(prefix, sizeof(prefix), "%s[%lu]: ", name, len);
^
vim +90 drivers/staging/ccree/ssi_driver.c
3f268f5d Gilad Ben-Yossef 2017-12-14 82
3f268f5d Gilad Ben-Yossef 2017-12-14 @83 void __dump_byte_array(const char
*name, const u8 *buf, size_t len)
abefd674 Gilad Ben-Yossef 2017-04-23 84 {
3f268f5d Gilad Ben-Yossef 2017-12-14 85 char prefix[64];
abefd674 Gilad Ben-Yossef 2017-04-23 86
bdd0873d Gilad Ben-Yossef 2017-10-03 87 if (!buf)
abefd674 Gilad Ben-Yossef 2017-04-23 88 return;
abefd674 Gilad Ben-Yossef 2017-04-23 89
bdd0873d Gilad Ben-Yossef 2017-10-03 @90 snprintf(prefix,
sizeof(prefix), "%s[%lu]: ", name, len);
abefd674 Gilad Ben-Yossef 2017-04-23 91
3f268f5d Gilad Ben-Yossef 2017-12-14 92 print_hex_dump(KERN_DEBUG,
prefix, DUMP_PREFIX_ADDRESS, 16, 1, buf,
3f268f5d Gilad Ben-Yossef 2017-12-14 93 len, false);
abefd674 Gilad Ben-Yossef 2017-04-23 94 }
abefd674 Gilad Ben-Yossef 2017-04-23 95
:::::: The code at line 90 was first introduced by commit
:::::: bdd0873dc28d57651ae2ed4e42bb79526ed684ac staging: ccree: move to generic
device log infra
:::::: TO: Gilad Ben-Yossef <[email protected]>
:::::: CC: Greg Kroah-Hartman <[email protected]>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
.config.gz
Description: application/gzip
_______________________________________________ devel mailing list [email protected] http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
