From: kbuild test robot <fengguang.wu@intel.com>
To: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Cc: kbuild-all@01.org, linux-ide@vger.kernel.org, Tejun Heo <tj@kernel.org>
Subject: [tj-libata:for-4.12 3/3] drivers/ata/libahci.c:293:23: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int'
Date: Wed, 8 Mar 2017 08:05:06 +0800 [thread overview]
Message-ID: <201703080801.08Pr3be7%fengguang.wu@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 11604 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tj/libata.git for-4.12
head: b2a4b7862d6ba5c90746fc625e494b8ec5937fa1
commit: b2a4b7862d6ba5c90746fc625e494b8ec5937fa1 [3/3] ata: allow subsystem to be used on m32r and s390 archs
config: m32r-allyesconfig (attached as .config)
compiler: m32r-linux-gcc (GCC) 6.2.0
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout b2a4b7862d6ba5c90746fc625e494b8ec5937fa1
# save the attached .config to linux build tree
make.cross ARCH=m32r
All warnings (new ones prefixed by >>):
drivers/ata/libahci.c: In function 'ahci_show_port_cmd':
>> drivers/ata/libahci.c:293:23: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=]
ret = sprintf(buf, "%x\n", readl(port_mmio + PORT_CMD));
^
--
In file included from drivers/ata/sata_dwc_460ex.c:32:0:
drivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_dma_xfer_complete':
>> drivers/ata/sata_dwc_460ex.c:762:5: warning: format '%x' expects argument of type 'unsigned int', but argument 8 has type 'long unsigned int' [-Wformat=]
"%s tag=%u cmd=0x%02x dma dir=%s proto=%s dmacr=0x%08x\n",
^
include/linux/device.h:1318:51: note: in definition of macro 'dev_info'
#define dev_info(dev, fmt, arg...) _dev_info(dev, fmt, ##arg)
^~~
drivers/ata/sata_dwc_460ex.c:773:60: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=]
"%s DMA protocol RX and TX DMA not pending dmacr: 0x%08x\n",
^
In file included from include/linux/printk.h:329:0,
from include/linux/kernel.h:13,
from drivers/ata/sata_dwc_460ex.c:30:
drivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_enable_interrupts':
drivers/ata/sata_dwc_460ex.c:827:22: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=]
dev_dbg(hsdev->dev, "%s: INTMR = 0x%08x, ERRMR = 0x%08x\n",
^
include/linux/dynamic_debug.h:134:39: note: in definition of macro 'dynamic_dev_dbg'
__dynamic_dev_dbg(&descriptor, dev, fmt, \
^~~
>> drivers/ata/sata_dwc_460ex.c:827:2: note: in expansion of macro 'dev_dbg'
dev_dbg(hsdev->dev, "%s: INTMR = 0x%08x, ERRMR = 0x%08x\n",
^~~~~~~
drivers/ata/sata_dwc_460ex.c:827:22: warning: format '%x' expects argument of type 'unsigned int', but argument 6 has type 'long unsigned int' [-Wformat=]
dev_dbg(hsdev->dev, "%s: INTMR = 0x%08x, ERRMR = 0x%08x\n",
^
include/linux/dynamic_debug.h:134:39: note: in definition of macro 'dynamic_dev_dbg'
__dynamic_dev_dbg(&descriptor, dev, fmt, \
^~~
>> drivers/ata/sata_dwc_460ex.c:827:2: note: in expansion of macro 'dev_dbg'
dev_dbg(hsdev->dev, "%s: INTMR = 0x%08x, ERRMR = 0x%08x\n",
^~~~~~~
--
In file included from include/linux/printk.h:329:0,
from include/linux/kernel.h:13,
from include/linux/ata.h:32,
from drivers/ata/pata_arasan_cf.c:24:
drivers/ata/pata_arasan_cf.c: In function 'cf_dumpregs':
>> drivers/ata/pata_arasan_cf.c:231:15: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=]
dev_dbg(dev, ": CFI_STS: %x", readl(acdev->vbase + CFI_STS));
^
include/linux/dynamic_debug.h:134:39: note: in definition of macro 'dynamic_dev_dbg'
__dynamic_dev_dbg(&descriptor, dev, fmt, \
^~~
>> drivers/ata/pata_arasan_cf.c:231:2: note: in expansion of macro 'dev_dbg'
dev_dbg(dev, ": CFI_STS: %x", readl(acdev->vbase + CFI_STS));
^~~~~~~
drivers/ata/pata_arasan_cf.c:232:15: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=]
dev_dbg(dev, ": IRQ_STS: %x", readl(acdev->vbase + IRQ_STS));
^
include/linux/dynamic_debug.h:134:39: note: in definition of macro 'dynamic_dev_dbg'
__dynamic_dev_dbg(&descriptor, dev, fmt, \
^~~
drivers/ata/pata_arasan_cf.c:232:2: note: in expansion of macro 'dev_dbg'
dev_dbg(dev, ": IRQ_STS: %x", readl(acdev->vbase + IRQ_STS));
^~~~~~~
drivers/ata/pata_arasan_cf.c:233:15: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=]
dev_dbg(dev, ": IRQ_EN: %x", readl(acdev->vbase + IRQ_EN));
^
include/linux/dynamic_debug.h:134:39: note: in definition of macro 'dynamic_dev_dbg'
__dynamic_dev_dbg(&descriptor, dev, fmt, \
^~~
drivers/ata/pata_arasan_cf.c:233:2: note: in expansion of macro 'dev_dbg'
dev_dbg(dev, ": IRQ_EN: %x", readl(acdev->vbase + IRQ_EN));
^~~~~~~
drivers/ata/pata_arasan_cf.c:234:15: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=]
dev_dbg(dev, ": OP_MODE: %x", readl(acdev->vbase + OP_MODE));
^
include/linux/dynamic_debug.h:134:39: note: in definition of macro 'dynamic_dev_dbg'
__dynamic_dev_dbg(&descriptor, dev, fmt, \
^~~
drivers/ata/pata_arasan_cf.c:234:2: note: in expansion of macro 'dev_dbg'
dev_dbg(dev, ": OP_MODE: %x", readl(acdev->vbase + OP_MODE));
^~~~~~~
drivers/ata/pata_arasan_cf.c:235:15: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=]
dev_dbg(dev, ": CLK_CFG: %x", readl(acdev->vbase + CLK_CFG));
^
include/linux/dynamic_debug.h:134:39: note: in definition of macro 'dynamic_dev_dbg'
__dynamic_dev_dbg(&descriptor, dev, fmt, \
^~~
drivers/ata/pata_arasan_cf.c:235:2: note: in expansion of macro 'dev_dbg'
dev_dbg(dev, ": CLK_CFG: %x", readl(acdev->vbase + CLK_CFG));
^~~~~~~
drivers/ata/pata_arasan_cf.c:236:15: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=]
dev_dbg(dev, ": TM_CFG: %x", readl(acdev->vbase + TM_CFG));
^
include/linux/dynamic_debug.h:134:39: note: in definition of macro 'dynamic_dev_dbg'
__dynamic_dev_dbg(&descriptor, dev, fmt, \
^~~
drivers/ata/pata_arasan_cf.c:236:2: note: in expansion of macro 'dev_dbg'
dev_dbg(dev, ": TM_CFG: %x", readl(acdev->vbase + TM_CFG));
^~~~~~~
drivers/ata/pata_arasan_cf.c:237:15: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=]
dev_dbg(dev, ": XFER_CTR: %x", readl(acdev->vbase + XFER_CTR));
^
include/linux/dynamic_debug.h:134:39: note: in definition of macro 'dynamic_dev_dbg'
__dynamic_dev_dbg(&descriptor, dev, fmt, \
^~~
drivers/ata/pata_arasan_cf.c:237:2: note: in expansion of macro 'dev_dbg'
dev_dbg(dev, ": XFER_CTR: %x", readl(acdev->vbase + XFER_CTR));
^~~~~~~
drivers/ata/pata_arasan_cf.c:238:15: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=]
dev_dbg(dev, ": GIRQ_STS: %x", readl(acdev->vbase + GIRQ_STS));
^
include/linux/dynamic_debug.h:134:39: note: in definition of macro 'dynamic_dev_dbg'
__dynamic_dev_dbg(&descriptor, dev, fmt, \
^~~
drivers/ata/pata_arasan_cf.c:238:2: note: in expansion of macro 'dev_dbg'
dev_dbg(dev, ": GIRQ_STS: %x", readl(acdev->vbase + GIRQ_STS));
^~~~~~~
drivers/ata/pata_arasan_cf.c:239:15: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=]
dev_dbg(dev, ": GIRQ_STS_EN: %x", readl(acdev->vbase + GIRQ_STS_EN));
^
include/linux/dynamic_debug.h:134:39: note: in definition of macro 'dynamic_dev_dbg'
__dynamic_dev_dbg(&descriptor, dev, fmt, \
^~~
drivers/ata/pata_arasan_cf.c:239:2: note: in expansion of macro 'dev_dbg'
dev_dbg(dev, ": GIRQ_STS_EN: %x", readl(acdev->vbase + GIRQ_STS_EN));
^~~~~~~
drivers/ata/pata_arasan_cf.c:240:15: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=]
dev_dbg(dev, ": GIRQ_SGN_EN: %x", readl(acdev->vbase + GIRQ_SGN_EN));
^
include/linux/dynamic_debug.h:134:39: note: in definition of macro 'dynamic_dev_dbg'
__dynamic_dev_dbg(&descriptor, dev, fmt, \
^~~
drivers/ata/pata_arasan_cf.c:240:2: note: in expansion of macro 'dev_dbg'
dev_dbg(dev, ": GIRQ_SGN_EN: %x", readl(acdev->vbase + GIRQ_SGN_EN));
^~~~~~~
vim +293 drivers/ata/libahci.c
365cfa1e Anton Vorontsov 2010-03-28 277 struct Scsi_Host *shost = class_to_shost(dev);
365cfa1e Anton Vorontsov 2010-03-28 278 struct ata_port *ap = ata_shost_to_port(shost);
365cfa1e Anton Vorontsov 2010-03-28 279 struct ahci_host_priv *hpriv = ap->host->private_data;
365cfa1e Anton Vorontsov 2010-03-28 280
8ea909cb Mika Westerberg 2016-02-18 281 return sprintf(buf, "%x\n", hpriv->version);
365cfa1e Anton Vorontsov 2010-03-28 282 }
365cfa1e Anton Vorontsov 2010-03-28 283
365cfa1e Anton Vorontsov 2010-03-28 284 static ssize_t ahci_show_port_cmd(struct device *dev,
365cfa1e Anton Vorontsov 2010-03-28 285 struct device_attribute *attr, char *buf)
365cfa1e Anton Vorontsov 2010-03-28 286 {
365cfa1e Anton Vorontsov 2010-03-28 287 struct Scsi_Host *shost = class_to_shost(dev);
365cfa1e Anton Vorontsov 2010-03-28 288 struct ata_port *ap = ata_shost_to_port(shost);
365cfa1e Anton Vorontsov 2010-03-28 289 void __iomem *port_mmio = ahci_port_base(ap);
bb03c640 Mika Westerberg 2016-02-18 290 ssize_t ret;
365cfa1e Anton Vorontsov 2010-03-28 291
bb03c640 Mika Westerberg 2016-02-18 292 ahci_rpm_get_port(ap);
bb03c640 Mika Westerberg 2016-02-18 @293 ret = sprintf(buf, "%x\n", readl(port_mmio + PORT_CMD));
bb03c640 Mika Westerberg 2016-02-18 294 ahci_rpm_put_port(ap);
bb03c640 Mika Westerberg 2016-02-18 295
bb03c640 Mika Westerberg 2016-02-18 296 return ret;
365cfa1e Anton Vorontsov 2010-03-28 297 }
365cfa1e Anton Vorontsov 2010-03-28 298
c0623166 Harry Zhang 2010-04-23 299 static ssize_t ahci_read_em_buffer(struct device *dev,
c0623166 Harry Zhang 2010-04-23 300 struct device_attribute *attr, char *buf)
c0623166 Harry Zhang 2010-04-23 301 {
:::::: The code at line 293 was first introduced by commit
:::::: bb03c640697155639b2e15e2aaa4c10f60bf0d5e ahci: Add functions to manage runtime PM of AHCI ports
:::::: TO: Mika Westerberg <mika.westerberg@linux.intel.com>
:::::: CC: Tejun Heo <tj@kernel.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 41654 bytes --]
reply other threads:[~2017-03-08 1:46 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=201703080801.08Pr3be7%fengguang.wu@intel.com \
--to=fengguang.wu@intel.com \
--cc=b.zolnierkie@samsung.com \
--cc=kbuild-all@01.org \
--cc=linux-ide@vger.kernel.org \
--cc=tj@kernel.org \
/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