mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 12:21:22 -05:00
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>
This commit is contained in:
committed by
Krzysztof Kozlowski
parent
13a2417500
commit
4c57930f68
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user