From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [jimc:dd-drm-next 8/8] lib/dynamic_debug.c:1224:5: warning: no previous prototype for 'dyndbg_register_aux_print'
Date: Thu, 05 Aug 2021 12:06:05 +0800 [thread overview]
Message-ID: <202108051257.kATrephg-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3760 bytes --]
tree: https://github.com/jimc/linux.git dd-drm-next
head: a2a11ed64801a9198e5009b5c9339f4221105a36
commit: a2a11ed64801a9198e5009b5c9339f4221105a36 [8/8] dyndbg: add special aux_print framework
config: nds32-randconfig-s032-20210804 (attached as .config)
compiler: nds32le-linux-gcc (GCC) 10.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-348-gf0e6938b-dirty
# https://github.com/jimc/linux/commit/a2a11ed64801a9198e5009b5c9339f4221105a36
git remote add jimc https://github.com/jimc/linux.git
git fetch --no-tags jimc dd-drm-next
git checkout a2a11ed64801a9198e5009b5c9339f4221105a36
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=nds32
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
lib/dynamic_debug.c: In function 'param_set_dyndbg':
lib/dynamic_debug.c:1201:52: error: invalid use of undefined type 'struct module'
1201 | chgct = dynamic_debug_exec_queries(query, kp->mod->name);
| ^~
lib/dynamic_debug.c: At top level:
>> lib/dynamic_debug.c:1224:5: warning: no previous prototype for 'dyndbg_register_aux_print' [-Wmissing-prototypes]
1224 | int dyndbg_register_aux_print(char *query,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> lib/dynamic_debug.c:1230:5: warning: no previous prototype for 'dyndbg_unregister_aux_print' [-Wmissing-prototypes]
1230 | int dyndbg_unregister_aux_print(char *query)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/dyndbg_register_aux_print +1224 lib/dynamic_debug.c
1181
1182 int param_set_dyndbg(const char *instr, const struct kernel_param *kp)
1183 {
1184 unsigned long inbits;
1185 int rc, i, chgct = 0, totct = 0;
1186 char query[OUR_QUERY_SIZE];
1187 struct dyndbg_bitdesc *bitmap = (struct dyndbg_bitdesc *) kp->data;
1188
1189 rc = kstrtoul(instr, 0, &inbits);
1190 if (rc) {
1191 pr_err("set_dyndbg: failed\n");
1192 return -EINVAL;
1193 }
1194 vpr_info("set_dyndbg: input 0x%lx\n", inbits);
1195
1196 for (i = 0; !!bitmap[i].prefix; i++) {
1197
1198 sprintf(query, "format '^%s' %cp", bitmap[i].prefix,
1199 test_bit(i, &inbits) ? '+' : '-');
1200
> 1201 chgct = dynamic_debug_exec_queries(query, kp->mod->name);
1202
1203 v2pr_info("bit-%d: %d changes by '%s'\n", i, chgct, query);
1204 totct += chgct;
1205 }
1206 vpr_info("total changes: %d\n", totct);
1207 return 0;
1208 }
1209 EXPORT_SYMBOL(param_set_dyndbg);
1210
1211 int param_get_dyndbg(char *buffer, const struct kernel_param *kp)
1212 {
1213 return scnprintf(buffer, PAGE_SIZE, "%u\n",
1214 *((unsigned int *)kp->arg));
1215 }
1216 EXPORT_SYMBOL(param_get_dyndbg);
1217
1218 const struct kernel_param_ops param_ops_dyndbg = {
1219 .set = param_set_dyndbg,
1220 .get = param_get_dyndbg,
1221 };
1222 EXPORT_SYMBOL(param_ops_dyndbg);
1223
> 1224 int dyndbg_register_aux_print(char *query,
1225 int (*aux_print)(const char *fmt, char *prefix,
1226 char *label, void *))
1227 {
1228 return 0;
1229 }
> 1230 int dyndbg_unregister_aux_print(char *query)
---
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: 34396 bytes --]
reply other threads:[~2021-08-05 4:06 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=202108051257.kATrephg-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.