[chenxing:mstar_v6_5_reorder 428/700] drivers/dma/mstar/mstar-msc313-urdma.c:411:30: warning: unused variable 'urdma'

kernel test robot <[email protected]> Mon, 03 Aug 2026 11:35:04 +0800
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://github.com/linux-chenxing/linux.git mstar_v6_5_reorder
head:   1a5c60e65ea399670a5384b869c4958338af2799
commit: 7835e2083509e8c5bb48c0e7a459adbd8fc2d23a [428/700] dma: mstar: msc313 urdma: transfer handling implementation
config: nios2-allmodconfig (https://download.01.org/0day-ci/archive/20260803/[email protected]/config)
compiler: nios2-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260803/[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/mstar/mstar-msc313-urdma.c: In function 'msc313_urdma_terminate_all':
>> drivers/dma/mstar/mstar-msc313-urdma.c:411:30: warning: unused variable 'urdma' [-Wunused-variable]
     411 |         struct msc313_urdma *urdma = ch->urdma;
         |                              ^~~~~
   At top level:
   drivers/dma/mstar/mstar-msc313-urdma.c:676:12: warning: 'msc313_urdma_resume' defined but not used [-Wunused-function]
     676 | static int msc313_urdma_resume(struct device *dev)
         |            ^~~~~~~~~~~~~~~~~~~
   drivers/dma/mstar/mstar-msc313-urdma.c:667:12: warning: 'msc313_urdma_suspend' defined but not used [-Wunused-function]
     667 | static int msc313_urdma_suspend(struct device *dev)
         |            ^~~~~~~~~~~~~~~~~~~~
   drivers/dma/mstar/mstar-msc313-urdma.c:31:31: warning: 'ctrl_rx_op_mode' defined but not used [-Wunused-const-variable=]
      31 | static const struct reg_field ctrl_rx_op_mode   = REG_FIELD(REG_CTRL, 11, 11);
         |                               ^~~~~~~~~~~~~~~


vim +/urdma +411 drivers/dma/mstar/mstar-msc313-urdma.c

   407	
   408	static int msc313_urdma_terminate_all(struct dma_chan *chan)
   409	{
   410		struct msc313_urdma_chan *ch = to_chan(chan);
 > 411		struct msc313_urdma *urdma = ch->urdma;
   412	
   413		printk("%s:%d\n", __func__, __LINE__);
   414	
   415		/* End the running job if there is one */
   416		msc313_urdma_terminate_inflight(ch);
   417	
   418		/* make sure the tasklet runs */
   419		schedule();
   420	
   421		return 0;
   422	}
   423	

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