All of lore.kernel.org
 help / color / mirror / Atom feed
* [ti:ti-rt-linux-6.1.y-cicd 217/382] drivers/dma/ti/k3-udma.c:5551:12: warning: 'udma_pm_resume' defined but not used
@ 2023-09-14 13:34 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-09-14 13:34 UTC (permalink / raw)
  To: Vignesh Raghavendra; +Cc: oe-kbuild-all, vigneshr, nm, Georgi Vlaev

tree:   git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-6.1.y-cicd
head:   67baeccff6749ac4362307312cdf2f68175dabb7
commit: 5f0c27386ed3c8d9408d9c5a9fb79981e05199a7 [217/382] dmaengine: ti: k3-udma: Add system suspend/resume support
config: arm64-randconfig-002-20230914 (https://download.01.org/0day-ci/archive/20230914/202309142146.euQethmd-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230914/202309142146.euQethmd-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202309142146.euQethmd-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/dma/ti/k3-udma.c:5551:12: warning: 'udma_pm_resume' defined but not used [-Wunused-function]
    5551 | static int udma_pm_resume(struct device *dev)
         |            ^~~~~~~~~~~~~~
>> drivers/dma/ti/k3-udma.c:5529:12: warning: 'udma_pm_suspend' defined but not used [-Wunused-function]
    5529 | static int udma_pm_suspend(struct device *dev)
         |            ^~~~~~~~~~~~~~~


vim +/udma_pm_resume +5551 drivers/dma/ti/k3-udma.c

  5528	
> 5529	static int udma_pm_suspend(struct device *dev)
  5530	{
  5531		struct udma_dev *ud = dev_get_drvdata(dev);
  5532		struct dma_device *dma_dev = &ud->ddev;
  5533		struct dma_chan *chan;
  5534		struct udma_chan *uc;
  5535	
  5536		list_for_each_entry(chan, &dma_dev->channels, device_node) {
  5537			if (chan->client_count) {
  5538				uc = to_udma_chan(chan);
  5539				/* backup the channel configuration */
  5540				memcpy(&uc->backup_config, &uc->config,
  5541				       sizeof(struct udma_chan_config));
  5542				dev_dbg(dev, "Suspending channel %s\n",
  5543					dma_chan_name(chan));
  5544				ud->ddev.device_free_chan_resources(chan);
  5545			}
  5546		}
  5547	
  5548		return 0;
  5549	}
  5550	
> 5551	static int udma_pm_resume(struct device *dev)
  5552	{
  5553		struct udma_dev *ud = dev_get_drvdata(dev);
  5554		struct dma_device *dma_dev = &ud->ddev;
  5555		struct dma_chan *chan;
  5556		struct udma_chan *uc;
  5557		int ret;
  5558	
  5559		list_for_each_entry(chan, &dma_dev->channels, device_node) {
  5560			if (chan->client_count) {
  5561				uc = to_udma_chan(chan);
  5562				/* restore the channel configuration */
  5563				memcpy(&uc->config, &uc->backup_config,
  5564				       sizeof(struct udma_chan_config));
  5565				dev_dbg(dev, "Resuming channel %s\n",
  5566					dma_chan_name(chan));
  5567				ret = ud->ddev.device_alloc_chan_resources(chan);
  5568				if (ret)
  5569					return ret;
  5570			}
  5571		}
  5572	
  5573		return 0;
  5574	}
  5575	

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

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

only message in thread, other threads:[~2023-09-14 13:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-14 13:34 [ti:ti-rt-linux-6.1.y-cicd 217/382] drivers/dma/ti/k3-udma.c:5551:12: warning: 'udma_pm_resume' defined 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.