* [jimc:dd-drm-next 3/8] lib/dynamic_debug.c:1181:52: error: invalid use of undefined type 'struct module'
@ 2021-08-03 8:24 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-08-03 8:24 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3008 bytes --]
tree: https://github.com/jimc/linux.git dd-drm-next
head: de4e83123751e07399eb4ca43e64c5fde54fc086
commit: 93da4defcb91e3de03021c749a0003f00394433b [3/8] dyndbg: add DEFINE_DYNDBG_BITMAP and callbacks
config: arm64-randconfig-r025-20210803 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 10.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
# https://github.com/jimc/linux/commit/93da4defcb91e3de03021c749a0003f00394433b
git remote add jimc https://github.com/jimc/linux.git
git fetch --no-tags jimc dd-drm-next
git checkout 93da4defcb91e3de03021c749a0003f00394433b
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=arm64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
lib/dynamic_debug.c:1162:5: warning: no previous prototype for 'param_set_dyndbg' [-Wmissing-prototypes]
1162 | int param_set_dyndbg(const char *instr, const struct kernel_param *kp)
| ^~~~~~~~~~~~~~~~
lib/dynamic_debug.c: In function 'param_set_dyndbg':
>> lib/dynamic_debug.c:1181:52: error: invalid use of undefined type 'struct module'
1181 | chgct = dynamic_debug_exec_queries(query, kp->mod->name);
| ^~
lib/dynamic_debug.c: At top level:
lib/dynamic_debug.c:1191:5: warning: no previous prototype for 'param_get_dyndbg' [-Wmissing-prototypes]
1191 | int param_get_dyndbg(char *buffer, const struct kernel_param *kp)
| ^~~~~~~~~~~~~~~~
vim +1181 lib/dynamic_debug.c
1161
> 1162 int param_set_dyndbg(const char *instr, const struct kernel_param *kp)
1163 {
1164 unsigned long inbits;
1165 int rc, i, chgct = 0, totct = 0;
1166 char query[OUR_QUERY_SIZE];
1167 struct dyndbg_bitdesc *bitmap = (struct dyndbg_bitdesc *) kp->data;
1168
1169 rc = kstrtoul(instr, 0, &inbits);
1170 if (rc) {
1171 pr_err("set_dyndbg: failed\n");
1172 return -EINVAL;
1173 }
1174 vpr_info("set_dyndbg: input 0x%lx\n", inbits);
1175
1176 for (i = 0; !!bitmap[i].prefix; i++) {
1177
1178 sprintf(query, "format '^%s' %cp", bitmap[i].prefix,
1179 test_bit(i, &inbits) ? '+' : '-');
1180
> 1181 chgct = dynamic_debug_exec_queries(query, kp->mod->name);
1182
1183 v2pr_info("bit-%d: %d changes by '%s'\n", i, chgct, query);
1184 totct += chgct;
1185 }
1186 vpr_info("total changes: %d\n", totct);
1187 return 0;
1188 }
1189 EXPORT_SYMBOL(param_set_dyndbg);
1190
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 37408 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-03 8:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-03 8:24 [jimc:dd-drm-next 3/8] lib/dynamic_debug.c:1181:52: error: invalid use of undefined type 'struct module' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.