[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20240617070901.3218636-1-quic_luoj@quicinc.com>
Date: Mon, 17 Jun 2024 15:09:01 +0800
From: Luo Jie <quic_luoj@...cinc.com>
To: <andersson@...nel.org>, <mturquette@...libre.com>, <sboyd@...nel.org>
CC: <linux-arm-msm@...r.kernel.org>, <linux-clk@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <bryan.odonoghue@...aro.org>,
kernel test
robot <lkp@...el.com>
Subject: [PATCH] clk: qcom: nsscc-qca8k: Fix the MDIO functions undefined issue
When the COMPILE_TEST is enabled, the MDIO_BUS is necessary because
of the mdio_module_driver used for qca8k clock controller driver.
This patch fixes the following undefined symbols.
ERROR: modpost: "mdio_driver_register"
[drivers/clk/qcom/nsscc-qca8k.ko] undefined!
ERROR: modpost: "mdio_driver_unregister"
[drivers/clk/qcom/nsscc-qca8k.ko] undefined!
ERROR: modpost: "__mdiobus_write"
[drivers/clk/qcom/nsscc-qca8k.ko] undefined!
ERROR: modpost: "__mdiobus_read"
[drivers/clk/qcom/nsscc-qca8k.ko] undefined!
Reported-by: kernel test robot <lkp@...el.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202406161634.B27sOs8B-lkp@intel.com/
Closes: https://lore.kernel.org/oe-kbuild-all/202406162047.QkUMa2fG-lkp@intel.com/
Signed-off-by: Luo Jie <quic_luoj@...cinc.com>
---
drivers/clk/qcom/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/qcom/Kconfig b/drivers/clk/qcom/Kconfig
index 4432b1cce478..4e8ca0ecf1f3 100644
--- a/drivers/clk/qcom/Kconfig
+++ b/drivers/clk/qcom/Kconfig
@@ -251,7 +251,7 @@ config IPQ_GCC_9574
config IPQ_NSSCC_QCA8K
tristate "QCA8K(QCA8386 or QCA8084) NSS Clock Controller"
- depends on MDIO_BUS || COMPILE_TEST
+ depends on COMPILE_TEST && MDIO_BUS
help
Support for NSS(Network SubSystem) clock controller on
qca8386/qca8084 chip.
--
2.34.1
Powered by blists - more mailing lists