tree:
https://github.com/jimc/linux.git dd-drm-next
head: 2eec9300d730ad634b967a853579f0b5dffecc01
commit: 8819a72010473e6a18e27cb4a464fb921b1afbc0 [14/20] dyndbg: add print-to-tracefs,
selftest with it - RFC
config: arm-buildonly-randconfig-r005-20211014 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.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
#
https://github.com/jimc/linux/commit/8819a72010473e6a18e27cb4a464fb921b1a...
git remote add jimc
https://github.com/jimc/linux.git
git fetch --no-tags jimc dd-drm-next
git checkout 8819a72010473e6a18e27cb4a464fb921b1afbc0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arm
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 >>):
lib/dynamic_debug.c: In function 'ddebug_tracer_find':
> lib/dynamic_debug.c:1272:33: error: cast from pointer to integer
of different size [-Werror=pointer-to-int-cast]
1272 | if
(trc->key == (u64)modname)
| ^
In file included from include/linux/kernel.h:19,
from lib/dynamic_debug.c:16:
lib/dynamic_debug.c: In function 'ddebug_tracer_add':
lib/dynamic_debug.c:1308:62: error: invalid use of undefined type 'struct
module'
1308 | pr_warn("tracer-fn already set for %s\n",
mod->name);
| ^~
include/linux/printk.h:418:33: note: in definition of macro
'printk_index_wrap'
418 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/printk.h:499:9: note: in expansion of macro 'printk'
499 | printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~
lib/dynamic_debug.c:1308:17: note: in expansion of macro 'pr_warn'
1308 | pr_warn("tracer-fn already set for %s\n",
mod->name);
| ^~~~~~~
lib/dynamic_debug.c:1316:20: error: cast from pointer to integer of different size
[-Werror=pointer-to-int-cast]
1316 | trc->key = (u64)dt->ddebugs[0].modname;
| ^
In file included from include/linux/netdevice.h:49,
from lib/dynamic_debug.c:38:
lib/dynamic_debug.c:1317:56: error: cast from pointer to integer of different size
[-Werror=pointer-to-int-cast]
1317 | hash_add(ddebug_tracer_by_module, &trc->hnode,
(u64)dt->ddebugs[0].modname);
| ^
include/linux/hashtable.h:32:17: note: in definition of macro 'hash_min'
32 | (sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits))
| ^~~
lib/dynamic_debug.c:1317:9: note: in expansion of macro 'hash_add'
1317 | hash_add(ddebug_tracer_by_module, &trc->hnode,
(u64)dt->ddebugs[0].modname);
| ^~~~~~~~
lib/dynamic_debug.c:1317:56: error: cast from pointer to integer of different size
[-Werror=pointer-to-int-cast]
1317 | hash_add(ddebug_tracer_by_module, &trc->hnode,
(u64)dt->ddebugs[0].modname);
| ^
include/linux/hashtable.h:32:37: note: in definition of macro 'hash_min'
32 | (sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits))
| ^~~
lib/dynamic_debug.c:1317:9: note: in expansion of macro 'hash_add'
1317 | hash_add(ddebug_tracer_by_module, &trc->hnode,
(u64)dt->ddebugs[0].modname);
| ^~~~~~~~
In file included from include/linux/stringhash.h:7,
from include/linux/dcache.h:15,
from include/linux/fs.h:8,
from include/linux/huge_mm.h:8,
from include/linux/mm.h:727,
from include/linux/kallsyms.h:13,
from lib/dynamic_debug.c:19:
lib/dynamic_debug.c:1317:56: error: cast from pointer to integer of different size
[-Werror=pointer-to-int-cast]
1317 | hash_add(ddebug_tracer_by_module, &trc->hnode,
(u64)dt->ddebugs[0].modname);
| ^
include/linux/hash.h:16:38: note: in definition of macro 'hash_long'
16 | #define hash_long(val, bits) hash_32(val, bits)
| ^~~
include/linux/hashtable.h:61:41: note: in expansion of macro 'hash_min'
61 | hlist_add_head(node, &hashtable[hash_min(key,
HASH_BITS(hashtable))])
| ^~~~~~~~
lib/dynamic_debug.c:1317:9: note: in expansion of macro 'hash_add'
1317 | hash_add(ddebug_tracer_by_module, &trc->hnode,
(u64)dt->ddebugs[0].modname);
| ^~~~~~~~
In file included from include/linux/kernel.h:19,
from lib/dynamic_debug.c:16:
lib/dynamic_debug.c: In function 'ddebug_tracer_del':
lib/dynamic_debug.c:1331:65: error: invalid use of undefined type 'struct
module'
1331 | pr_warn("delete: cant find tracer for %s\n",
mod->name);
| ^~
include/linux/printk.h:418:33: note: in definition of macro
'printk_index_wrap'
418 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/printk.h:499:9: note: in expansion of macro 'printk'
499 | printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~
lib/dynamic_debug.c:1331:17: note: in expansion of macro 'pr_warn'
1331 | pr_warn("delete: cant find tracer for %s\n",
mod->name);
| ^~~~~~~
lib/dynamic_debug.c:1335:48: error: invalid use of undefined type 'struct
module'
1335 | vpr_info("deleted tracer for %s\n", mod->name);
| ^~
include/linux/printk.h:418:33: note: in definition of macro
'printk_index_wrap'
418 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/printk.h:519:9: note: in expansion of macro 'printk'
519 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~
lib/dynamic_debug.c:132:17: note: in expansion of macro 'pr_info'
132 | pr_info(fmt, ##__VA_ARGS__); \
| ^~~~~~~
lib/dynamic_debug.c:135:33: note: in expansion of macro 'vnpr_info'
135 | #define vpr_info(fmt, ...) vnpr_info(1, fmt, ##__VA_ARGS__)
| ^~~~~~~~~
lib/dynamic_debug.c:1335:9: note: in expansion of macro 'vpr_info'
1335 | vpr_info("deleted tracer for %s\n", mod->name);
| ^~~~~~~~
lib/dynamic_debug.c: In function '__dynamic_debug_tracer_action':
lib/dynamic_debug.c:1355:24: error: invalid use of undefined type 'struct
module'
1355 | if (mod->name == dt->mod_name) {
| ^~
lib/dynamic_debug.c:1359:32: error: invalid use of undefined type 'struct
module'
1359 | if (!strcmp(mod->name, dt->mod_name)) {
| ^~
In file included from include/linux/kernel.h:19,
vim +1272 lib/dynamic_debug.c
1266
1267 static struct ddebug_tracer *ddebug_tracer_find(const char *modname)
1268 {
1269 struct ddebug_tracer *trc;
1270
1271 hash_for_each_possible(ddebug_tracer_by_module, trc, hnode, (unsigned
long)modname)
1272 if (trc->key == (u64)modname)
1273 return trc;
1274
1275 return NULL;
1276 }
1277
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org