Skip to content

Commit cea8565

Browse files
arndbjfvogel
authored andcommitted
soc: samsung: include linux/array_size.h where needed
[ 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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Sasha Levin <[email protected]> (cherry picked from commit 8fc16414c3ef7b7db4e8873557316dbaeb36f747) Signed-off-by: Jack Vogel <[email protected]>
1 parent f56352b commit cea8565

File tree

7 files changed

+7
-0
lines changed

7 files changed

+7
-0
lines changed

drivers/soc/samsung/exynos-asv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* Samsung Exynos SoC Adaptive Supply Voltage support
1010
*/
1111

12+
#include <linux/array_size.h>
1213
#include <linux/cpu.h>
1314
#include <linux/device.h>
1415
#include <linux/energy_model.h>

drivers/soc/samsung/exynos-chipid.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* Samsung Exynos SoC Adaptive Supply Voltage and Chip ID support
1313
*/
1414

15+
#include <linux/array_size.h>
1516
#include <linux/device.h>
1617
#include <linux/errno.h>
1718
#include <linux/mfd/syscon.h>

drivers/soc/samsung/exynos-pmu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
//
66
// Exynos - CPU PMU(Power Management Unit) support
77

8+
#include <linux/array_size.h>
89
#include <linux/arm-smccc.h>
910
#include <linux/of.h>
1011
#include <linux/of_address.h>

drivers/soc/samsung/exynos-usi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* Samsung Exynos USI driver (Universal Serial Interface).
77
*/
88

9+
#include <linux/array_size.h>
910
#include <linux/clk.h>
1011
#include <linux/mfd/syscon.h>
1112
#include <linux/module.h>

drivers/soc/samsung/exynos3250-pmu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
//
66
// Exynos3250 - CPU PMU (Power Management Unit) support
77

8+
#include <linux/array_size.h>
89
#include <linux/soc/samsung/exynos-regs-pmu.h>
910
#include <linux/soc/samsung/exynos-pmu.h>
1011

drivers/soc/samsung/exynos5250-pmu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
//
66
// Exynos5250 - CPU PMU (Power Management Unit) support
77

8+
#include <linux/array_size.h>
89
#include <linux/soc/samsung/exynos-regs-pmu.h>
910
#include <linux/soc/samsung/exynos-pmu.h>
1011

drivers/soc/samsung/exynos5420-pmu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
//
66
// Exynos5420 - CPU PMU (Power Management Unit) support
77

8+
#include <linux/array_size.h>
89
#include <linux/pm.h>
910
#include <linux/soc/samsung/exynos-regs-pmu.h>
1011
#include <linux/soc/samsung/exynos-pmu.h>

0 commit comments

Comments
 (0)