]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
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)
commit4c57930f68d90e0d52c396d058cfa9ed8447a6c4
tree49f66440e3760052c4f16e38f27e1c720aaa5ba9
parent13a24175005fad410464bee482ed58af144ba250
soc: samsung: include linux/array_size.h where needed

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