From: sashiko-bot@kernel.org
To: "Kuninori Morimoto" <kuninori.morimoto.gx@renesas.com>
Cc: linux-sound@vger.kernel.org
Subject: Re: [PATCH 02/20] ASoC: soc-component: rename snd_soc_component_{init/exit}_regmap() to snd_soc_component_regmap_{init/exit}()
Date: Tue, 10 Nov 2026 05:35:29 +0000 [thread overview]
Message-ID: <sashiko-outbox-206311@kernel.org> (raw)
In-Reply-To: <875wy5ntt2.wl-kuninori.morimoto.gx@renesas.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] ASoC: soc-component: build failure in
snd_soc_component_regmap_exit() when !CONFIG_REGMAP
--
commit b2a7793f33b0c23793a100c7c2aba1692324766a
Author: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
ASoC: soc-component: rename snd_soc_component_{init/exit}_regmap() to snd_soc_component_regmap_{init/exit}()
This commit renames snd_soc_component_{init,exit}_regmap() to
snd_soc_component_regmap_{init,exit}(), provides compatibility macros for
the old names, and removes the #ifdef CONFIG_REGMAP guards around them.
> diff --git a/sound/soc/soc-component.c b/sound/soc/soc-component.c
> index a6e280c798f3d..6dad994009bdb 100644
> --- a/sound/soc/soc-component.c
> +++ b/sound/soc/soc-component.c
> @@ -432,10 +432,8 @@ void snd_soc_component_regmap_async_complete(struct snd_soc_component *component
> }
> EXPORT_SYMBOL_GPL(snd_soc_component_regmap_async_complete);
>
> -#ifdef CONFIG_REGMAP
> -
> /**
> - * snd_soc_component_init_regmap() - Initialize regmap instance for the
> + * snd_soc_component_regmap_init() - Initialize regmap instance for the
> * component
> * @component: The component for which to initialize the regmap instance
> * @regmap: The regmap instance that should be used by the component
> @@ -445,15 +443,15 @@ EXPORT_SYMBOL_GPL(snd_soc_component_regmap_async_complete);
> * yet ready when the component is registered. The function must also be called
> * before the first IO attempt of the component.
> */
> -void snd_soc_component_init_regmap(struct snd_soc_component *component,
> +void snd_soc_component_regmap_init(struct snd_soc_component *component,
> struct regmap *regmap)
> {
> component->regmap = regmap;
> }
> -EXPORT_SYMBOL_GPL(snd_soc_component_init_regmap);
> +EXPORT_SYMBOL_GPL(snd_soc_component_regmap_init);
>
> /**
> - * snd_soc_component_exit_regmap() - De-initialize regmap instance for the
> + * snd_soc_component_regmap_exit() - De-initialize regmap instance for the
> * component
> * @component: The component for which to de-initialize the regmap instance
> *
> @@ -463,14 +461,12 @@ EXPORT_SYMBOL_GPL(snd_soc_component_init_regmap);
> * This function should only be used if snd_soc_component_init_regmap() was used
> * to initialize the regmap instance.
> */
> -void snd_soc_component_exit_regmap(struct snd_soc_component *component)
> +void snd_soc_component_regmap_exit(struct snd_soc_component *component)
> {
> regmap_exit(component->regmap);
> component->regmap = NULL;
> }
> -EXPORT_SYMBOL_GPL(snd_soc_component_exit_regmap);
> -
> -#endif
> +EXPORT_SYMBOL_GPL(snd_soc_component_regmap_exit);
[Severity: Medium]
Does removing the #ifdef CONFIG_REGMAP guard around
snd_soc_component_regmap_exit() break builds when CONFIG_SND_SOC is
enabled and CONFIG_REGMAP is disabled?
In sound/soc/Kconfig, SND_SOC only selects REGMAP_I2C if I2C and
REGMAP_SPI if SPI_MASTER, so CONFIG_REGMAP can remain unset. Unlike
regmap_get_val_bytes(), regcache_sync(), and regmap_async_complete(),
regmap_exit() is only declared inside the #ifdef CONFIG_REGMAP block in
include/linux/regmap.h and has no stub when CONFIG_REGMAP is disabled,
causing an implicit function declaration error here.
--
Sashiko AI review · https://sashiko.dev/#/patchset/878q31nttj.wl-kuninori.morimoto.gx@renesas.com?part=2
next prev parent reply other threads:[~2026-11-10 5:35 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-10 5:23 [PATCH 00/20] ASoC: add new Component functions Kuninori Morimoto
2026-11-10 5:23 ` [PATCH 01/20] ASoC: soc-generic-dmaengine-pcm: move devm_snd_dmaengine_pcm_register() Kuninori Morimoto
2026-11-11 15:43 ` Alvin Šipraga
2026-11-10 5:23 ` [PATCH 02/20] ASoC: soc-component: rename snd_soc_component_{init/exit}_regmap() to snd_soc_component_regmap_{init/exit}() Kuninori Morimoto
2026-11-10 5:35 ` sashiko-bot [this message]
2026-11-10 5:23 ` [PATCH 03/20] ASoC: soc-component: move snd_soc_register_[un]component() to soc-component.c Kuninori Morimoto
2026-11-10 5:30 ` sashiko-bot
2026-11-11 5:05 ` Kuninori Morimoto
2026-11-11 15:43 ` Alvin Šipraga
2026-11-10 5:23 ` [PATCH 04/20] ASoC: soc-component: move devm_snd_soc_component_register() Kuninori Morimoto
2026-11-11 15:44 ` Alvin Šipraga
2026-11-10 5:23 ` [PATCH 05/20] ASoC: soc-component: move snd_soc_of_xlate_dai_name() to soc-component.c Kuninori Morimoto
2026-11-11 15:44 ` Alvin Šipraga
2026-11-10 5:23 ` [PATCH 06/20] ASoC: soc-component: makes regmap function to inline macro Kuninori Morimoto
2026-11-10 5:38 ` sashiko-bot
2026-11-11 15:45 ` Alvin Šipraga
2026-11-10 5:24 ` [PATCH 07/20] ASoC: soc-component: add snd_soc_component_name_prefix() Kuninori Morimoto
2026-11-11 15:45 ` Alvin Šipraga
2026-11-10 5:24 ` [PATCH 08/20] ASoC: soc-component: add snd_soc_component_to_dev() Kuninori Morimoto
2026-11-11 15:45 ` Alvin Šipraga
2026-11-10 5:24 ` [PATCH 09/20] ASoC: soc-component: add snd_soc_component_to_driver() Kuninori Morimoto
2026-11-11 15:45 ` Alvin Šipraga
2026-11-10 5:24 ` [PATCH 10/20] ASoC: soc-component: add snd_soc_component_to_card() Kuninori Morimoto
2026-11-11 15:46 ` Alvin Šipraga
2026-11-10 5:24 ` [PATCH 11/20] ASoC: soc-component: add snd_soc_component_to_debugfs_root() Kuninori Morimoto
2026-11-11 15:46 ` Alvin Šipraga
2026-11-10 5:24 ` [PATCH 12/20] ASoC: soc-component: add snd_soc_component_to_regmap() Kuninori Morimoto
2026-11-10 5:42 ` sashiko-bot
2026-11-11 15:46 ` Alvin Šipraga
2026-11-10 5:24 ` [PATCH 13/20] ASoC: soc-component: add snd_soc_component_regcache_mark_dirty() Kuninori Morimoto
2026-11-11 15:46 ` Alvin Šipraga
2026-11-10 5:24 ` [PATCH 14/20] ASoC: soc-component: add snd_soc_component_regcache_cache_only() Kuninori Morimoto
2026-11-11 15:47 ` Alvin Šipraga
2026-11-10 5:24 ` [PATCH 15/20] ASoC: soc-component: add snd_soc_component_regcache_cache_bypass() Kuninori Morimoto
2026-11-11 15:47 ` Alvin Šipraga
2026-11-10 5:24 ` [PATCH 16/20] ASoC: soc-component: add snd_soc_component_regmap_multi_reg_write_bypassed() Kuninori Morimoto
2026-11-10 5:47 ` sashiko-bot
2026-11-10 5:24 ` [PATCH 17/20] ASoC: soc-component: add snd_soc_component_num_dai() Kuninori Morimoto
2026-11-11 15:47 ` Alvin Šipraga
2026-11-10 5:25 ` [PATCH 18/20] ASoC: soc-component: add snd_soc_component_connect_dai() Kuninori Morimoto
2026-11-11 15:48 ` Alvin Šipraga
2026-11-10 5:25 ` [PATCH 19/20] ASoC: soc-component: add snd_soc_component_active_update() Kuninori Morimoto
2026-11-11 15:48 ` Alvin Šipraga
2026-11-10 5:25 ` [PATCH 20/20] ASoC: soc-component: add snd_soc_component_device_link_{add/del}() Kuninori Morimoto
2026-11-11 15:48 ` Alvin Šipraga
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=sashiko-outbox-206311@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=linux-sound@vger.kernel.org \
--cc=sashiko-reviews@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox