Content-Type: multipart/mixed; boundary="===============0863867523029598649==" MIME-Version: 1.0 From: kbuild test robot To: kbuild-all@lists.01.org Subject: Re: [alsa-devel] [PATCH RFC v3 4/4] ASoC: return error if the function is not support multi cpu yet. Date: Sun, 19 Jan 2020 04:44:23 +0800 Message-ID: <202001190403.8Zy4jkmZ%lkp@intel.com> In-Reply-To: <20200116202620.7401-5-yung-chuan.liao@linux.intel.com> List-Id: --===============0863867523029598649== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Bard, [FYI, it's a private test report for your RFC patch.] [auto build test WARNING on asoc/for-next] [also build test WARNING on next-20200117] [cannot apply to sound/for-next v5.5-rc6] [if your patch is applied to the wrong git tree, please drop us a note to h= elp 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/37406= 982] url: https://github.com/0day-ci/linux/commits/Bard-liao/ASoC-Add-Multi-C= PU-DAI-support/20200118-060035 base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git f= or-next reproduce: # apt-get install sparse # sparse version: v0.6.1-131-g22978b6b-dirty make ARCH=3Dx86_64 allmodconfig make C=3D1 CF=3D'-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) >> sound/soc/soc-generic-dmaengine-pcm.c:201:24: sparse: sparse: incorrect = type in return expression (different base types) >> sound/soc/soc-generic-dmaengine-pcm.c:201:24: sparse: expected struct= dma_chan * >> sound/soc/soc-generic-dmaengine-pcm.c:201:24: sparse: got int vim +201 sound/soc/soc-generic-dmaengine-pcm.c 188 = 189 static struct dma_chan *dmaengine_pcm_compat_request_channel( 190 struct snd_soc_component *component, 191 struct snd_soc_pcm_runtime *rtd, 192 struct snd_pcm_substream *substream) 193 { 194 struct dmaengine_pcm *pcm =3D soc_component_to_pcm(component); 195 struct snd_dmaengine_dai_dma_data *dma_data; 196 dma_filter_fn fn =3D NULL; 197 = 198 if (rtd->num_cpus > 1) { 199 dev_err(rtd->dev, 200 "%s doesn't support Multi CPU yet\n", __func__); > 201 return -EINVAL; 202 } 203 = 204 dma_data =3D snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); 205 = 206 if ((pcm->flags & SND_DMAENGINE_PCM_FLAG_HALF_DUPLEX) && pcm->chan[= 0]) 207 return pcm->chan[0]; 208 = 209 if (pcm->config && pcm->config->compat_request_channel) 210 return pcm->config->compat_request_channel(rtd, substream); 211 = 212 if (pcm->config) 213 fn =3D pcm->config->compat_filter_fn; 214 = 215 return snd_dmaengine_pcm_request_channel(fn, dma_data->filter_data); 216 } 217 = --- 0-DAY kernel test infrastructure Open Source Technology Cen= ter https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corpor= ation --===============0863867523029598649==--