Hi Kuninori,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on asoc/for-next]
[also build test ERROR on sound/for-next v5.14 next-20210910]
[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/Kuninori-Morimoto/ASoC-Add-Rich-...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
config: i386-randconfig-r005-20210912 (attached as .config)
compiler: clang version 14.0.0 (
https://github.com/llvm/llvm-project
261cbe98c38f8c1ee1a482fe76511110e790f58a)
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://github.com/0day-ci/linux/commit/b5ce49ac5dc76b68460729e0ec976c7f7...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Kuninori-Morimoto/ASoC-Add-Rich-Graph-Card-support/20210910-092924
git checkout b5ce49ac5dc76b68460729e0ec976c7f7ad870cf
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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(a)intel.com>
All errors (new ones prefixed by >>):
> sound/soc/generic/rich-graph-card.c:511:10: error: label at end
of compound statement: expected statement
default:
^
;
1 error generated.
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