* [PATCH v2] ASoC: sun50i-dmic: avoid unused variable warning for sun50i_dmic_of_match
@ 2022-10-23 7:44 ` Ban Tao
0 siblings, 0 replies; 9+ messages in thread
From: Ban Tao @ 2022-10-23 7:44 UTC (permalink / raw)
To: fengzheng923, lgirdwood, broonie, perex, tiwai, wens,
jernej.skrabec, samuel
Cc: alsa-devel, linux-sunxi, linux-arm-kernel, linux-kernel
In configurations with CONFIG_OF=n, we get a harmless build warning:
sound/soc/sunxi/sun50i-dmic.c:268:34: warning: unused variable
'sun50i_dmic_of_match' [-Wunused-const-variable]
Signed-off-by: Ban Tao <fengzheng923@gmail.com>
Reported-by: kernel test robot <lkp@intel.com>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
---
v1->v2:Add "Acked-by" tag.
---
sound/soc/sunxi/sun50i-dmic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/sunxi/sun50i-dmic.c b/sound/soc/sunxi/sun50i-dmic.c
index 86cff5a..62509cb 100644
--- a/sound/soc/sunxi/sun50i-dmic.c
+++ b/sound/soc/sunxi/sun50i-dmic.c
@@ -391,7 +391,7 @@ static const struct dev_pm_ops sun50i_dmic_pm = {
static struct platform_driver sun50i_dmic_driver = {
.driver = {
.name = "sun50i-dmic",
- .of_match_table = of_match_ptr(sun50i_dmic_of_match),
+ .of_match_table = sun50i_dmic_of_match,
.pm = &sun50i_dmic_pm,
},
.probe = sun50i_dmic_probe,
--
2.7.4
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH v2] ASoC: sun50i-dmic: avoid unused variable warning for sun50i_dmic_of_match
@ 2022-10-23 7:44 ` Ban Tao
0 siblings, 0 replies; 9+ messages in thread
From: Ban Tao @ 2022-10-23 7:44 UTC (permalink / raw)
To: fengzheng923, lgirdwood, broonie, perex, tiwai, wens,
jernej.skrabec, samuel
Cc: alsa-devel, linux-arm-kernel, linux-sunxi, linux-kernel
In configurations with CONFIG_OF=n, we get a harmless build warning:
sound/soc/sunxi/sun50i-dmic.c:268:34: warning: unused variable
'sun50i_dmic_of_match' [-Wunused-const-variable]
Signed-off-by: Ban Tao <fengzheng923@gmail.com>
Reported-by: kernel test robot <lkp@intel.com>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
---
v1->v2:Add "Acked-by" tag.
---
sound/soc/sunxi/sun50i-dmic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/sunxi/sun50i-dmic.c b/sound/soc/sunxi/sun50i-dmic.c
index 86cff5a..62509cb 100644
--- a/sound/soc/sunxi/sun50i-dmic.c
+++ b/sound/soc/sunxi/sun50i-dmic.c
@@ -391,7 +391,7 @@ static const struct dev_pm_ops sun50i_dmic_pm = {
static struct platform_driver sun50i_dmic_driver = {
.driver = {
.name = "sun50i-dmic",
- .of_match_table = of_match_ptr(sun50i_dmic_of_match),
+ .of_match_table = sun50i_dmic_of_match,
.pm = &sun50i_dmic_pm,
},
.probe = sun50i_dmic_probe,
--
2.7.4
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH v2] ASoC: sun50i-dmic: avoid unused variable warning for sun50i_dmic_of_match
@ 2022-10-23 7:44 ` Ban Tao
0 siblings, 0 replies; 9+ messages in thread
From: Ban Tao @ 2022-10-23 7:44 UTC (permalink / raw)
To: fengzheng923, lgirdwood, broonie, perex, tiwai, wens,
jernej.skrabec, samuel
Cc: alsa-devel, linux-arm-kernel, linux-sunxi, linux-kernel
In configurations with CONFIG_OF=n, we get a harmless build warning:
sound/soc/sunxi/sun50i-dmic.c:268:34: warning: unused variable
'sun50i_dmic_of_match' [-Wunused-const-variable]
Signed-off-by: Ban Tao <fengzheng923@gmail.com>
Reported-by: kernel test robot <lkp@intel.com>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
---
v1->v2:Add "Acked-by" tag.
---
sound/soc/sunxi/sun50i-dmic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/sunxi/sun50i-dmic.c b/sound/soc/sunxi/sun50i-dmic.c
index 86cff5a..62509cb 100644
--- a/sound/soc/sunxi/sun50i-dmic.c
+++ b/sound/soc/sunxi/sun50i-dmic.c
@@ -391,7 +391,7 @@ static const struct dev_pm_ops sun50i_dmic_pm = {
static struct platform_driver sun50i_dmic_driver = {
.driver = {
.name = "sun50i-dmic",
- .of_match_table = of_match_ptr(sun50i_dmic_of_match),
+ .of_match_table = sun50i_dmic_of_match,
.pm = &sun50i_dmic_pm,
},
.probe = sun50i_dmic_probe,
--
2.7.4
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH v2] ASoC: sun50i-dmic: avoid unused variable warning for sun50i_dmic_of_match
2022-10-23 7:44 ` Ban Tao
(?)
@ 2022-10-24 14:01 ` Mark Brown
-1 siblings, 0 replies; 9+ messages in thread
From: Mark Brown @ 2022-10-24 14:01 UTC (permalink / raw)
To: samuel, lgirdwood, Ban Tao, perex, jernej.skrabec, tiwai, wens
Cc: alsa-devel, linux-sunxi, linux-arm-kernel, linux-kernel
On Sun, 23 Oct 2022 00:44:45 -0700, Ban Tao wrote:
> In configurations with CONFIG_OF=n, we get a harmless build warning:
>
> sound/soc/sunxi/sun50i-dmic.c:268:34: warning: unused variable
> 'sun50i_dmic_of_match' [-Wunused-const-variable]
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: sun50i-dmic: avoid unused variable warning for sun50i_dmic_of_match
commit: 2cfcc1085d3b7b7c893be41034853d4c63a41092
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2] ASoC: sun50i-dmic: avoid unused variable warning for sun50i_dmic_of_match
@ 2022-10-24 14:01 ` Mark Brown
0 siblings, 0 replies; 9+ messages in thread
From: Mark Brown @ 2022-10-24 14:01 UTC (permalink / raw)
To: samuel, lgirdwood, Ban Tao, perex, jernej.skrabec, tiwai, wens
Cc: alsa-devel, linux-arm-kernel, linux-sunxi, linux-kernel
On Sun, 23 Oct 2022 00:44:45 -0700, Ban Tao wrote:
> In configurations with CONFIG_OF=n, we get a harmless build warning:
>
> sound/soc/sunxi/sun50i-dmic.c:268:34: warning: unused variable
> 'sun50i_dmic_of_match' [-Wunused-const-variable]
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: sun50i-dmic: avoid unused variable warning for sun50i_dmic_of_match
commit: 2cfcc1085d3b7b7c893be41034853d4c63a41092
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2] ASoC: sun50i-dmic: avoid unused variable warning for sun50i_dmic_of_match
@ 2022-10-24 14:01 ` Mark Brown
0 siblings, 0 replies; 9+ messages in thread
From: Mark Brown @ 2022-10-24 14:01 UTC (permalink / raw)
To: samuel, lgirdwood, Ban Tao, perex, jernej.skrabec, tiwai, wens
Cc: alsa-devel, linux-arm-kernel, linux-sunxi, linux-kernel
On Sun, 23 Oct 2022 00:44:45 -0700, Ban Tao wrote:
> In configurations with CONFIG_OF=n, we get a harmless build warning:
>
> sound/soc/sunxi/sun50i-dmic.c:268:34: warning: unused variable
> 'sun50i_dmic_of_match' [-Wunused-const-variable]
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: sun50i-dmic: avoid unused variable warning for sun50i_dmic_of_match
commit: 2cfcc1085d3b7b7c893be41034853d4c63a41092
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2] ASoC: sun50i-dmic: avoid unused variable warning for sun50i_dmic_of_match
2022-10-23 7:44 ` Ban Tao
@ 2022-10-26 14:31 ` Chao Song
-1 siblings, 0 replies; 9+ messages in thread
From: Chao Song @ 2022-10-26 14:31 UTC (permalink / raw)
To: Ban Tao, lgirdwood, broonie, perex, tiwai, wens, jernej.skrabec,
samuel
Cc: alsa-devel, linux-sunxi, linux-arm-kernel, linux-kernel
On 10/23/2022 3:44 PM, Ban Tao wrote:
> In configurations with CONFIG_OF=n, we get a harmless build warning:
>
> sound/soc/sunxi/sun50i-dmic.c:268:34: warning: unused variable
> 'sun50i_dmic_of_match' [-Wunused-const-variable]
>
> Signed-off-by: Ban Tao <fengzheng923@gmail.com>
> Reported-by: kernel test robot <lkp@intel.com>
> Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
> ---
> v1->v2:Add "Acked-by" tag.
> ---
> sound/soc/sunxi/sun50i-dmic.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/soc/sunxi/sun50i-dmic.c b/sound/soc/sunxi/sun50i-dmic.c
> index 86cff5a..62509cb 100644
> --- a/sound/soc/sunxi/sun50i-dmic.c
> +++ b/sound/soc/sunxi/sun50i-dmic.c
> @@ -391,7 +391,7 @@ static const struct dev_pm_ops sun50i_dmic_pm = {
> static struct platform_driver sun50i_dmic_driver = {
> .driver = {
> .name = "sun50i-dmic",
> - .of_match_table = of_match_ptr(sun50i_dmic_of_match),
> + .of_match_table = sun50i_dmic_of_match,
I don't think this is the right direction (remove the of_match_ptr) to
fix the issue.
of_match_ptr(of_table) returns of_table if CONFIG_OF=y, and returns NULL
if CONFIG_OF=n.
So guard the definition of sun50i_dmic_of_match with `#ifdef CONFIG_OF`
should be better.
Many other drivers do it this way.
> .pm = &sun50i_dmic_pm,
> },
> .probe = sun50i_dmic_probe,
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2] ASoC: sun50i-dmic: avoid unused variable warning for sun50i_dmic_of_match
@ 2022-10-26 14:31 ` Chao Song
0 siblings, 0 replies; 9+ messages in thread
From: Chao Song @ 2022-10-26 14:31 UTC (permalink / raw)
To: Ban Tao, lgirdwood, broonie, perex, tiwai, wens, jernej.skrabec,
samuel
Cc: alsa-devel, linux-sunxi, linux-arm-kernel, linux-kernel
On 10/23/2022 3:44 PM, Ban Tao wrote:
> In configurations with CONFIG_OF=n, we get a harmless build warning:
>
> sound/soc/sunxi/sun50i-dmic.c:268:34: warning: unused variable
> 'sun50i_dmic_of_match' [-Wunused-const-variable]
>
> Signed-off-by: Ban Tao <fengzheng923@gmail.com>
> Reported-by: kernel test robot <lkp@intel.com>
> Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
> ---
> v1->v2:Add "Acked-by" tag.
> ---
> sound/soc/sunxi/sun50i-dmic.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/soc/sunxi/sun50i-dmic.c b/sound/soc/sunxi/sun50i-dmic.c
> index 86cff5a..62509cb 100644
> --- a/sound/soc/sunxi/sun50i-dmic.c
> +++ b/sound/soc/sunxi/sun50i-dmic.c
> @@ -391,7 +391,7 @@ static const struct dev_pm_ops sun50i_dmic_pm = {
> static struct platform_driver sun50i_dmic_driver = {
> .driver = {
> .name = "sun50i-dmic",
> - .of_match_table = of_match_ptr(sun50i_dmic_of_match),
> + .of_match_table = sun50i_dmic_of_match,
I don't think this is the right direction (remove the of_match_ptr) to
fix the issue.
of_match_ptr(of_table) returns of_table if CONFIG_OF=y, and returns NULL
if CONFIG_OF=n.
So guard the definition of sun50i_dmic_of_match with `#ifdef CONFIG_OF`
should be better.
Many other drivers do it this way.
> .pm = &sun50i_dmic_pm,
> },
> .probe = sun50i_dmic_probe,
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2] ASoC: sun50i-dmic: avoid unused variable warning for sun50i_dmic_of_match
2022-10-26 14:31 ` Chao Song
(?)
@ 2022-10-29 2:44 ` 班涛
-1 siblings, 0 replies; 9+ messages in thread
From: 班涛 @ 2022-10-29 2:44 UTC (permalink / raw)
To: Chao Song
Cc: alsa-devel, samuel, linux-kernel, tiwai, jernej.skrabec,
lgirdwood, wens, broonie, linux-sunxi, linux-arm-kernel
Hi, Song Chao:
Chao Song <chao.song@linux.intel.com> 于2022年10月26日周三 22:31写道:
>
> On 10/23/2022 3:44 PM, Ban Tao wrote:
> > In configurations with CONFIG_OF=n, we get a harmless build warning:
> >
> > sound/soc/sunxi/sun50i-dmic.c:268:34: warning: unused variable
> > 'sun50i_dmic_of_match' [-Wunused-const-variable]
> >
> > Signed-off-by: Ban Tao <fengzheng923@gmail.com>
> > Reported-by: kernel test robot <lkp@intel.com>
> > Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
> > ---
> > v1->v2:Add "Acked-by" tag.
> > ---
> > sound/soc/sunxi/sun50i-dmic.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/sound/soc/sunxi/sun50i-dmic.c
> b/sound/soc/sunxi/sun50i-dmic.c
> > index 86cff5a..62509cb 100644
> > --- a/sound/soc/sunxi/sun50i-dmic.c
> > +++ b/sound/soc/sunxi/sun50i-dmic.c
> > @@ -391,7 +391,7 @@ static const struct dev_pm_ops sun50i_dmic_pm = {
> > static struct platform_driver sun50i_dmic_driver = {
> > .driver = {
> > .name = "sun50i-dmic",
> > - .of_match_table = of_match_ptr(sun50i_dmic_of_match),
> > + .of_match_table = sun50i_dmic_of_match,
> I don't think this is the right direction (remove the of_match_ptr) to
> fix the issue.
>
> of_match_ptr(of_table) returns of_table if CONFIG_OF=y, and returns NULL
> if CONFIG_OF=n.
>
> So guard the definition of sun50i_dmic_of_match with `#ifdef CONFIG_OF`
> should be better.
>
> Many other drivers do it this way.
>
But I think there is no difference between the two modifications. I refer
to other driver files of sunxi (sound/soc/sunxi), all of which are in the
same format.
>
> > .pm = &sun50i_dmic_pm,
> > },
> > .probe = sun50i_dmic_probe,
>
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2022-10-29 2:46 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-23 7:44 [PATCH v2] ASoC: sun50i-dmic: avoid unused variable warning for sun50i_dmic_of_match Ban Tao
2022-10-23 7:44 ` Ban Tao
2022-10-23 7:44 ` Ban Tao
2022-10-24 14:01 ` Mark Brown
2022-10-24 14:01 ` Mark Brown
2022-10-24 14:01 ` Mark Brown
2022-10-26 14:31 ` Chao Song
2022-10-26 14:31 ` Chao Song
2022-10-29 2:44 ` 班涛
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.