CC: [email protected] CC: [email protected] TO: Vijendar Mukunda <[email protected]> CC: Mark Brown <[email protected]>
Hi Vijendar, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 26291c54e111ff6ba87a164d85d4a4e134b7315c commit: 96792fdd77cd19fcf2368e7c19bb8b78557ae425 ASoC: amd: enable vangogh platform machine driver build date: 4 months ago :::::: branch date: 14 hours ago :::::: commit date: 4 months ago config: x86_64-randconfig-m001-20220131 (https://download.01.org/0day-ci/archive/20220131/[email protected]/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> smatch warnings: sound/soc/amd/vangogh/acp5x-mach.c:190 acp5x_cs35l41_hw_params() error: uninitialized symbol 'ret'. vim +/ret +190 sound/soc/amd/vangogh/acp5x-mach.c 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 157 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 158 static int acp5x_cs35l41_hw_params(struct snd_pcm_substream *substream, 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 159 struct snd_pcm_hw_params *params) 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 160 { 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 161 struct snd_soc_pcm_runtime *rtd = substream->private_data; 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 162 struct snd_soc_card *card = rtd->card; 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 163 struct snd_soc_dai *codec_dai; 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 164 int ret, i; 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 165 unsigned int num_codecs = rtd->num_codecs; 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 166 unsigned int bclk_val; 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 167 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 168 for (i = 0; i < num_codecs; i++) { 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 169 codec_dai = asoc_rtd_to_codec(rtd, i); 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 170 if ((strcmp(codec_dai->name, "spi-VLV1776:00") == 0) || 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 171 (strcmp(codec_dai->name, "spi-VLV1776:01") == 0)) { 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 172 switch (params_rate(params)) { 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 173 case 48000: 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 174 bclk_val = 1536000; 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 175 break; 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 176 default: 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 177 dev_err(card->dev, "Invalid Samplerate:0x%x\n", 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 178 params_rate(params)); 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 179 return -EINVAL; 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 180 } 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 181 ret = snd_soc_component_set_sysclk(codec_dai->component, 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 182 0, 0, bclk_val, SND_SOC_CLOCK_IN); 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 183 if (ret < 0) { 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 184 dev_err(card->dev, "failed to set sysclk for CS35l41 dai\n"); 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 185 return ret; 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 186 } 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 187 } 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 188 } 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 189 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 @190 return ret; 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 191 } 34a0094b9ff7b7 Vijendar Mukunda 2021-10-14 192 :::::: The code at line 190 was first introduced by commit :::::: 34a0094b9ff7b7544591a6841f9b61747033f292 ASoC: amd: add vangogh machine driver :::::: TO: Vijendar Mukunda <[email protected]> :::::: CC: Mark Brown <[email protected]> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected] _______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
