tree:
git://git.infradead.org/users/hch/misc.git dma-header-cleanups
head: 5093be553444b2cc6c459d6e9f5a4692ac0b4125
commit: 6f0e3350579b304d60868c94322cfb8c9e9bc54c [29/31] dma-mapping: move dma-debug.h to
kernel/dma/
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 6f0e3350579b304d60868c94322cfb8c9e9bc54c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
> kernel/dma/debug.c:403:6: warning: no previous prototype for
'debug_dma_dump_mappings' [-Wmissing-prototypes]
403 | void
debug_dma_dump_mappings(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~~~~
> kernel/dma/debug.c:862:6: warning: no previous prototype for
'dma_debug_add_bus' [-Wmissing-prototypes]
862 | void
dma_debug_add_bus(struct bus_type *bus)
| ^~~~~~~~~~~~~~~~~
git remote add hch-misc
git://git.infradead.org/users/hch/misc.git
git fetch --no-tags hch-misc dma-header-cleanups
git checkout 6f0e3350579b304d60868c94322cfb8c9e9bc54c
vim +/debug_dma_dump_mappings +403 kernel/dma/debug.c
0abdd7a81b7e3f lib/dma-debug.c Dan Williams 2014-01-21 399
ac26c18bd35d98 lib/dma-debug.c David Woodhouse 2009-02-12 400 /*
ac26c18bd35d98 lib/dma-debug.c David Woodhouse 2009-02-12 401 * Dump mapping entries
for debugging purposes
ac26c18bd35d98 lib/dma-debug.c David Woodhouse 2009-02-12 402 */
ac26c18bd35d98 lib/dma-debug.c David Woodhouse 2009-02-12 @403 void
debug_dma_dump_mappings(struct device *dev)
ac26c18bd35d98 lib/dma-debug.c David Woodhouse 2009-02-12 404 {
ac26c18bd35d98 lib/dma-debug.c David Woodhouse 2009-02-12 405 int idx;
ac26c18bd35d98 lib/dma-debug.c David Woodhouse 2009-02-12 406
ac26c18bd35d98 lib/dma-debug.c David Woodhouse 2009-02-12 407 for (idx = 0; idx <
HASH_SIZE; idx++) {
ac26c18bd35d98 lib/dma-debug.c David Woodhouse 2009-02-12 408 struct hash_bucket
*bucket = &dma_entry_hash[idx];
ac26c18bd35d98 lib/dma-debug.c David Woodhouse 2009-02-12 409 struct
dma_debug_entry *entry;
ac26c18bd35d98 lib/dma-debug.c David Woodhouse 2009-02-12 410 unsigned long flags;
ac26c18bd35d98 lib/dma-debug.c David Woodhouse 2009-02-12 411
ac26c18bd35d98 lib/dma-debug.c David Woodhouse 2009-02-12 412
spin_lock_irqsave(&bucket->lock, flags);
ac26c18bd35d98 lib/dma-debug.c David Woodhouse 2009-02-12 413
ac26c18bd35d98 lib/dma-debug.c David Woodhouse 2009-02-12 414
list_for_each_entry(entry, &bucket->list, list) {
ac26c18bd35d98 lib/dma-debug.c David Woodhouse 2009-02-12 415 if (!dev || dev ==
entry->dev) {
ac26c18bd35d98 lib/dma-debug.c David Woodhouse 2009-02-12 416
dev_info(entry->dev,
0abdd7a81b7e3f lib/dma-debug.c Dan Williams 2014-01-21 417 "%s idx %d
P=%Lx N=%lx D=%Lx L=%Lx %s %s\n",
ac26c18bd35d98 lib/dma-debug.c David Woodhouse 2009-02-12 418
type2name[entry->type], idx,
0abdd7a81b7e3f lib/dma-debug.c Dan Williams 2014-01-21 419 phys_addr(entry),
entry->pfn,
ac26c18bd35d98 lib/dma-debug.c David Woodhouse 2009-02-12 420
entry->dev_addr, entry->size,
6c9c6d6301287e lib/dma-debug.c Shuah Khan 2012-10-08 421
dir2name[entry->direction],
6c9c6d6301287e lib/dma-debug.c Shuah Khan 2012-10-08 422
maperr2str[entry->map_err_type]);
ac26c18bd35d98 lib/dma-debug.c David Woodhouse 2009-02-12 423 }
ac26c18bd35d98 lib/dma-debug.c David Woodhouse 2009-02-12 424 }
ac26c18bd35d98 lib/dma-debug.c David Woodhouse 2009-02-12 425
ac26c18bd35d98 lib/dma-debug.c David Woodhouse 2009-02-12 426
spin_unlock_irqrestore(&bucket->lock, flags);
9ff6aa027dbb98 kernel/dma/debug.c Eric Dumazet 2019-10-28 427 cond_resched();
ac26c18bd35d98 lib/dma-debug.c David Woodhouse 2009-02-12 428 }
ac26c18bd35d98 lib/dma-debug.c David Woodhouse 2009-02-12 429 }
ac26c18bd35d98 lib/dma-debug.c David Woodhouse 2009-02-12 430
:::::: The code at line 403 was first introduced by commit
:::::: ac26c18bd35d982d1ba06020a992b1085fefc3e2 dma-debug: add function to dump dma
mappings
:::::: TO: David Woodhouse <dwmw2(a)infradead.org>
:::::: CC: Joerg Roedel <joerg.roedel(a)amd.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org