public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Ravulapati Vishnu vardhan rao  <Vishnuvardhanrao.Ravulapati@amd.com>
Cc: kbuild-all@lists.01.org,
	"moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER
	MANAGEM..."  <alsa-devel@alsa-project.org>,
	Maruthi Bayyavarapu <maruthi.bayyavarapu@amd.com>,
	Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>,
	open list <linux-kernel@vger.kernel.org>,
	Takashi Iwai <tiwai@suse.com>, YueHaibing <yuehaibing@huawei.com>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Akshu.Agrawal@amd.com, Sanju R Mehta <sanju.mehta@amd.com>,
	Ravulapati Vishnu vardhan rao 
	<Vishnuvardhanrao.Ravulapati@amd.com>,
	Mark Brown <broonie@kernel.org>,
	djkurtz@google.com, Vijendar Mukunda <Vijendar.Mukunda@amd.com>,
	Alex Deucher <alexander.deucher@amd.com>,
	Colin Ian King <colin.king@canonical.com>
Subject: Re: [alsa-devel] [RESEND PATCH v5 2/6] ASoC: amd: Refactoring of DAI from DMA driver
Date: Thu, 14 Nov 2019 00:36:52 +0800	[thread overview]
Message-ID: <201911140027.ytv7duZc%lkp@intel.com> (raw)
In-Reply-To: <1573629249-13272-3-git-send-email-Vishnuvardhanrao.Ravulapati@amd.com>

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

Hi Ravulapati,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on asoc/for-next]
[also build test WARNING on next-20191113]
[cannot apply to v5.4-rc7]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url:    https://github.com/0day-ci/linux/commits/Ravulapati-Vishnu-vardhan-rao/ASoC-amd-Create-multiple-I2S-platform-device-Endpoint/20191113-230604
base:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
config: x86_64-randconfig-h001-20191113 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-14) 7.4.0
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

   sound/soc/amd/raven/acp3x-pcm-dma.c: In function 'acp3x_dma_open':
>> sound/soc/amd/raven/acp3x-pcm-dma.c:268:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
     struct i2s_dev_data *adata = dev_get_drvdata(component->dev);
     ^~~~~~
   sound/soc/amd/raven/acp3x-pcm-dma.c: In function 'acp3x_dma_new':
   sound/soc/amd/raven/acp3x-pcm-dma.c:352:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
     struct device *parent = component->dev->parent;
     ^~~~~~
   sound/soc/amd/raven/acp3x-pcm-dma.c: In function 'acp3x_dma_close':
   sound/soc/amd/raven/acp3x-pcm-dma.c:377:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
     struct i2s_dev_data *adata = dev_get_drvdata(component->dev);
     ^~~~~~

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

0b87d6bcd6482b Vijendar Mukunda              2018-11-12  259  
f52368f36443b4 Kuninori Morimoto             2019-10-02  260  static int acp3x_dma_open(struct snd_soc_component *component,
f52368f36443b4 Kuninori Morimoto             2019-10-02  261  			  struct snd_pcm_substream *substream)
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  262  {
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  263  	int ret = 0;
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  264  	struct snd_pcm_runtime *runtime = substream->runtime;
74480eceed0f95 Ravulapati Vishnu vardhan rao 2019-11-13  265  	struct snd_soc_pcm_runtime *prtd = substream->private_data;
74480eceed0f95 Ravulapati Vishnu vardhan rao 2019-11-13  266  
74480eceed0f95 Ravulapati Vishnu vardhan rao 2019-11-13  267  	component = snd_soc_rtdcom_lookup(prtd, DRV_NAME);
0b87d6bcd6482b Vijendar Mukunda              2018-11-12 @268  	struct i2s_dev_data *adata = dev_get_drvdata(component->dev);
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  269  	struct i2s_stream_instance *i2s_data = kzalloc(sizeof(struct i2s_stream_instance),
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  270  						       GFP_KERNEL);
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  271  	if (!i2s_data)
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  272  		return -EINVAL;
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  273  
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  274  	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  275  		runtime->hw = acp3x_pcm_hardware_playback;
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  276  	else
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  277  		runtime->hw = acp3x_pcm_hardware_capture;
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  278  
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  279  	ret = snd_pcm_hw_constraint_integer(runtime,
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  280  					    SNDRV_PCM_HW_PARAM_PERIODS);
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  281  	if (ret < 0) {
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  282  		dev_err(component->dev, "set integer constraint failed\n");
46dce404265975 Colin Ian King                2018-11-14  283  		kfree(i2s_data);
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  284  		return ret;
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  285  	}
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  286  
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  287  	if (!adata->play_stream && !adata->capture_stream)
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  288  		rv_writel(1, adata->acp3x_base + mmACP_EXTERNAL_INTR_ENB);
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  289  
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  290  	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  291  		adata->play_stream = substream;
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  292  	else
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  293  		adata->capture_stream = substream;
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  294  
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  295  	i2s_data->acp3x_base = adata->acp3x_base;
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  296  	runtime->private_data = i2s_data;
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  297  	return 0;
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  298  }
0b87d6bcd6482b Vijendar Mukunda              2018-11-12  299  

:::::: The code at line 268 was first introduced by commit
:::::: 0b87d6bcd6482b4502d8fd21561380981dad501f ASoC: amd: add acp3x pcm driver dma ops

:::::: TO: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
:::::: CC: Mark Brown <broonie@kernel.org>

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation

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

  parent reply	other threads:[~2019-11-13 16:37 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1573629249-13272-1-git-send-email-Vishnuvardhanrao.Ravulapati@amd.com>
2019-11-13  7:14 ` [PATCH v5 1/6] ASoC: amd:Create multiple I2S platform device Endpoint Ravulapati Vishnu vardhan rao
2019-11-13 16:11   ` [alsa-devel] " Pierre-Louis Bossart
2019-11-13  7:14 ` [RESEND PATCH v5 2/6] ASoC: amd: Refactoring of DAI from DMA driver Ravulapati Vishnu vardhan rao
2019-11-13 16:22   ` [alsa-devel] " Pierre-Louis Bossart
2019-11-13 16:36   ` kbuild test robot [this message]
2019-11-13  7:14 ` [RESEND PATCH v5 3/6] ASoC: amd: Enabling I2S instance in DMA and DAI Ravulapati Vishnu vardhan rao
2019-11-13 16:29   ` [alsa-devel] " Pierre-Louis Bossart
2019-11-13  7:14 ` [RESEND PATCH v5 4/6] ASoC: amd: add ACP3x TDM mode support Ravulapati Vishnu vardhan rao
2019-11-13  7:14 ` [RESEND PATCH v5 5/6] ASoC: amd: handle ACP3x i2s-sp interrupt Ravulapati Vishnu vardhan rao
2019-11-13 16:31   ` [alsa-devel] " Pierre-Louis Bossart
2019-11-13  7:14 ` [RESEND PATCH v5 6/6] ASoC: amd: Added ACP3x system resume and runtime pm Ravulapati Vishnu vardhan rao
2019-11-13 16:39   ` [alsa-devel] " Pierre-Louis Bossart
2019-11-13 17:13   ` kbuild test robot

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=201911140027.ytv7duZc%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Akshu.Agrawal@amd.com \
    --cc=Vijendar.Mukunda@amd.com \
    --cc=Vishnuvardhanrao.Ravulapati@amd.com \
    --cc=alexander.deucher@amd.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=colin.king@canonical.com \
    --cc=djkurtz@google.com \
    --cc=kbuild-all@lists.01.org \
    --cc=kuninori.morimoto.gx@renesas.com \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maruthi.bayyavarapu@amd.com \
    --cc=sanju.mehta@amd.com \
    --cc=tiwai@suse.com \
    --cc=yuehaibing@huawei.com \
    /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