linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2] soc: imx8m: fix build warning
@ 2020-06-24  6:06 peng.fan
  2020-06-24  6:39 ` Shawn Guo
  0 siblings, 1 reply; 2+ messages in thread
From: peng.fan @ 2020-06-24  6:06 UTC (permalink / raw)
  To: shawnguo, s.hauer, aisheng.dong
  Cc: Peng Fan, leonard.crestez, linux-arm-kernel, kernel, linux-imx

From: Peng Fan <peng.fan@nxp.com>

Fix the build warning with x86_64-randconfig
>> drivers/soc/imx/soc-imx8m.c:150:34: warning: unused variable
>> 'imx8_soc_match' [-Wunused-const-variable]
static const struct of_device_id imx8_soc_match[] = { ^

Fixes: fc40200ebf82 ("soc: imx: increase build coverage for imx8m soc driver")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
---

V2:
 Use __maybe_unused

 drivers/soc/imx/soc-imx8m.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/soc/imx/soc-imx8m.c b/drivers/soc/imx/soc-imx8m.c
index 7b0759adb47d..f30a1179e823 100644
--- a/drivers/soc/imx/soc-imx8m.c
+++ b/drivers/soc/imx/soc-imx8m.c
@@ -146,7 +146,7 @@ static const struct imx8_soc_data imx8mp_soc_data = {
 	.soc_revision = imx8mm_soc_revision,
 };
 
-static const struct of_device_id imx8_soc_match[] = {
+static __maybe_unused const struct of_device_id imx8_soc_match[] = {
 	{ .compatible = "fsl,imx8mq", .data = &imx8mq_soc_data, },
 	{ .compatible = "fsl,imx8mm", .data = &imx8mm_soc_data, },
 	{ .compatible = "fsl,imx8mn", .data = &imx8mn_soc_data, },
-- 
2.16.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] 2+ messages in thread

* Re: [PATCH V2] soc: imx8m: fix build warning
  2020-06-24  6:06 [PATCH V2] soc: imx8m: fix build warning peng.fan
@ 2020-06-24  6:39 ` Shawn Guo
  0 siblings, 0 replies; 2+ messages in thread
From: Shawn Guo @ 2020-06-24  6:39 UTC (permalink / raw)
  To: peng.fan
  Cc: aisheng.dong, s.hauer, linux-imx, kernel, leonard.crestez,
	linux-arm-kernel

On Wed, Jun 24, 2020 at 02:06:54PM +0800, peng.fan@nxp.com wrote:
> From: Peng Fan <peng.fan@nxp.com>
> 
> Fix the build warning with x86_64-randconfig
> >> drivers/soc/imx/soc-imx8m.c:150:34: warning: unused variable
> >> 'imx8_soc_match' [-Wunused-const-variable]
> static const struct of_device_id imx8_soc_match[] = { ^
> 
> Fixes: fc40200ebf82 ("soc: imx: increase build coverage for imx8m soc driver")
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Peng Fan <peng.fan@nxp.com>

Applied, thanks.

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

end of thread, other threads:[~2020-06-24  6:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-24  6:06 [PATCH V2] soc: imx8m: fix build warning peng.fan
2020-06-24  6:39 ` Shawn Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).