mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ravulapati Vishnu vardhan rao  <Vishnuvardhanrao.Ravulapati@amd.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Mark Brown <broonie@kernel.org>
Subject: sound/soc/amd/raven/acp3x-pcm-dma.c:305:23: warning: variable 'card' set but not used
Date: Fri, 5 Jun 2020 18:26:34 +0800	[thread overview]
Message-ID: <202006051829.QmwUPFoJ%lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   435faf5c218a47fd6258187f62d9bb1009717896
commit: 4a0434502191347ba8f99468f2fb2cdddc20d381 ASoC: amd: Removing unnecessary instance initialization
date:   8 days ago
config: i386-randconfig-r014-20200605 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce (this is a W=1 build):
        git checkout 4a0434502191347ba8f99468f2fb2cdddc20d381
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

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 >>, old ones prefixed by <<):

sound/soc/amd/raven/acp3x-pcm-dma.c: In function 'acp3x_dma_pointer':
>> sound/soc/amd/raven/acp3x-pcm-dma.c:305:23: warning: variable 'card' set but not used [-Wunused-but-set-variable]
305 |  struct snd_soc_card *card;
|                       ^~~~

vim +/card +305 sound/soc/amd/raven/acp3x-pcm-dma.c

0b87d6bcd6482b Vijendar Mukunda              2018-11-12  300  
f52368f36443b4 Kuninori Morimoto             2019-10-02  301  static snd_pcm_uframes_t acp3x_dma_pointer(struct snd_soc_component *component,
f52368f36443b4 Kuninori Morimoto             2019-10-02  302  					   struct snd_pcm_substream *substream)
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  303  {
703a6e22888be4 Ravulapati Vishnu vardhan rao 2019-12-28  304  	struct snd_soc_pcm_runtime *prtd;
703a6e22888be4 Ravulapati Vishnu vardhan rao 2019-12-28 @305  	struct snd_soc_card *card;
c9fe7db6e884d0 Ravulapati Vishnu vardhan rao 2019-12-28  306  	struct i2s_stream_instance *rtd;
c9fe7db6e884d0 Ravulapati Vishnu vardhan rao 2019-12-28  307  	u32 pos;
c9fe7db6e884d0 Ravulapati Vishnu vardhan rao 2019-12-28  308  	u32 buffersize;
c9fe7db6e884d0 Ravulapati Vishnu vardhan rao 2019-12-28  309  	u64 bytescount;
35a7086eaa057a Ravulapati Vishnu vardhan rao 2019-05-10  310  
703a6e22888be4 Ravulapati Vishnu vardhan rao 2019-12-28  311  	prtd = substream->private_data;
703a6e22888be4 Ravulapati Vishnu vardhan rao 2019-12-28  312  	card = prtd->card;
c9fe7db6e884d0 Ravulapati Vishnu vardhan rao 2019-12-28  313  	rtd = substream->runtime->private_data;
703a6e22888be4 Ravulapati Vishnu vardhan rao 2019-12-28  314  
35a7086eaa057a Ravulapati Vishnu vardhan rao 2019-05-10  315  	buffersize = frames_to_bytes(substream->runtime,
35a7086eaa057a Ravulapati Vishnu vardhan rao 2019-05-10  316  				     substream->runtime->buffer_size);
35a7086eaa057a Ravulapati Vishnu vardhan rao 2019-05-10  317  	bytescount = acp_get_byte_count(rtd, substream->stream);
35a7086eaa057a Ravulapati Vishnu vardhan rao 2019-05-10  318  	if (bytescount > rtd->bytescount)
35a7086eaa057a Ravulapati Vishnu vardhan rao 2019-05-10  319  		bytescount -= rtd->bytescount;
35a7086eaa057a Ravulapati Vishnu vardhan rao 2019-05-10  320  	pos = do_div(bytescount, buffersize);
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  321  	return bytes_to_frames(substream->runtime, pos);
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  322  }
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  323  

:::::: The code at line 305 was first introduced by commit
:::::: 703a6e22888be41531461ad99ff6c25cd54a5ddf ASoC: amd: Enabling I2S instance in DMA and DAI

:::::: TO: Ravulapati Vishnu vardhan rao <Vishnuvardhanrao.Ravulapati@amd.com>
:::::: CC: Mark Brown <broonie@kernel.org>

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

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

                 reply	other threads:[~2020-06-05 10:26 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=202006051829.QmwUPFoJ%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Vishnuvardhanrao.Ravulapati@amd.com \
    --cc=broonie@kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®