]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 May 2025 09:12:54 +0000 (11:12 +0200)
[ Upstream commit 4c57930f68d90e0d52c396d058cfa9ed8447a6c4 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.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 95294462ff21130951bd3c940d979af182423789..99c5f9c80101b5155d94348345d68b529cc17d72 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 114352695ac2bcb7c141b9ebbca89f28f2c3bcf3..5a93a68dba87fd014f7263c5935180c8cd8ac5f2 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>