[staging:staging-testing 284/298] drivers/staging/ccree/ssi_driver.c:83:6: error: conflicting types for '__dump_byte_array'

kbuild test robot fengguang.wu at intel.com
Tue Dec 19 15:02:33 UTC 2017


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-testing
head:   893b103a3e9ce255e9afe8103d90f28ac2124eb8
commit: 3f268f5d6669b61e38ad65095480cdf80389ae40 [284/298] staging: ccree: turn compile time debug log to params
config: i386-randconfig-x073-201751 (attached as .config)
compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025
reproduce:
        git checkout 3f268f5d6669b61e38ad65095480cdf80389ae40
        # save the attached .config to linux build tree
        make ARCH=i386 

All error/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:41: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'size_t {aka unsigned int}' [-Wformat=]
     snprintf(prefix, sizeof(prefix), "%s[%lu]: ", name, len);
                                          ~~^
                                          %u

vim +/__dump_byte_array +83 drivers/staging/ccree/ssi_driver.c

    82	
  > 83	void __dump_byte_array(const char *name, const u8 *buf, size_t len)
    84	{
    85		char prefix[64];
    86	
    87		if (!buf)
    88			return;
    89	
  > 90		snprintf(prefix, sizeof(prefix), "%s[%lu]: ", name, len);
    91	
    92		print_hex_dump(KERN_DEBUG, prefix, DUMP_PREFIX_ADDRESS, 16, 1, buf,
    93			       len, false);
    94	}
    95	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 28199 bytes
Desc: not available
URL: <http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/attachments/20171219/21c9815a/attachment-0001.bin>


More information about the devel mailing list