From: kernel test robot <lkp@intel.com>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [morimoto:sound-cleanup-2026-03-27 97/106] sound/soc/soc-card.c:481 soc_card_check_tplg_fes() warn: inconsistent indenting
Date: Sat, 28 Mar 2026 00:31:22 +0800 [thread overview]
Message-ID: <202603280046.B4ExcVKR-lkp@intel.com> (raw)
Hi Kuninori,
FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
tree: https://github.com/morimoto/linux sound-cleanup-2026-03-27
head: b547ff73a13ed8ce92e8e208ccd27884077b160b
commit: 61c94a63000ef877101c0bb55224a0c13494eeab [97/106] component
config: hexagon-randconfig-r073-20260327 (https://download.01.org/0day-ci/archive/20260328/202603280046.B4ExcVKR-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 054e11d1a17e5ba88bb1a8ef32fad3346e80b186)
smatch: v0.5.0-9004-gb810ac53
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/202603280046.B4ExcVKR-lkp@intel.com/
smatch warnings:
sound/soc/soc-card.c:481 soc_card_check_tplg_fes() warn: inconsistent indenting
vim +481 sound/soc/soc-card.c
471
472 static void soc_card_check_tplg_fes(struct snd_soc_card *card)
473 {
474 struct snd_soc_component *component;
475 const struct snd_soc_component_driver *comp_drv;
476 struct snd_soc_dai_link *dai_link;
477 int i;
478
479 for_each_component(component) {
480 const struct snd_soc_component_driver *component_driver = snd_soc_component_to_driver(component);
> 481 struct device *component_dev = snd_soc_component_to_dev(component);
482
483 /* does this component override BEs ? */
484 if (!component_driver->ignore_machine)
485 continue;
486
487 /* for this machine ? */
488 if (!strcmp(component_driver->ignore_machine,
489 card->dev->driver->name))
490 goto match;
491 if (strcmp(component_driver->ignore_machine,
492 dev_name(card->dev)))
493 continue;
494 match:
495 /* machine matches, so override the rtd data */
496 for_each_card_prelinks(card, i, dai_link) {
497
498 /* ignore this FE */
499 if (dai_link->dynamic) {
500 dai_link->ignore = true;
501 continue;
502 }
503
504 dev_dbg(card->dev, "info: override BE DAI link %s\n",
505 card->dai_link[i].name);
506
507 /* override platform component */
508 if (!dai_link->platforms) {
509 dev_err(card->dev, "init platform error");
510 continue;
511 }
512
513 if (component_dev->of_node)
514 dai_link->platforms->of_node = component_dev->of_node;
515 else
516 dai_link->platforms->name = snd_soc_component_name(component);
517
518 /* convert non BE into BE */
519 dai_link->no_pcm = 1;
520
521 /*
522 * override any BE fixups
523 * see
524 * snd_soc_link_be_hw_params_fixup()
525 */
526 dai_link->be_hw_params_fixup = component_driver->be_hw_params_fixup;
527
528 /*
529 * most BE links don't set stream name, so set it to
530 * dai link name if it's NULL to help bind widgets.
531 */
532 if (!dai_link->stream_name)
533 dai_link->stream_name = dai_link->name;
534 }
535
536 /* Inform userspace we are using alternate topology */
537 if (component_driver->topology_name_prefix) {
538
539 /* topology shortname created? */
540 if (!card->topology_shortname_created) {
541 comp_drv = component_driver;
542
543 snprintf(card->topology_shortname, 32, "%s-%s",
544 comp_drv->topology_name_prefix,
545 card->name);
546 card->topology_shortname_created = true;
547 }
548
549 /* use topology shortname */
550 card->name = card->topology_shortname;
551 }
552 }
553 }
554
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-03-27 16:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202603280046.B4ExcVKR-lkp@intel.com \
--to=lkp@intel.com \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.