Skip to content

Commit a721321

Browse files
MrVanShawn Guo
authored andcommitted
soc: imx8m: fix build warning
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: fc40200 ("soc: imx: increase build coverage for imx8m soc driver") Reported-by: kernel test robot <[email protected]> Signed-off-by: Peng Fan <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
1 parent 4845446 commit a721321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/soc/imx/soc-imx8m.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ static const struct imx8_soc_data imx8mp_soc_data = {
150150
.soc_revision = imx8mm_soc_revision,
151151
};
152152

153-
static const struct of_device_id imx8_soc_match[] = {
153+
static __maybe_unused const struct of_device_id imx8_soc_match[] = {
154154
{ .compatible = "fsl,imx8mq", .data = &imx8mq_soc_data, },
155155
{ .compatible = "fsl,imx8mm", .data = &imx8mm_soc_data, },
156156
{ .compatible = "fsl,imx8mn", .data = &imx8mn_soc_data, },

0 commit comments

Comments
 (0)