]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
soc: samsung: include linux/array_size.h where needed
authorArnd Bergmann <arnd@arndb.de>
Wed, 5 Mar 2025 21:14:02 +0000 (22:14 +0100)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 6 Mar 2025 18:10:17 +0000 (19:10 +0100)
This does not necessarily get included through asm/io.h:

drivers/soc/samsung/exynos3250-pmu.c:120:18: error: use of undeclared identifier 'ARRAY_SIZE'
  120 |         for (i = 0; i < ARRAY_SIZE(exynos3250_list_feed); i++) {
      |                         ^
drivers/soc/samsung/exynos5250-pmu.c:162:18: error: use of undeclared identifier 'ARRAY_SIZE'
  162 |         for (i = 0; i < ARRAY_SIZE(exynos5_list_both_cnt_feed); i++) {
      |                         ^

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20250305211446.43772-1-arnd@kernel.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
drivers/soc/samsung/exynos-asv.c
drivers/soc/samsung/exynos-chipid.c
drivers/soc/samsung/exynos-pmu.c
drivers/soc/samsung/exynos-usi.c
drivers/soc/samsung/exynos3250-pmu.c
drivers/soc/samsung/exynos5250-pmu.c
drivers/soc/samsung/exynos5420-pmu.c

index 97006cc3b9461087c0811b4bf45ac280c13b60b0..8e681f51952644d42c46ad3bc31859a9614d121c 100644 (file)
@@ -9,6 +9,7 @@
  * Samsung Exynos SoC Adaptive Supply Voltage support
  */
 
+#include <linux/array_size.h>
 #include <linux/cpu.h>
 #include <linux/device.h>
 #include <linux/energy_model.h>
index 47a3d5309acb6763fc6822acbc7ce1cd862e45d2..b5debd5ad99471c0ddd6d240bd846264e13c90f9 100644 (file)
@@ -12,6 +12,7 @@
  * Samsung Exynos SoC Adaptive Supply Voltage and Chip ID support
  */
 
+#include <linux/array_size.h>
 #include <linux/device.h>
 #include <linux/errno.h>
 #include <linux/mfd/syscon.h>
index dd5256e5aae1ae934aeb36725161a1556e9a712a..c40313886a012304b3f345d5d7369f15713eb857 100644 (file)
@@ -5,6 +5,7 @@
 //
 // Exynos - CPU PMU(Power Management Unit) support
 
+#include <linux/array_size.h>
 #include <linux/arm-smccc.h>
 #include <linux/of.h>
 #include <linux/of_address.h>
index 173b76720079598adae9a46a9d4641877f7cdf75..c5661ac19f7b3a4ea0afc3462aa800a49d7e9827 100644 (file)
@@ -6,6 +6,7 @@
  * Samsung Exynos USI driver (Universal Serial Interface).
  */
 
+#include <linux/array_size.h>
 #include <linux/clk.h>
 #include <linux/mfd/syscon.h>
 #include <linux/module.h>
index 30f230ed1769cf7dcca3d2e5725a5add0bf3719f..4bad12a995422e720002585b4f522122603e8988 100644 (file)
@@ -5,6 +5,7 @@
 //
 // Exynos3250 - CPU PMU (Power Management Unit) support
 
+#include <linux/array_size.h>
 #include <linux/soc/samsung/exynos-regs-pmu.h>
 #include <linux/soc/samsung/exynos-pmu.h>
 
index 7a2d50be6b4ac090e089960d814797d6d68ca9ad..2ae5c3e1b07a37d6df2a6cbce3a130e8a5c94d34 100644 (file)
@@ -5,6 +5,7 @@
 //
 // Exynos5250 - CPU PMU (Power Management Unit) support
 
+#include <linux/array_size.h>
 #include <linux/soc/samsung/exynos-regs-pmu.h>
 #include <linux/soc/samsung/exynos-pmu.h>
 
index 6fedcd78cb451967f33cc608789efc9f6a674ad4..58a2209795f78af6b21cdd43c6da30400aacb9dd 100644 (file)
@@ -5,6 +5,7 @@
 //
 // Exynos5420 - CPU PMU (Power Management Unit) support
 
+#include <linux/array_size.h>
 #include <linux/pm.h>
 #include <linux/soc/samsung/exynos-regs-pmu.h>
 #include <linux/soc/samsung/exynos-pmu.h>