[linux-stable-rc:linux-3.14.y 4656/4779] drivers/md/bcache/bset.c:26:10: warning: format '%li' expects argument of type 'long int', but argument 3 has type 'int'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-3.14.y
head:   c977f533c0e33b2ac751d8981e043115c58c691a
commit: 3711edaf01a01818f2aed9f21efe29b9818134b9 [4656/4779] compiler-gcc: integrate the various compiler-gcc[345].h files
config: i386-allyesconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
        git checkout 3711edaf01a01818f2aed9f21efe29b9818134b9
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/md/bcache/bset.c: In function 'bch_dump_bset':
>> drivers/md/bcache/bset.c:26:10: warning: format '%li' expects argument of type 'long int', but argument 3 has type 'int' [-Wformat=]
      printk(KERN_ERR "block %u key %li/%u: ", set,
             ^~~~~~
--
   drivers/mtd/nand/sh_flctl.c: In function 'flctl_setup_dma':
   drivers/mtd/nand/sh_flctl.c:164:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     cfg.dst_addr = (dma_addr_t)FLDTFIFO(flctl);
                    ^
   drivers/mtd/nand/sh_flctl.c:181:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     cfg.src_addr = (dma_addr_t)FLDTFIFO(flctl);
                    ^
   At top level:
>> drivers/mtd/nand/sh_flctl.c:1036:34: warning: 'of_flctl_match' defined but not used [-Wunused-const-variable=]
    static const struct of_device_id of_flctl_match[] = {
                                     ^~~~~~~~~~~~~~
--
   drivers/tty/serial/sh-sci.c: In function 'sci_remap_port':
   drivers/tty/serial/sh-sci.c:1994:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
      port->membase = (void __iomem *)port->mapbase;
                      ^
   At top level:
>> drivers/tty/serial/sh-sci.c:2394:34: warning: 'of_sci_match' defined but not used [-Wunused-const-variable=]
    static const struct of_device_id of_sci_match[] = {
                                     ^~~~~~~~~~~~

vim +26 drivers/md/bcache/bset.c

89ebb4a2 Kent Overstreet    2013-11-11  10  #include "util.h"
89ebb4a2 Kent Overstreet    2013-11-11  11  #include "bset.h"
cafe5635 Kent Overstreet    2013-03-23  12  
dc9d98d6 Kent Overstreet    2013-12-17  13  #include <linux/console.h>
cafe5635 Kent Overstreet    2013-03-23  14  #include <linux/random.h>
cd953ed0 Geert Uytterhoeven 2013-03-27  15  #include <linux/prefetch.h>
cafe5635 Kent Overstreet    2013-03-23  16  
dc9d98d6 Kent Overstreet    2013-12-17  17  #ifdef CONFIG_BCACHE_DEBUG
dc9d98d6 Kent Overstreet    2013-12-17  18  
dc9d98d6 Kent Overstreet    2013-12-17  19  void bch_dump_bset(struct btree_keys *b, struct bset *i, unsigned set)
dc9d98d6 Kent Overstreet    2013-12-17  20  {
dc9d98d6 Kent Overstreet    2013-12-17  21  	struct bkey *k, *next;
dc9d98d6 Kent Overstreet    2013-12-17  22  
dc9d98d6 Kent Overstreet    2013-12-17  23  	for (k = i->start; k < bset_bkey_last(i); k = next) {
dc9d98d6 Kent Overstreet    2013-12-17  24  		next = bkey_next(k);
dc9d98d6 Kent Overstreet    2013-12-17  25  
3572324a Kent Overstreet    2014-01-10 @26  		printk(KERN_ERR "block %u key %li/%u: ", set,
dc9d98d6 Kent Overstreet    2013-12-17  27  		       (uint64_t *) k - i->d, i->keys);
dc9d98d6 Kent Overstreet    2013-12-17  28  
dc9d98d6 Kent Overstreet    2013-12-17  29  		if (b->ops->key_dump)
dc9d98d6 Kent Overstreet    2013-12-17  30  			b->ops->key_dump(b, k);
dc9d98d6 Kent Overstreet    2013-12-17  31  		else
dc9d98d6 Kent Overstreet    2013-12-17  32  			printk("%llu:%llu\n", KEY_INODE(k), KEY_OFFSET(k));
dc9d98d6 Kent Overstreet    2013-12-17  33  
dc9d98d6 Kent Overstreet    2013-12-17  34  		if (next < bset_bkey_last(i) &&

:::::: The code at line 26 was first introduced by commit
:::::: 3572324af0f4ef877545e5a17bd3e788551f166a bcache: Minor fixes from kbuild robot

:::::: TO: Kent Overstreet <kmo@xxxxxxxxxxxxx>
:::::: CC: Kent Overstreet <kmo@xxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]