All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 4870/6658] drivers/dma/bcm2835-dma.c:878:12: warning: 'bcm2835_dma_suspend_late' defined but not used
@ 2025-01-07  7:39 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-01-07  7:39 UTC (permalink / raw)
  To: Stefan Wahren; +Cc: oe-kbuild-all, Vinod Koul

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   4e16367cfe0ce395f29d0482b78970cce8e1db73
commit: 9602a843cb3a16df8930eb9b046aa7aeb769521b [4870/6658] dmaengine: bcm2835-dma: Prevent suspend if DMA channel is busy
config: arm-randconfig-004-20250107 (https://download.01.org/0day-ci/archive/20250107/202501071533.yrFb156H-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250107/202501071533.yrFb156H-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/202501071533.yrFb156H-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/dma/bcm2835-dma.c:878:12: warning: 'bcm2835_dma_suspend_late' defined but not used [-Wunused-function]
     878 | static int bcm2835_dma_suspend_late(struct device *dev)
         |            ^~~~~~~~~~~~~~~~~~~~~~~~


vim +/bcm2835_dma_suspend_late +878 drivers/dma/bcm2835-dma.c

   877	
 > 878	static int bcm2835_dma_suspend_late(struct device *dev)
   879	{
   880		struct bcm2835_dmadev *od = dev_get_drvdata(dev);
   881		struct bcm2835_chan *c, *next;
   882	
   883		list_for_each_entry_safe(c, next, &od->ddev.channels,
   884					 vc.chan.device_node) {
   885			void __iomem *chan_base = c->chan_base;
   886	
   887			/* Check if DMA channel is busy */
   888			if (readl(chan_base + BCM2835_DMA_ADDR))
   889				return -EBUSY;
   890		}
   891	
   892		return 0;
   893	}
   894	

-- 
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:[~2025-01-07  7:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-07  7:39 [linux-next:master 4870/6658] drivers/dma/bcm2835-dma.c:878:12: warning: 'bcm2835_dma_suspend_late' 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.