* [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
@ 2021-09-11 18:13 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-09-11 18:13 UTC (permalink / raw)
To: Kuninori Morimoto; +Cc: kbuild-all, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 2162 bytes --]
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@intel.com>
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@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 61693 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* [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
@ 2021-09-11 18:13 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-09-11 18:13 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2232 bytes --]
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@intel.com>
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(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 61693 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-11 18:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-11 18:13 [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 kernel test robot
2021-09-11 18:13 ` 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.