From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [jimc:dd-drm-next 3/8] lib/dynamic_debug.c:1181:52: error: invalid use of undefined type 'struct module'
Date: Tue, 03 Aug 2021 16:24:26 +0800 [thread overview]
Message-ID: <202108031619.Gp9PykmX-lkp@intel.com> (raw)
[-- 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 --]
reply other threads:[~2021-08-03 8:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202108031619.Gp9PykmX-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.