mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] regulator: rt4801: Fix W=1 build warning when CONFIG_OF=n
@ 2020-08-24  2:05 cy_huang
  2020-08-24 13:31 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: cy_huang @ 2020-08-24  2:05 UTC (permalink / raw)
  To: lgirdwood, broonie; +Cc: cy_huang, gene_chen, linux-kernel

From: ChiYuan Huang <cy_huang@richtek.com>

Fix below warning when CONFIG_OF=n:

drivers/regulator/rt4801-regulator.c:206:34: warning: unused variable 'rt4801_of_id' [-Wunused-const-variable]
  206 | static const struct of_device_id rt4801_of_id[] = {
      |                                  ^~~~~~~~~~~~

Signed-off-by: ChiYuan Huang <cy_huang@richtek.com>
Reported-by: kernel test robot <lkp@intel.com>
---
 drivers/regulator/rt4801-regulator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/rt4801-regulator.c b/drivers/regulator/rt4801-regulator.c
index 0ddc670..2055a9c 100644
--- a/drivers/regulator/rt4801-regulator.c
+++ b/drivers/regulator/rt4801-regulator.c
@@ -203,7 +203,7 @@ static int rt4801_probe(struct i2c_client *i2c)
 	return 0;
 }
 
-static const struct of_device_id rt4801_of_id[] = {
+static const struct of_device_id __maybe_unused rt4801_of_id[] = {
 	{ .compatible = "richtek,rt4801", },
 	{ },
 };
-- 
2.7.4


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] regulator: rt4801: Fix W=1 build warning when CONFIG_OF=n
  2020-08-24  2:05 [PATCH] regulator: rt4801: Fix W=1 build warning when CONFIG_OF=n cy_huang
@ 2020-08-24 13:31 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2020-08-24 13:31 UTC (permalink / raw)
  To: lgirdwood, cy_huang; +Cc: linux-kernel, gene_chen, cy_huang

On Mon, 24 Aug 2020 10:05:13 +0800, cy_huang wrote:
> Fix below warning when CONFIG_OF=n:
> 
> drivers/regulator/rt4801-regulator.c:206:34: warning: unused variable 'rt4801_of_id' [-Wunused-const-variable]
>   206 | static const struct of_device_id rt4801_of_id[] = {
>       |                                  ^~~~~~~~~~~~

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next

Thanks!

[1/1] regulator: rt4801: Fix W=1 build warning when CONFIG_OF=n
      commit: c8b2c8949c45b01d75237331fc1387036b952d58

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] 2+ messages in thread

end of thread, other threads:[~2020-08-24 13:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-24  2:05 [PATCH] regulator: rt4801: Fix W=1 build warning when CONFIG_OF=n cy_huang
2020-08-24 13:31 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®