tree: https://git.kernel.org/pub/scm/linux/kernel/git/kbingham/rcar.git kbingham/vsp1/debugfs head: 73e1dae0c0afd4ccbe318e1bc9881b3e800226ba commit: 7fd316488de68da21571b26aef5c60524a9c651b [3/7] v4l: vsp1: Add debugfs system v1.8 config: mips-allyesconfig compiler: mips-linux-gcc (GCC) 11.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/?id=7fd316488de68da21571b26aef5c60524a9c651b git remote add kbingham-rcar https://git.kernel.org/pub/scm/linux/kernel/git/kbingham/rcar.git git fetch --no-tags kbingham-rcar kbingham/vsp1/debugfs git checkout 7fd316488de68da21571b26aef5c60524a9c651b # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/media/platform/renesas/vsp1/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/media/platform/renesas/vsp1/vsp1_debugfs.c: In function 'vsp1_debugfs_info': drivers/media/platform/renesas/vsp1/vsp1_debugfs.c:371:66: 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/renesas/vsp1/vsp1_debugfs.c:371:66: note: each undeclared identifier is reported only once for each function it appears in drivers/media/platform/renesas/vsp1/vsp1_debugfs.c: In function 'vsp1_debugfs_init': >> drivers/media/platform/renesas/vsp1/vsp1_debugfs.c:471:24: warning: variable 'info_file' set but not used [-Wunused-but-set-variable] 471 | struct dentry *info_file; | ^~~~~~~~~ At top level: drivers/media/platform/renesas/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/renesas/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/renesas/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 https://01.org/lkp