Skip to contentSkip to conversation

drivers/dma/bcm2835-dma.c:878:12: warning: 'bcm2835_dma_suspend_late' defined but not used

PATCH kernel test robot 1 participant 1 message Jan 7, 2025

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
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/[email protected]/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/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

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

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