Re: [PATCH AUTOSEL 6.0 04/46] soc: mediatek: Let PMIC Wrapper and SCPSYS depend on OF

From: Sasha Levin
Date: Sun Oct 16 2022 - 10:46:55 EST


On Wed, Oct 12, 2022 at 12:49:49AM +0200, Jean Delvare wrote:
Hi Sasha,

On Tue, 11 Oct 2022 10:49:32 -0400, Sasha Levin wrote:
From: Jean Delvare <jdelvare@xxxxxxx>

[ Upstream commit 2778caedb5667239823a29148dfc48b26a8b3c2a ]

With the following configuration options:
CONFIG_OF is not set
CONFIG_MTK_PMIC_WRAP=y
CONFIG_MTK_SCPSYS=y
we get the following build warnings:

CC drivers/soc/mediatek/mtk-pmic-wrap.o
drivers/soc/mediatek/mtk-pmic-wrap.c:2138:34: warning: ‘of_pwrap_match_tbl’ defined but not used [-Wunused-const-variable=]
drivers/soc/mediatek/mtk-pmic-wrap.c:1953:34: warning: ‘of_slave_match_tbl’ defined but not used [-Wunused-const-variable=]
CC drivers/soc/mediatek/mtk-scpsys.o
drivers/soc/mediatek/mtk-scpsys.c:1084:34: warning: ‘of_scpsys_match_tbl’ defined but not used [-Wunused-const-variable=]
(...)

This is warning only, pretty harmless, so I don't think this qualifies
for stable kernel trees.

Ack, I can drop it.

--
Thanks,
Sasha