[PATCH 1/3] soc: imx: imx8m-featctrl: make header self-contained

Ahmad Fatoum a.fatoum at pengutronix.de
Fri Jan 19 14:45:20 PST 2024


struct device is the only undefined type in the header, so
forward-declare it to make the header independent of include order.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 include/soc/imx8m/featctrl.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/soc/imx8m/featctrl.h b/include/soc/imx8m/featctrl.h
index 9c494f071d02..91d14bc68c0a 100644
--- a/include/soc/imx8m/featctrl.h
+++ b/include/soc/imx8m/featctrl.h
@@ -14,6 +14,8 @@ struct imx8m_featctrl_data {
 	bool check_cpus;
 };
 
+struct device;
+
 #ifdef CONFIG_IMX8M_FEATCTRL
 int imx8m_feat_ctrl_init(struct device *dev, u32 tester4,
 			 const struct imx8m_featctrl_data *data);
-- 
2.39.2




More information about the barebox mailing list