From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============9188905213625191211==" MIME-Version: 1.0 From: kernel test robot Subject: sound/soc/qcom/lpass-platform.c:226 __lpass_get_id() error: uninitialized symbol 'id'. Date: Mon, 28 Mar 2022 18:53:44 +0800 Message-ID: <202203281821.GjdtJpZe-lkp@intel.com> List-Id: To: kbuild@lists.01.org --===============9188905213625191211== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable CC: kbuild-all(a)lists.01.org BCC: lkp(a)intel.com CC: linux-kernel(a)vger.kernel.org TO: Srinivasa Rao Mandadapu CC: Mark Brown CC: Venkata Prasad Potturu CC: Srinivas Kandagatla tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git = master head: ae085d7f9365de7da27ab5c0d16b12d51ea7fca9 commit: 16413d5c5a2ed81d8fece1c5fe0b85752ecdbdf2 ASoC: qcom: Add helper fun= ction to get dma control and lpaif handle date: 5 weeks ago :::::: branch date: 9 hours ago :::::: commit date: 5 weeks ago config: riscv-randconfig-m031-20220327 (https://download.01.org/0day-ci/arc= hive/20220328/202203281821.GjdtJpZe-lkp(a)intel.com/config) compiler: riscv32-linux-gcc (GCC) 11.2.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot Reported-by: Dan Carpenter smatch warnings: sound/soc/qcom/lpass-platform.c:226 __lpass_get_id() error: uninitialized s= ymbol 'id'. vim +/id +226 sound/soc/qcom/lpass-platform.c 16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24 202 = 16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24 203 static int __lpass_= get_id(const struct snd_pcm_substream *substream, 16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24 204 struct snd= _soc_component *component) 16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24 205 { 16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24 206 struct snd_soc_pcm= _runtime *soc_runtime =3D asoc_substream_to_rtd(substream); 16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24 207 struct snd_soc_dai= *cpu_dai =3D asoc_rtd_to_cpu(soc_runtime, 0); 16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24 208 struct lpass_data = *drvdata =3D snd_soc_component_get_drvdata(component); 16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24 209 struct snd_pcm_run= time *rt =3D substream->runtime; 16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24 210 struct lpass_pcm_d= ata *pcm_data =3D rt->private_data; 16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24 211 struct lpass_varia= nt *v =3D drvdata->variant; 16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24 212 int id; 16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24 213 = 16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24 214 switch (cpu_dai->d= river->id) { 16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24 215 case MI2S_PRIMARY = ... MI2S_QUINARY: 16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24 216 if (substream->st= ream =3D=3D SNDRV_PCM_STREAM_PLAYBACK) 16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24 217 id =3D pcm_data-= >dma_ch; 16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24 218 else 16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24 219 id =3D pcm_data-= >dma_ch - v->wrdma_channel_start; 16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24 220 break; 16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24 221 case LPASS_DP_RX: 16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24 222 id =3D pcm_data->= dma_ch; 16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24 223 break; 16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24 224 } 16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24 225 = 16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24 @226 return id; 16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24 227 } 16413d5c5a2ed8 Srinivasa Rao Mandadapu 2022-02-24 228 = -- = 0-DAY CI Kernel Test Service https://01.org/lkp --===============9188905213625191211==--