tree:
https://github.com/jimc/linux.git dd-drm-4d
head: 6ffb90a167c272a6a58f37bb5386e0cdcb7ba782
commit: e8f610cf4d272528ca10b080b749ef8086b71b7d [3/9] dyndbg: add
DEFINE_DYNAMIC_DEBUG_CATEGORIES and callbacks
config: hexagon-randconfig-r035-20210810 (attached as .config)
compiler: clang version 12.0.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/e8f610cf4d272528ca10b080b749ef8086b7...
git remote add jimc
https://github.com/jimc/linux.git
git fetch --no-tags jimc dd-drm-4d
git checkout e8f610cf4d272528ca10b080b749ef8086b71b7d
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir
ARCH=hexagon SHELL=/bin/bash
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:1187:52: error: incomplete definition of type
'struct module'
chgct = dynamic_debug_exec_queries(query,
kp->mod->name);
~~~~~~~^
include/linux/sysfs.h:26:8: note: forward declaration of 'struct module'
struct module;
^
1 error generated.
vim +1187 lib/dynamic_debug.c
1161
1162 /**
1163 * param_set_dyndbg() - drm.debug style bitmap to format-prefix categories
1164 * @instr: string echo>d to sysfs
1165 * @kp: struct kernel_param* ->data has bitmap
1166 * Exported to support DEFINE_DYNAMIC_DEBUG_CATEGORIES
1167 */
1168 int param_set_dyndbg(const char *instr, const struct kernel_param *kp)
1169 {
1170 unsigned long inbits;
1171 int rc, i, chgct = 0, totct = 0;
1172 char query[OUR_QUERY_SIZE];
1173 struct dyndbg_bitdesc *bitmap = (struct dyndbg_bitdesc *) kp->data;
1174
1175 rc = kstrtoul(instr, 0, &inbits);
1176 if (rc) {
1177 pr_err("set_dyndbg: failed\n");
1178 return -EINVAL;
1179 }
1180 vpr_info("set_dyndbg: input 0x%lx\n", inbits);
1181
1182 for (i = 0; !!bitmap[i].prefix; i++) {
1183
1184 sprintf(query, "format '^%s' %cp", bitmap[i].prefix,
1185 test_bit(i, &inbits) ? '+' : '-');
1186
1187 chgct = dynamic_debug_exec_queries(query,
kp->mod->name);
1188
1189 v2pr_info("bit-%d: %d changes by '%s'\n", i, chgct, query);
1190 totct += chgct;
1191 }
1192 vpr_info("total changes: %d\n", totct);
1193 return 0;
1194 }
1195 EXPORT_SYMBOL(param_set_dyndbg);
1196
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org