mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* sound/soc/amd/raven/acp3x-pcm-dma.c:305:23: warning: variable 'card' set but not used
@ 2020-06-05 10:26 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-06-05 10:26 UTC (permalink / raw)
  To: Ravulapati Vishnu vardhan rao; +Cc: kbuild-all, linux-kernel, Mark Brown

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

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

only message in thread, other threads:[~2020-06-05 10:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-05 10:26 sound/soc/amd/raven/acp3x-pcm-dma.c:305:23: warning: variable 'card' set but not used kernel test robot

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®