All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [omap-audio:peter/linux-next-wip 24/85] drivers/dma/ti/k3-udma.c:5125:10: warning: variable 'burst_size' set but not used
Date: Thu, 19 Nov 2020 03:30:33 +0800	[thread overview]
Message-ID: <202011190329.eFVTZf6f-lkp@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2020-11-18 19:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202011190329.eFVTZf6f-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.