tree:
https://github.com/jimc/linux.git dd-drm-next
head: 7c9c791fee34dc8f3ef72a288efd6de7b48d5fb2
commit: ec8e20fb31430e6a18affbddaac7fbe29255ffaa [2/8] dyndbg: add
DEFINE_DYNAMIC_DEBUG_CATEGORIES and callbacks
config: hexagon-randconfig-r045-20210816 (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/ec8e20fb31430e6a18affbddaac7fbe29255...
git remote add jimc
https://github.com/jimc/linux.git
git fetch --no-tags jimc dd-drm-next
git checkout ec8e20fb31430e6a18affbddaac7fbe29255ffaa
# 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 warnings (new ones prefixed by >>):
> lib/dynamic_debug.c:586: warning: expecting prototype for
param_set_dyndbg(). Prototype was for FMT_QUERY_SIZE() instead
vim +586 lib/dynamic_debug.c
579
580 /**
581 * param_set_dyndbg() - drm.debug style bits=>categories setter
582 * @instr: string echo>d to sysfs
583 * @kp: struct kernel_param* ->data has bitmap
584 * Exported to support DEFINE_DYNAMIC_DEBUG_CATEGORIES
585 */
586 #define FMT_QUERY_SIZE 128 /* typically need <40 */
587 int param_set_dyndbg(const char *instr, const struct kernel_param *kp)
588 {
589 unsigned long inbits;
590 int rc, i, matches = 0, totct = 0;
591 char query[FMT_QUERY_SIZE];
592 const struct dyndbg_bitdesc *bitmap = kp->data;
593
594 if (!bitmap) {
595 pr_err("set_dyndbg: no bits=>queries map\n");
596 return -EINVAL;
597 }
598 rc = kstrtoul(instr, 0, &inbits);
599 if (rc) {
600 pr_err("set_dyndbg: failed\n");
601 return rc;
602 }
603 vpr_info("set_dyndbg: input 0x%lx\n", inbits);
604
605 for (i = 0; bitmap->prefix; i++, bitmap++) {
606 snprintf(query, FMT_QUERY_SIZE, "format '^%s' %cp",
bitmap->prefix,
607 test_bit(i, &inbits) ? '+' : '-');
608
609 matches = dynamic_debug_exec_queries(query, kp->mod->name);
610
611 v2pr_info("bit-%d: %d matches on '%s'\n", i, matches, query);
612 totct += matches;
613 }
614 vpr_info("total matches: %d\n", totct);
615 return 0;
616 }
617 EXPORT_SYMBOL(param_set_dyndbg);
618
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org