tree:
https://github.com/jimc/linux.git dd-drm
head: 558f6a2e2f7f44c4546cfae653b9c1c8f9b2f200
commit: 0f03b0e100e7a3c1568a2454f3d453f1706d636e [4/5] dyndbg: 1st port of bitmap-to-query
code
config: powerpc64-randconfig-r036-20210511 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
a0fed635fe1701470062495a6ffee1c608f3f1bc)
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
# install powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
#
https://github.com/jimc/linux/commit/0f03b0e100e7a3c1568a2454f3d453f1706d...
git remote add jimc
https://github.com/jimc/linux.git
git fetch --no-tags jimc dd-drm
git checkout 0f03b0e100e7a3c1568a2454f3d453f1706d636e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=powerpc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro
'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:214:1: note: expanded from here
__do_insb
^
arch/powerpc/include/asm/io.h:556:56: note: expanded from macro '__do_insb'
#define __do_insb(p, b, n) readsb((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from lib/dynamic_debug.c:35:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:45:1: warning: performing pointer arithmetic on a
null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro
'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:216:1: note: expanded from here
__do_insw
^
arch/powerpc/include/asm/io.h:557:56: note: expanded from macro '__do_insw'
#define __do_insw(p, b, n) readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from lib/dynamic_debug.c:35:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:47:1: warning: performing pointer arithmetic on a
null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro
'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:218:1: note: expanded from here
__do_insl
^
arch/powerpc/include/asm/io.h:558:56: note: expanded from macro '__do_insl'
#define __do_insl(p, b, n) readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from lib/dynamic_debug.c:35:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:49:1: warning: performing pointer arithmetic on a
null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro
'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:220:1: note: expanded from here
__do_outsb
^
arch/powerpc/include/asm/io.h:559:58: note: expanded from macro '__do_outsb'
#define __do_outsb(p, b, n) writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from lib/dynamic_debug.c:35:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:51:1: warning: performing pointer arithmetic on a
null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro
'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:222:1: note: expanded from here
__do_outsw
^
arch/powerpc/include/asm/io.h:560:58: note: expanded from macro '__do_outsw'
#define __do_outsw(p, b, n) writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from lib/dynamic_debug.c:35:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:53:1: warning: performing pointer arithmetic on a
null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro
'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:224:1: note: expanded from here
__do_outsl
^
arch/powerpc/include/asm/io.h:561:58: note: expanded from macro '__do_outsl'
#define __do_outsl(p, b, n) writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
> lib/dynamic_debug.c:1159:13: error: use of undeclared identifier
'OUR_QUERY_SIZE'
char query[OUR_QUERY_SIZE];
^
> lib/dynamic_debug.c:1171:48: error: use of undeclared identifier
'format_class_prefixes'
for_each_set_bit(bitpos, &changes,
ARRAY_SIZE(format_class_prefixes)) {
^
> lib/dynamic_debug.c:1171:48: error: use of undeclared identifier
'format_class_prefixes'
>
lib/dynamic_debug.c:1171:48: error: use of undeclared identifier
'format_class_prefixes'
>
lib/dynamic_debug.c:1171:48: error: use of undeclared identifier
'format_class_prefixes'
>
lib/dynamic_debug.c:1171:48: error: use of undeclared identifier
'format_class_prefixes'
>
lib/dynamic_debug.c:1171:48: error: use of undeclared identifier
'format_class_prefixes'
>
lib/dynamic_debug.c:1171:48: error: use of undeclared identifier
'format_class_prefixes'
>
lib/dynamic_debug.c:1171:48: error: use of undeclared identifier
'format_class_prefixes'
>
lib/dynamic_debug.c:1171:48: error: use of undeclared identifier
'format_class_prefixes'
lib/dynamic_debug.c:1173:38: error: use of
undeclared identifier 'format_class_prefixes'
sprintf(query, "format '^%s' %cp",
format_class_prefixes[bitpos],
^
12 warnings and 11 errors generated.
vim +/OUR_QUERY_SIZE +1159 lib/dynamic_debug.c
1153
1154 static int param_set_dyndbg(const char *instr, const struct kernel_param *kp)
1155 {
1156 unsigned int val;
1157 unsigned long changes, result;
1158 int rc, chgct = 0, totct = 0, bitpos;
1159 char query[OUR_QUERY_SIZE];
1160
1161 rc = kstrtouint(instr, 0, &val);
1162 if (rc) {
1163 pr_err("%s: failed\n", __func__);
1164 return -EINVAL;
1165 }
1166 result = val;
1167 // changes = result ^ __drm_debug;
1168
1169 pr_debug("changes:0x%lx from result:0x%lx\n", changes, result);
1170
1171 for_each_set_bit(bitpos, &changes,
ARRAY_SIZE(format_class_prefixes)) {
1172
1173 sprintf(query, "format '^%s' %cp",
format_class_prefixes[bitpos],
1174 test_bit(bitpos, &result) ? '+' : '-');
1175
1176 chgct = dynamic_debug_exec_queries(query, "drm*");
1177 if (chgct < 0) {
1178 pr_err("%s: exec err:%d on: %s\n", __func__, chgct, query);
1179 continue;
1180 }
1181 pr_debug("change ct:%d on %s\n", chgct, query);
1182 totct += chgct;
1183 }
1184 pr_debug("total changes: %d\n", totct);
1185 //__drm_debug = result;
1186 return 0;
1187 }
1188
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org