tree:
https://git.kernel.org/pub/scm/linux/kernel/git/kbingham/rcar.git vsp1/v3u
head: 4b88e2d75a21f477bd1aaf9eec8c567c54ffe43d
commit: 3137cddcf132248acdc0ddcba4cf33565b7ed955 [20/41] v4l: vsp1: Add debugfs system
v1.8
config: mips-allyesconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 9.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://git.kernel.org/pub/scm/linux/kernel/git/kbingham/rcar.git/commit/...
git remote add rcar
https://git.kernel.org/pub/scm/linux/kernel/git/kbingham/rcar.git
git fetch --no-tags rcar vsp1/v3u
git checkout 3137cddcf132248acdc0ddcba4cf33565b7ed955
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
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 >>):
drivers/media/platform/vsp1/vsp1_debugfs.c: In function 'vsp1_debugfs_info':
drivers/media/platform/vsp1/vsp1_debugfs.c:371:59: error: 'VI6_WPF0_FRCNT'
undeclared (first use in this function)
371 | seq_printf(s, "VI6_WPF0_FRCNT = 0x%08x", vsp1_read(vsp1,
VI6_WPF0_FRCNT));
| ^~~~~~~~~~~~~~
drivers/media/platform/vsp1/vsp1_debugfs.c:371:59: note: each undeclared identifier is
reported only once for each function it appears in
drivers/media/platform/vsp1/vsp1_debugfs.c: In function 'vsp1_debugfs_init':
> drivers/media/platform/vsp1/vsp1_debugfs.c:471:17: warning:
variable 'info_file' set but not used [-Wunused-but-set-variable]
471 |
struct dentry *info_file;
| ^~~~~~~~~
At top level:
drivers/media/platform/vsp1/vsp1_debugfs.c:311:13: warning:
'vsp1_reg_read_and_decode' defined but not used [-Wunused-function]
311 | static void vsp1_reg_read_and_decode(struct vsp1_device *vsp1,
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/vsp1/vsp1_debugfs.c:281:12: warning: 'vsp1_reg_decode'
defined but not used [-Wunused-function]
281 | static int vsp1_reg_decode(struct seq_file *s, u32 offset, u32 value)
| ^~~~~~~~~~~~~~~
vim +/info_file +471 drivers/media/platform/vsp1/vsp1_debugfs.c
467
468 /* Debugfs initialised after entities are created */
469 int vsp1_debugfs_init(struct vsp1_device *vsp1)
470 {
471 struct dentry *info_file;
472
473 vsp1->regset.regs = vsp1_regset;
474 vsp1->regset.base = vsp1->mmio;
475 vsp1->regset.nregs = ARRAY_SIZE(vsp1_regset);
476
477 vsp1->dbgroot = debugfs_create_dir(dev_name(vsp1->dev), NULL);
478 if (!vsp1->dbgroot)
479 return -ENOMEM;
480
481 /* dentry pointer discarded */
482 info_file = debugfs_create_file("info", 0444,
483 vsp1->dbgroot,
484 vsp1,
485 &vsp1_debugfs_info_fops);
486
487 /* dentry pointer discarded */
488 info_file = debugfs_create_file("regs_local", 0444,
489 vsp1->dbgroot,
490 vsp1,
491 &vsp1_debugfs_regs_fops);
492
493 /* dentry pointer discarded */
494 info_file = debugfs_create_file("reset_wpf0", 0444,
495 vsp1->dbgroot,
496 vsp1,
497 &vsp1_debugfs_reset_wpf_fops);
498
499 debugfs_create_regset32("regs", 0444, vsp1->dbgroot,
&vsp1->regset);
500
501 return 0;
502 }
503
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org