[morimoto-linux:sound/2021-09-10-v1 21/36] sound/soc/generic/rich-graph-card.c:511:2: error: label at end of compound statement
From: kernel test robot
Date: Sat Sep 11 2021 - 14:14:28 EST
tree: https://github.com/morimoto/linux sound/2021-09-10-v1
head: ef65e8d9cd290c52e9db7b341d5f9878bc3ca021
commit: da849e8bdf0863f2f3e2bb25428b6293639cfacd [21/36] ASoC: add Rich Graph Card driver
config: x86_64-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/da849e8bdf0863f2f3e2bb25428b6293639cfacd
git remote add morimoto-linux https://github.com/morimoto/linux
git fetch --no-tags morimoto-linux sound/2021-09-10-v1
git checkout da849e8bdf0863f2f3e2bb25428b6293639cfacd
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 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/rich-graph-card.c: In function 'graph_count':
>> sound/soc/generic/rich-graph-card.c:511:2: error: label at end of compound statement
511 | default:
| ^~~~~~~
vim +511 sound/soc/generic/rich-graph-card.c
491
492 static int graph_count(struct asoc_simple_priv *priv,
493 struct graph_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 GRAPH_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