All of lore.kernel.org
 help / color / mirror / Atom feed
* [omap-audio:peter/linux-next-wip 24/85] drivers/dma/ti/k3-udma.c:5125:10: warning: variable 'burst_size' set but not used
@ 2020-11-18 19:30 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-11-18 19:30 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2674 bytes --]

tree:   https://github.com/omap-audio/linux-audio peter/linux-next-wip
head:   c02be942bf9f1f7fec284cf3b1266741e5964140
commit: 7e4a26181ab91aeb561a52a2ea28b62f1078a261 [24/85] dmaengine: ti: k3-udma: Add support for burst_size configuration for mem2mem
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/omap-audio/linux-audio/commit/7e4a26181ab91aeb561a52a2ea28b62f1078a261
        git remote add omap-audio https://github.com/omap-audio/linux-audio
        git fetch --no-tags omap-audio peter/linux-next-wip
        git checkout 7e4a26181ab91aeb561a52a2ea28b62f1078a261
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   drivers/dma/ti/k3-udma.c: In function 'udma_get_copy_align':
>> drivers/dma/ti/k3-udma.c:5125:10: warning: variable 'burst_size' set but not used [-Wunused-but-set-variable]
    5125 |  u8 tpl, burst_size;
         |          ^~~~~~~~~~

vim +/burst_size +5125 drivers/dma/ti/k3-udma.c

  5121	
  5122	static enum dmaengine_alignment udma_get_copy_align(struct udma_dev *ud)
  5123	{
  5124		const struct udma_match_data *match_data = ud->match_data;
> 5125		u8 tpl, burst_size;
  5126	
  5127		if (!match_data->enable_memcpy_support)
  5128			return DMAENGINE_ALIGN_8_BYTES;
  5129	
  5130		/* Get the highest TPL level the device supports for memcpy */
  5131		if (ud->bchan_cnt) {
  5132			tpl = udma_get_chan_tpl_index(&ud->bchan_tpl, 0);
  5133		} else if (ud->tchan_cnt) {
  5134			tpl = udma_get_chan_tpl_index(&ud->tchan_tpl, 0);
  5135		} else {
  5136			return DMAENGINE_ALIGN_8_BYTES;
  5137		}
  5138	
  5139		burst_size = match_data->burst_size[tpl];
  5140	
  5141		switch (match_data->burst_size[tpl]) {
  5142			case TI_SCI_RM_UDMAP_CHAN_BURST_SIZE_256_BYTES:
  5143				return DMAENGINE_ALIGN_256_BYTES;
  5144			case TI_SCI_RM_UDMAP_CHAN_BURST_SIZE_128_BYTES:
  5145				return DMAENGINE_ALIGN_128_BYTES;
  5146			case TI_SCI_RM_UDMAP_CHAN_BURST_SIZE_64_BYTES:
  5147			fallthrough;
  5148			default:
  5149				return DMAENGINE_ALIGN_64_BYTES;
  5150		}
  5151	}
  5152	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 75818 bytes --]

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

only message in thread, other threads:[~2020-11-18 19:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-18 19:30 [omap-audio:peter/linux-next-wip 24/85] drivers/dma/ti/k3-udma.c:5125:10: warning: variable 'burst_size' set 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.