[morimoto:sound/2021-10-05-v2 19/34] sound/soc/generic/audio-graph-card2.c:511:2: error: label at end of compound statement

From: kernel test robot
Date: Tue Oct 05 2021 - 11:25:03 EST


tree: https://github.com/morimoto/linux sound/2021-10-05-v2
head: 8401b11735355a55e0ebd90cba21469570e49a05
commit: 874abf6598c48fd249e0827e74eb5a8548fa6c32 [19/34] ASoC: add Audio Graph Card2 driver
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/morimoto/linux/commit/874abf6598c48fd249e0827e74eb5a8548fa6c32
git remote add morimoto https://github.com/morimoto/linux
git fetch --no-tags morimoto sound/2021-10-05-v2
git checkout 874abf6598c48fd249e0827e74eb5a8548fa6c32
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

sound/soc/generic/audio-graph-card2.c: In function 'graph_count':
>> sound/soc/generic/audio-graph-card2.c:511:2: error: label at end of compound statement
511 | default:
| ^~~~~~~


vim +511 sound/soc/generic/audio-graph-card2.c

491
492 static int graph_count(struct asoc_simple_priv *priv,
493 struct graph2_custom_hooks *hooks,
494 enum graph_type gtype,
495 struct device_node *lnk,
496 struct link_info *li)
497 {
498 struct device *dev = simple_priv_to_dev(priv);
499 GRAPH2_CUSTOM func = NULL;
500 int ret = -EINVAL;
501
502 if (li->link >= SNDRV_MAX_LINKS) {
503 dev_err(dev, "too many links\n");
504 return ret;
505 }
506
507 switch (gtype) {
508 case GRAPH_NORMAL:
509 func = graph_count_normal;
510 break;
> 511 default:
512 }
513
514 if (!func) {
515 dev_err(dev, "non supported gtype (%d)\n", gtype);
516 goto err;
517 }
518
519 ret = func(priv, lnk, li);
520 if (ret < 0)
521 goto err;
522
523 li->link++;
524 err:
525 return ret;
526 }
527

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip