Re: [PATCH 2/3] media: platform: Add Renesas Input Video Control block driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Daniel,

kernel test robot noticed the following build warnings:

[auto build test WARNING on linus/master]
[also build test WARNING on media-tree/master sailus-media-tree/streams sailus-media-tree/master v6.15-rc7 next-20250516]
[cannot apply to linuxtv-media-pending/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Daniel-Scally/dt-bindings-media-Add-bindings-for-the-RZ-V2H-IVC-block/20250519-230026
base:   linus/master
patch link:    https://lore.kernel.org/r/20250519145754.454005-3-dan.scally%40ideasonboard.com
patch subject: [PATCH 2/3] media: platform: Add Renesas Input Video Control block driver
config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20250520/202505201457.ZoulCkx7-lkp@xxxxxxxxx/config)
compiler: m68k-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250520/202505201457.ZoulCkx7-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505201457.ZoulCkx7-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/media/platform/renesas/rzv2h-ivc/rzv2h-ivc-dev.c:152:12: warning: 'rzv2h_ivc_runtime_suspend' defined but not used [-Wunused-function]
     152 | static int rzv2h_ivc_runtime_suspend(struct device *dev)
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/media/platform/renesas/rzv2h-ivc/rzv2h-ivc-dev.c:116:12: warning: 'rzv2h_ivc_runtime_resume' defined but not used [-Wunused-function]
     116 | static int rzv2h_ivc_runtime_resume(struct device *dev)
         |            ^~~~~~~~~~~~~~~~~~~~~~~~


vim +/rzv2h_ivc_runtime_suspend +152 drivers/media/platform/renesas/rzv2h-ivc/rzv2h-ivc-dev.c

   115	
 > 116	static int rzv2h_ivc_runtime_resume(struct device *dev)
   117	{
   118		struct rzv2h_ivc *ivc = dev_get_drvdata(dev);
   119		int ret;
   120	
   121		ret = request_threaded_irq(ivc->irqnum, NULL, rzv2h_ivc_isr,
   122					   IRQF_ONESHOT, dev_driver_string(dev), dev);
   123		if (ret) {
   124			dev_err(dev, "failed to request irq\n");
   125			return ret;
   126		}
   127	
   128		ret = clk_bulk_prepare_enable(ARRAY_SIZE(ivc->clks), ivc->clks);
   129		if (ret) {
   130			dev_err(ivc->dev, "failed to enable clocks\n");
   131			goto err_free_irqnum;
   132		}
   133	
   134		ret = reset_control_bulk_deassert(ARRAY_SIZE(ivc->resets), ivc->resets);
   135		if (ret) {
   136			dev_err(ivc->dev, "failed to deassert resets\n");
   137			goto err_disable_clks;
   138		}
   139	
   140		rzv2h_ivc_global_config(ivc);
   141	
   142		return 0;
   143	
   144	err_disable_clks:
   145		clk_bulk_disable_unprepare(ARRAY_SIZE(ivc->clks), ivc->clks);
   146	err_free_irqnum:
   147		free_irq(ivc->irqnum, dev);
   148	
   149		return ret;
   150	}
   151	
 > 152	static int rzv2h_ivc_runtime_suspend(struct device *dev)
   153	{
   154		struct rzv2h_ivc *ivc = dev_get_drvdata(dev);
   155	
   156		reset_control_bulk_assert(ARRAY_SIZE(ivc->resets), ivc->resets);
   157		clk_bulk_disable_unprepare(ARRAY_SIZE(ivc->clks), ivc->clks);
   158		free_irq(ivc->irqnum, dev);
   159	
   160		return 0;
   161	}
   162	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux