All of lore.kernel.org
 help / color / mirror / Atom feed
* [rcar:vsp1/v3u 20/41] drivers/media/platform/vsp1/vsp1_debugfs.c:471:17: warning: variable 'info_file' set but not used
@ 2021-06-18 18:19 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-06-18 18:19 UTC (permalink / raw)
  To: kbuild-all

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

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/?id=3137cddcf132248acdc0ddcba4cf33565b7ed955
        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@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: 71192 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [rcar:vsp1/v3u 20/41] drivers/media/platform/vsp1/vsp1_debugfs.c:471:17: warning: variable 'info_file' set but not used
@ 2021-06-18 18:13 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-06-18 18:13 UTC (permalink / raw)
  To: kbuild-all

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

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: x86_64-randconfig-a004-20210618 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 64720f57bea6a6bf033feef4a5751ab9c0c3b401)
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
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/kbingham/rcar.git/commit/?id=3137cddcf132248acdc0ddcba4cf33565b7ed955
        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=clang make.cross ARCH=x86_64 

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:371:59: error: use of undeclared identifier 'VI6_WPF0_FRCNT'
           seq_printf(s, "VI6_WPF0_FRCNT = 0x%08x", vsp1_read(vsp1, VI6_WPF0_FRCNT));
                                                                    ^
>> drivers/media/platform/vsp1/vsp1_debugfs.c:471:17: warning: variable 'info_file' set but not used [-Wunused-but-set-variable]
           struct dentry *info_file;
                          ^
   1 warning and 1 error generated.


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: 44484 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-18 18:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-18 18:19 [rcar:vsp1/v3u 20/41] drivers/media/platform/vsp1/vsp1_debugfs.c:471:17: warning: variable 'info_file' set but not used kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2021-06-18 18:13 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.