All of lore.kernel.org
 help / color / mirror / Atom feed
* [rcar:vsp1/v3u 14/44] drivers/media/platform/vsp1/vsp1_debugfs.c:471:17: warning: variable 'info_file' set but not used
@ 2021-05-07 21:00 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-05-07 21:00 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3827 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/kbingham/rcar.git vsp1/v3u
head:   c00301e00101f8cd90d76993f64aebfa455e6a64
commit: d8485ed0a583f664e2f3b842326c5460847a42d3 [14/44] v4l: vsp1: Add debugfs system v1.8
config: ia64-allmodconfig (attached as .config)
compiler: ia64-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/?id=d8485ed0a583f664e2f3b842326c5460847a42d3
        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 d8485ed0a583f664e2f3b842326c5460847a42d3
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=ia64 

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 >>):

   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(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 64171 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-07 21:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-07 21:00 [rcar:vsp1/v3u 14/44] drivers/media/platform/vsp1/vsp1_debugfs.c:471:17: warning: variable 'info_file' set but not used kernel test robot

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.