* [jsarha:no_wname_in_kcontrol_name 2/2] sound/soc/sof/topology.c:856:12: error: label at end of compound statement: expected statement
@ 2023-06-30 2:37 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-06-30 2:37 UTC (permalink / raw)
To: Jyri Sarha; +Cc: llvm, oe-kbuild-all
tree: https://github.com/jsarha/linux no_wname_in_kcontrol_name
head: 64b366f30bf75f5525ef9b88f0b9cf810cc160bc
commit: 64b366f30bf75f5525ef9b88f0b9cf810cc160bc [2/2] ASoC: SOF: topology: Add a token for dropping widget name in kcontrol name
config: x86_64-randconfig-x006-20230629 (https://download.01.org/0day-ci/archive/20230630/202306301027.MGaRoqpG-lkp@intel.com/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project.git 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce: (https://download.01.org/0day-ci/archive/20230630/202306301027.MGaRoqpG-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202306301027.MGaRoqpG-lkp@intel.com/
All errors (new ones prefixed by >>):
>> sound/soc/sof/topology.c:856:12: error: label at end of compound statement: expected statement
default:
^
;
1 error generated.
vim +856 sound/soc/sof/topology.c
824
825 static int sof_dapm_widget_init(struct snd_soc_component *scomp,
826 struct snd_soc_dapm_widget *w,
827 struct snd_soc_tplg_vendor_array *array,
828 int array_size)
829 {
830 while (array_size > 0) {
831 int asize, type, i;
832
833 asize = le32_to_cpu(array->size);
834
835 /* validate asize */
836 if (asize <= 0) {
837 dev_err(scomp->dev, "error: invalid array size 0x%x\n",
838 asize);
839 return -EINVAL;
840 }
841
842 /* make sure there is enough data before parsing */
843 array_size -= asize;
844 if (array_size < 0) {
845 dev_err(scomp->dev, "error: invalid array size 0x%x\n",
846 asize);
847 return -EINVAL;
848 }
849 type = le32_to_cpu(array->type);
850
851 for (i = 0; i < le32_to_cpu(array->num_elems); i++) {
852 switch (le32_to_cpu(array->value[i].token)) {
853 case SOF_TKN_COMP_NO_WNAME_IN_KCONTROL_NAME:
854 sof_w_no_wname_in_long_name(scomp, w, type, &array->value[i]);
855 break;
> 856 default:
857 }
858 }
859
860 /* next array */
861 array = (struct snd_soc_tplg_vendor_array *)((u8 *)array + asize);
862 }
863 return 0;
864 }
865
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-06-30 2:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-30 2:37 [jsarha:no_wname_in_kcontrol_name 2/2] sound/soc/sof/topology.c:856:12: error: label at end of compound statement: expected statement kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.