From: kbuild test robot <fengguang.wu@intel.com>
Cc: kbuild-all@01.org,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Joe Perches <joe@perches.com>,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>,
Sasha Levin <sasha.levin@oracle.com>
Subject: [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: Sat, 25 Jun 2016 10:47:54 +0800 [thread overview]
Message-ID: <201606251051.qPJK5lSF%fengguang.wu@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4154 bytes --]
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@daterainc.com>
:::::: CC: Kent Overstreet <kmo@daterainc.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 43832 bytes --]
reply other threads:[~2016-06-25 2:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201606251051.qPJK5lSF%fengguang.wu@intel.com \
--to=fengguang.wu@intel.com \
--cc=akpm@linux-foundation.org \
--cc=gregkh@linuxfoundation.org \
--cc=joe@perches.com \
--cc=kbuild-all@01.org \
--cc=linux-mm@kvack.org \
--cc=sasha.levin@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox