From: kbuild test robot <lkp@intel.com>
To: Joe Perches <joe@perches.com>
Cc: kbuild-all@01.org, Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] block: skd_main: Neaten pr_debug uses by adding and using skd_dbg
Date: Mon, 15 Aug 2016 10:53:28 +0800 [thread overview]
Message-ID: <201608151059.XJYZ9DEW%fengguang.wu@intel.com> (raw)
In-Reply-To: <d978de0bc275749862e09d5090351ce293dd5041.1471227135.git.joe@perches.com>
[-- Attachment #1: Type: text/plain, Size: 5331 bytes --]
Hi Joe,
[auto build test WARNING on linus/master]
[also build test WARNING on v4.8-rc1 next-20160812]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Joe-Perches/block-skd_main-Neaten-pr_debug-uses-by-adding-and-using-skd_dbg/20160815-102230
config: sparc64-allyesconfig (attached as .config)
compiler: sparc64-linux-gnu-gcc (Debian 5.4.0-6) 5.4.0 20160609
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=sparc64
All warnings (new ones prefixed by >>):
In file included from include/linux/kernel.h:13:0,
from drivers/block/skd_main.c:19:
drivers/block/skd_main.c: In function 'skd_preop_sg_list':
drivers/block/skd_main.c:91:11: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 8 has type 'dma_addr_t {aka unsigned int}' [-Wformat=]
pr_debug("%s:%s:%d " fmt, \
^
include/linux/printk.h:260:21: note: in definition of macro 'pr_fmt'
#define pr_fmt(fmt) fmt
^
include/linux/printk.h:308:2: note: in expansion of macro 'dynamic_pr_debug'
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^
drivers/block/skd_main.c:91:2: note: in expansion of macro 'pr_debug'
pr_debug("%s:%s:%d " fmt, \
^
>> drivers/block/skd_main.c:866:3: note: in expansion of macro 'skd_dbg'
skd_dbg(skdev, "skreq=%x sksg_list=%p sksg_dma=%llx\n",
^
drivers/block/skd_main.c: In function 'skd_skreq_prep_buffering':
drivers/block/skd_main.c:91:11: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 8 has type 'dma_addr_t {aka unsigned int}' [-Wformat=]
pr_debug("%s:%s:%d " fmt, \
^
include/linux/printk.h:260:21: note: in definition of macro 'pr_fmt'
#define pr_fmt(fmt) fmt
^
include/linux/printk.h:308:2: note: in expansion of macro 'dynamic_pr_debug'
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^
drivers/block/skd_main.c:91:2: note: in expansion of macro 'pr_debug'
pr_debug("%s:%s:%d " fmt, \
^
drivers/block/skd_main.c:1521:3: note: in expansion of macro 'skd_dbg'
skd_dbg(skdev, "skreq=%x sksg_list=%p sksg_dma=%llx\n",
^
drivers/block/skd_main.c: In function 'skd_send_fitmsg':
drivers/block/skd_main.c:91:11: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 6 has type 'dma_addr_t {aka unsigned int}' [-Wformat=]
pr_debug("%s:%s:%d " fmt, \
^
include/linux/printk.h:260:21: note: in definition of macro 'pr_fmt'
#define pr_fmt(fmt) fmt
^
include/linux/printk.h:308:2: note: in expansion of macro 'dynamic_pr_debug'
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^
drivers/block/skd_main.c:91:2: note: in expansion of macro 'pr_debug'
pr_debug("%s:%s:%d " fmt, \
^
drivers/block/skd_main.c:2066:2: note: in expansion of macro 'skd_dbg'
skd_dbg(skdev, "dma address 0x%llx, busy=%d\n",
^
drivers/block/skd_main.c: In function 'skd_send_special_fitmsg':
drivers/block/skd_main.c:91:11: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 9 has type 'dma_addr_t {aka unsigned int}' [-Wformat=]
pr_debug("%s:%s:%d " fmt, \
^
include/linux/printk.h:260:21: note: in definition of macro 'pr_fmt'
#define pr_fmt(fmt) fmt
^
include/linux/printk.h:308:2: note: in expansion of macro 'dynamic_pr_debug'
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^
drivers/block/skd_main.c:91:2: note: in expansion of macro 'pr_debug'
pr_debug("%s:%s:%d " fmt, \
^
drivers/block/skd_main.c:2126:3: note: in expansion of macro 'skd_dbg'
skd_dbg(skdev, "skspcl=%p id=%04x sksg_list=%p sksg_dma=%llx\n",
^
vim +/skd_dbg +866 drivers/block/skd_main.c
850 for (i = 0; i < n_sg; i++) {
851 struct fit_sg_descriptor *sgd = &skreq->sksg_list[i];
852 u32 cnt = sg_dma_len(&sg[i]);
853 uint64_t dma_addr = sg_dma_address(&sg[i]);
854
855 sgd->control = FIT_SGD_CONTROL_NOT_LAST;
856 sgd->byte_count = cnt;
857 skreq->sg_byte_count += cnt;
858 sgd->host_side_addr = dma_addr;
859 sgd->dev_side_addr = 0;
860 }
861
862 skreq->sksg_list[n_sg - 1].next_desc_ptr = 0LL;
863 skreq->sksg_list[n_sg - 1].control = FIT_SGD_CONTROL_LAST;
864
865 if (unlikely(skdev->dbg_level > 1)) {
> 866 skd_dbg(skdev, "skreq=%x sksg_list=%p sksg_dma=%llx\n",
867 skreq->id, skreq->sksg_list, skreq->sksg_dma_address);
868 for (i = 0; i < n_sg; i++) {
869 struct fit_sg_descriptor *sgd = &skreq->sksg_list[i];
870 skd_dbg(skdev, " sg[%d] count=%u ctrl=0x%x addr=0x%llx next=0x%llx\n",
871 i, sgd->byte_count, sgd->control,
872 sgd->host_side_addr, sgd->next_desc_ptr);
873 }
874 }
---
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: 47053 bytes --]
next prev parent reply other threads:[~2016-08-15 2:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-15 2:16 [PATCH 0/2] block: skd_main: Neatening and object size reduction Joe Perches
2016-08-15 2:16 ` [PATCH 1/2] block: skd_main: Neaten pr_debug uses by adding and using skd_dbg Joe Perches
2016-08-15 2:53 ` kbuild test robot [this message]
2016-08-15 2:59 ` Joe Perches
2016-08-15 2:16 ` [PATCH 2/2] block: skd_main: Reduce dynamic_debug size Joe Perches
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=201608151059.XJYZ9DEW%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=joe@perches.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.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
all inboxes | Powered by JetHome®