[PATCH v2 03/29] memory: omap-gpmc: Include <linux/sizes.h> for SZ_16M

From: Krzysztof Kozlowski
Date: Fri Jul 24 2020 - 03:41:27 EST


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 <krzk@xxxxxxxxxx>
---
drivers/memory/omap-gpmc.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/memory/omap-gpmc.c b/drivers/memory/omap-gpmc.c
index 8ec2ef2aebdd..c158b6cae9a9 100644
--- a/drivers/memory/omap-gpmc.c
+++ b/drivers/memory/omap-gpmc.c
@@ -29,6 +29,7 @@
#include <linux/of_platform.h>
#include <linux/omap-gpmc.h>
#include <linux/pm_runtime.h>
+#include <linux/sizes.h>

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

--
2.17.1