Skip to contentSkip to conversation

mtd: spi-nor: aspeed: include <linux/sizes.h>

PATCH In review Cédric Le Goater 2 participants 2 messages Jun 21, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd: spi-nor: aspeed: include <linux/sizes.h>

This fix a compile error on some platforms :

drivers/mtd/spi-nor/aspeed-smc.c: In function 'aspeed_smc_chip_set_segment':
drivers/mtd/spi-nor/aspeed-smc.c:554:14: error: 'SZ_128M' undeclared (first use in this function)

      size == SZ_128M) {
              ^
---
 drivers/mtd/spi-nor/aspeed-smc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mtd/spi-nor/aspeed-smc.c +1 -0
index d91e0f3897b9..0106357421bd 100644
@@ -19,6 +19,7 @@
 #include <linux/mtd/spi-nor.h>
 #include <linux/of.h>
 #include <linux/of_platform.h>
+#include <linux/sizes.h>
 #include <linux/sysfs.h>
 
 #define DEVICE_NAME	"aspeed-smc"
Signature · 1 line
2.7.5
#1 lore raw
Quoted 7 lines · Cédric Le Goater

This fix a compile error on some platforms :

drivers/mtd/spi-nor/aspeed-smc.c: In function 'aspeed_smc_chip_set_segment':
drivers/mtd/spi-nor/aspeed-smc.c:554:14: error: 'SZ_128M' undeclared (first use in this function)

      size == SZ_128M) {
              ^

squashed into ("mtd: spi-nor: aspeed: configure chip window on AHB bus") in the spi-nor/next branch of l2-mtd

Thanks!

Quoted 17 lines
---
 drivers/mtd/spi-nor/aspeed-smc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mtd/spi-nor/aspeed-smc.c +1 -0
index d91e0f3897b9..0106357421bd 100644
@@ -19,6 +19,7 @@
 #include <linux/mtd/spi-nor.h>
 #include <linux/of.h>
 #include <linux/of_platform.h>
+#include <linux/sizes.h>
 #include <linux/sysfs.h>
 
 #define DEVICE_NAME	"aspeed-smc"