From: kbuild test robot <lkp@intel.com>
To: Robin Murphy <robin.murphy@arm.com>
Cc: kbuild-all@01.org, hch@lst.de, m.szyprowski@samsung.com,
iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] dma-debug: Check scatterlist segments
Date: Wed, 25 Apr 2018 12:52:35 +0800 [thread overview]
Message-ID: <201804251026.nKs2FKBc%fengguang.wu@intel.com> (raw)
In-Reply-To: <5952922c7980b5c9091692d886bbca220e7371c2.1524586299.git.robin.murphy@arm.com>
[-- Attachment #1: Type: text/plain, Size: 7136 bytes --]
Hi Robin,
I love your patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on v4.17-rc2 next-20180424]
[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/Robin-Murphy/dma-debug-Check-scatterlist-segments/20180425-070135
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=sh
All warnings (new ones prefixed by >>):
In file included from arch/sh/include/asm/bug.h:112:0,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from include/asm-generic/current.h:5,
from ./arch/sh/include/generated/asm/current.h:1,
from include/linux/sched.h:12,
from include/linux/sched/task_stack.h:9,
from lib/dma-debug.c:20:
lib/dma-debug.c: In function 'check_sg_segment':
>> lib/dma-debug.c:232:12: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'dma_addr_t {aka unsigned int}' [-Wformat=]
WARN(1, "%s %s: " format, \
^
include/asm-generic/bug.h:98:50: note: in definition of macro '__WARN_printf'
#define __WARN_printf(arg...) do { __warn_printk(arg); __WARN(); } while (0)
^~~
>> lib/dma-debug.c:232:4: note: in expansion of macro 'WARN'
WARN(1, "%s %s: " format, \
^~~~
>> lib/dma-debug.c:1316:3: note: in expansion of macro 'err_printk'
err_printk(dev, NULL, "DMA-API: mapping sg segment across boundary [start=0x%016llx] [end=0x%016llx] [boundary=0x%016llx]\n",
^~~~~~~~~~
lib/dma-debug.c:1316:85: note: format string is defined here
err_printk(dev, NULL, "DMA-API: mapping sg segment across boundary [start=0x%016llx] [end=0x%016llx] [boundary=0x%016llx]\n",
~~~~~~^
%016x
In file included from arch/sh/include/asm/bug.h:112:0,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from include/asm-generic/current.h:5,
from ./arch/sh/include/generated/asm/current.h:1,
from include/linux/sched.h:12,
from include/linux/sched/task_stack.h:9,
from lib/dma-debug.c:20:
lib/dma-debug.c:232:12: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 5 has type 'dma_addr_t {aka unsigned int}' [-Wformat=]
WARN(1, "%s %s: " format, \
^
include/asm-generic/bug.h:98:50: note: in definition of macro '__WARN_printf'
#define __WARN_printf(arg...) do { __warn_printk(arg); __WARN(); } while (0)
^~~
>> lib/dma-debug.c:232:4: note: in expansion of macro 'WARN'
WARN(1, "%s %s: " format, \
^~~~
>> lib/dma-debug.c:1316:3: note: in expansion of macro 'err_printk'
err_printk(dev, NULL, "DMA-API: mapping sg segment across boundary [start=0x%016llx] [end=0x%016llx] [boundary=0x%016llx]\n",
^~~~~~~~~~
lib/dma-debug.c:1316:101: note: format string is defined here
err_printk(dev, NULL, "DMA-API: mapping sg segment across boundary [start=0x%016llx] [end=0x%016llx] [boundary=0x%016llx]\n",
~~~~~~^
%016x
In file included from arch/sh/include/asm/bug.h:112:0,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from include/asm-generic/current.h:5,
from ./arch/sh/include/generated/asm/current.h:1,
from include/linux/sched.h:12,
from include/linux/sched/task_stack.h:9,
from lib/dma-debug.c:20:
lib/dma-debug.c:232:12: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 6 has type 'dma_addr_t {aka unsigned int}' [-Wformat=]
WARN(1, "%s %s: " format, \
^
include/asm-generic/bug.h:98:50: note: in definition of macro '__WARN_printf'
#define __WARN_printf(arg...) do { __warn_printk(arg); __WARN(); } while (0)
^~~
>> lib/dma-debug.c:232:4: note: in expansion of macro 'WARN'
WARN(1, "%s %s: " format, \
^~~~
>> lib/dma-debug.c:1316:3: note: in expansion of macro 'err_printk'
err_printk(dev, NULL, "DMA-API: mapping sg segment across boundary [start=0x%016llx] [end=0x%016llx] [boundary=0x%016llx]\n",
^~~~~~~~~~
lib/dma-debug.c:1316:122: note: format string is defined here
err_printk(dev, NULL, "DMA-API: mapping sg segment across boundary [start=0x%016llx] [end=0x%016llx] [boundary=0x%016llx]\n",
~~~~~~^
%016x
vim +232 lib/dma-debug.c
2e507d84 Joerg Roedel 2009-05-22 227
6c132d1b David Woodhouse 2009-01-19 228 #define err_printk(dev, entry, format, arg...) do { \
2d62ece1 Joerg Roedel 2009-01-09 229 error_count += 1; \
2e507d84 Joerg Roedel 2009-05-22 230 if (driver_filter(dev) && \
2e507d84 Joerg Roedel 2009-05-22 231 (show_all_errors || show_num_errors > 0)) { \
2d62ece1 Joerg Roedel 2009-01-09 @232 WARN(1, "%s %s: " format, \
ec9c96ef Kyle McMartin 2009-08-19 233 dev ? dev_driver_string(dev) : "NULL", \
ec9c96ef Kyle McMartin 2009-08-19 234 dev ? dev_name(dev) : "NULL", ## arg); \
6c132d1b David Woodhouse 2009-01-19 235 dump_entry_trace(entry); \
2d62ece1 Joerg Roedel 2009-01-09 236 } \
2d62ece1 Joerg Roedel 2009-01-09 237 if (!show_all_errors && show_num_errors > 0) \
2d62ece1 Joerg Roedel 2009-01-09 238 show_num_errors -= 1; \
2d62ece1 Joerg Roedel 2009-01-09 239 } while (0);
2d62ece1 Joerg Roedel 2009-01-09 240
:::::: The code at line 232 was first introduced by commit
:::::: 2d62ece14fe04168a7d16688ddd2d17ac472268c dma-debug: add core checking functions
:::::: TO: Joerg Roedel <joerg.roedel@amd.com>
:::::: CC: Joerg Roedel <joerg.roedel@amd.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/gzip, Size: 47757 bytes --]
next prev parent reply other threads:[~2018-04-25 4:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-24 16:12 [PATCH] dma-debug: Check scatterlist segments Robin Murphy
2018-04-25 4:52 ` kbuild test robot [this message]
2018-04-25 5:58 ` Christoph Hellwig
2018-05-08 10:14 ` Robin Murphy
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=201804251026.nKs2FKBc%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=hch@lst.de \
--cc=iommu@lists.linux-foundation.org \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=robin.murphy@arm.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