Hi Vijendar, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on asoc/for-next] [also build test WARNING on v5.13 next-20210701] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Vijendar-Mukunda/ASoC-add-dai_reoder-flag-to-reverse-the-stop-sequence/20210705-234319 base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next config: i386-randconfig-r031-20210705 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=1 build): # https://github.com/0day-ci/linux/commit/a132ec819f3d15c103f3afb5f3e8154355fafdfc git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Vijendar-Mukunda/ASoC-add-dai_reoder-flag-to-reverse-the-stop-sequence/20210705-234319 git checkout a132ec819f3d15c103f3afb5f3e8154355fafdfc # 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 All warnings (new ones prefixed by >>): sound/soc/soc-pcm.c: In function 'soc_pcm_trigger': sound/soc/soc-pcm.c:1019:3: error: expected expression before 'struct' 1019 | + struct snd_soc_card *card = rtd->card; | ^~~~~~ >> sound/soc/soc-pcm.c:1020:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 1020 | int ret = -EINVAL, _ret = 0; | ^~~ sound/soc/soc-pcm.c:1060:7: error: 'card' undeclared (first use in this function) 1060 | if (card->dai_reorder) { | ^~~~ sound/soc/soc-pcm.c:1060:7: note: each undeclared identifier is reported only once for each function it appears in sound/soc/soc-pcm.c:1018:30: warning: unused variable 'rtd' [-Wunused-variable] 1018 | struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); | ^~~ vim +1020 sound/soc/soc-pcm.c ddee627cf6bb60 Liam Girdwood 2011-06-09 1015 836367be289d5b Kuninori Morimoto 2020-06-04 1016 static int soc_pcm_trigger(struct snd_pcm_substream *substream, int cmd) ddee627cf6bb60 Liam Girdwood 2011-06-09 1017 { a132ec819f3d15 Vijendar Mukunda 2021-07-05 1018 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); a132ec819f3d15 Vijendar Mukunda 2021-07-05 1019 + struct snd_soc_card *card = rtd->card; 6374f493d93b22 Kuninori Morimoto 2020-12-01 @1020 int ret = -EINVAL, _ret = 0; 6374f493d93b22 Kuninori Morimoto 2020-12-01 1021 int rollback = 0; ddee627cf6bb60 Liam Girdwood 2011-06-09 1022 836367be289d5b Kuninori Morimoto 2020-06-04 1023 switch (cmd) { 836367be289d5b Kuninori Morimoto 2020-06-04 1024 case SNDRV_PCM_TRIGGER_START: 836367be289d5b Kuninori Morimoto 2020-06-04 1025 case SNDRV_PCM_TRIGGER_RESUME: 836367be289d5b Kuninori Morimoto 2020-06-04 1026 case SNDRV_PCM_TRIGGER_PAUSE_RELEASE: 6374f493d93b22 Kuninori Morimoto 2020-12-01 1027 ret = snd_soc_link_trigger(substream, cmd, 0); ddee627cf6bb60 Liam Girdwood 2011-06-09 1028 if (ret < 0) 6374f493d93b22 Kuninori Morimoto 2020-12-01 1029 goto start_err; ddee627cf6bb60 Liam Girdwood 2011-06-09 1030 6374f493d93b22 Kuninori Morimoto 2020-12-01 1031 ret = snd_soc_pcm_component_trigger(substream, cmd, 0); b8135864d4d33d Kuninori Morimoto 2017-10-11 1032 if (ret < 0) 6374f493d93b22 Kuninori Morimoto 2020-12-01 1033 goto start_err; 6374f493d93b22 Kuninori Morimoto 2020-12-01 1034 6374f493d93b22 Kuninori Morimoto 2020-12-01 1035 ret = snd_soc_pcm_dai_trigger(substream, cmd, 0); 6374f493d93b22 Kuninori Morimoto 2020-12-01 1036 start_err: 6374f493d93b22 Kuninori Morimoto 2020-12-01 1037 if (ret < 0) 6374f493d93b22 Kuninori Morimoto 2020-12-01 1038 rollback = 1; 6374f493d93b22 Kuninori Morimoto 2020-12-01 1039 } 4378f1fbe92405 Peter Ujfalusi 2019-09-27 1040 6374f493d93b22 Kuninori Morimoto 2020-12-01 1041 if (rollback) { 6374f493d93b22 Kuninori Morimoto 2020-12-01 1042 _ret = ret; 6374f493d93b22 Kuninori Morimoto 2020-12-01 1043 switch (cmd) { 6374f493d93b22 Kuninori Morimoto 2020-12-01 1044 case SNDRV_PCM_TRIGGER_START: 6374f493d93b22 Kuninori Morimoto 2020-12-01 1045 cmd = SNDRV_PCM_TRIGGER_STOP; 6374f493d93b22 Kuninori Morimoto 2020-12-01 1046 break; 6374f493d93b22 Kuninori Morimoto 2020-12-01 1047 case SNDRV_PCM_TRIGGER_RESUME: 6374f493d93b22 Kuninori Morimoto 2020-12-01 1048 cmd = SNDRV_PCM_TRIGGER_SUSPEND; 6374f493d93b22 Kuninori Morimoto 2020-12-01 1049 break; 6374f493d93b22 Kuninori Morimoto 2020-12-01 1050 case SNDRV_PCM_TRIGGER_PAUSE_RELEASE: 6374f493d93b22 Kuninori Morimoto 2020-12-01 1051 cmd = SNDRV_PCM_TRIGGER_PAUSE_PUSH; 836367be289d5b Kuninori Morimoto 2020-06-04 1052 break; 6374f493d93b22 Kuninori Morimoto 2020-12-01 1053 } 6374f493d93b22 Kuninori Morimoto 2020-12-01 1054 } 6374f493d93b22 Kuninori Morimoto 2020-12-01 1055 6374f493d93b22 Kuninori Morimoto 2020-12-01 1056 switch (cmd) { 836367be289d5b Kuninori Morimoto 2020-06-04 1057 case SNDRV_PCM_TRIGGER_STOP: 836367be289d5b Kuninori Morimoto 2020-06-04 1058 case SNDRV_PCM_TRIGGER_SUSPEND: 836367be289d5b Kuninori Morimoto 2020-06-04 1059 case SNDRV_PCM_TRIGGER_PAUSE_PUSH: a132ec819f3d15 Vijendar Mukunda 2021-07-05 1060 if (card->dai_reorder) { a132ec819f3d15 Vijendar Mukunda 2021-07-05 1061 ret = snd_soc_pcm_component_trigger(substream, cmd, rollback); a132ec819f3d15 Vijendar Mukunda 2021-07-05 1062 if (ret < 0) a132ec819f3d15 Vijendar Mukunda 2021-07-05 1063 break; a132ec819f3d15 Vijendar Mukunda 2021-07-05 1064 a132ec819f3d15 Vijendar Mukunda 2021-07-05 1065 ret = snd_soc_pcm_dai_trigger(substream, cmd, rollback); a132ec819f3d15 Vijendar Mukunda 2021-07-05 1066 if (ret < 0) a132ec819f3d15 Vijendar Mukunda 2021-07-05 1067 break; a132ec819f3d15 Vijendar Mukunda 2021-07-05 1068 } else { 6374f493d93b22 Kuninori Morimoto 2020-12-01 1069 ret = snd_soc_pcm_dai_trigger(substream, cmd, rollback); 4378f1fbe92405 Peter Ujfalusi 2019-09-27 1070 if (ret < 0) 836367be289d5b Kuninori Morimoto 2020-06-04 1071 break; 4378f1fbe92405 Peter Ujfalusi 2019-09-27 1072 6374f493d93b22 Kuninori Morimoto 2020-12-01 1073 ret = snd_soc_pcm_component_trigger(substream, cmd, rollback); 4378f1fbe92405 Peter Ujfalusi 2019-09-27 1074 if (ret < 0) 836367be289d5b Kuninori Morimoto 2020-06-04 1075 break; a132ec819f3d15 Vijendar Mukunda 2021-07-05 1076 } 6374f493d93b22 Kuninori Morimoto 2020-12-01 1077 ret = snd_soc_link_trigger(substream, cmd, rollback); 4378f1fbe92405 Peter Ujfalusi 2019-09-27 1078 break; 4378f1fbe92405 Peter Ujfalusi 2019-09-27 1079 } 4378f1fbe92405 Peter Ujfalusi 2019-09-27 1080 6374f493d93b22 Kuninori Morimoto 2020-12-01 1081 if (_ret) 6374f493d93b22 Kuninori Morimoto 2020-12-01 1082 ret = _ret; 6374f493d93b22 Kuninori Morimoto 2020-12-01 1083 4378f1fbe92405 Peter Ujfalusi 2019-09-27 1084 return ret; 4378f1fbe92405 Peter Ujfalusi 2019-09-27 1085 } 4378f1fbe92405 Peter Ujfalusi 2019-09-27 1086 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org