Skip to content

Commit 07852c3

Browse files
committed
memory: omap-gpmc: Include <linux/sizes.h> for SZ_16M
The driver uses SZ_16M which is defined in include/linux/sizes.h. On ARM it was pulled by other headers but its inclusion is necessary for compile testing on other architectures. This fixes build error when compile testing on i386 architecture: drivers/memory/omap-gpmc.c: In function ‘gpmc_cs_remap’: drivers/memory/omap-gpmc.c:961:12: error: ‘SZ_16M’ undeclared (first use in this function) Signed-off-by: Krzysztof Kozlowski <[email protected]>
1 parent 3aa5a6c commit 07852c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/memory/omap-gpmc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include <linux/of_platform.h>
3030
#include <linux/omap-gpmc.h>
3131
#include <linux/pm_runtime.h>
32+
#include <linux/sizes.h>
3233

3334
#include <linux/platform_data/mtd-nand-omap2.h>
3435

0 commit comments

Comments
 (0)