[PATCH master 05/13] pmdomain: imx8mp-blk-ctrl: add missing definition of ARRAY_SIZE

Ahmad Fatoum a.fatoum at pengutronix.de
Mon Oct 14 04:39:04 PDT 2024


This is likely fallout from ARRAY_SIZE no longer being defined
indirectly via inclusion of <linux/list.h> transitively in other
headers.

Fix this by adding an explicit inclusion of <linux/kernel.h>.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 drivers/pmdomain/imx/imx8mp-blk-ctrl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/pmdomain/imx/imx8mp-blk-ctrl.c b/drivers/pmdomain/imx/imx8mp-blk-ctrl.c
index b71a4a793761..3d302cbde7dc 100644
--- a/drivers/pmdomain/imx/imx8mp-blk-ctrl.c
+++ b/drivers/pmdomain/imx/imx8mp-blk-ctrl.c
@@ -5,6 +5,7 @@
  */
 
 #include <linux/bitfield.h>
+#include <linux/kernel.h>
 #include <linux/clk.h>
 #include <linux/clk-provider.h>
 #include <linux/device.h>
-- 
2.39.5




More information about the barebox mailing list