Skip to contentSkip to conversation

at91: mtd: nand: Add dev_warn() to correct build error in driver

PATCH New Simon Glass 2 participants 2 messages May 5, 2016 – May 28, 2016

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

PATCH v2 14/18 at91: mtd: nand: Add dev_warn() to correct build error in driver

The code does not compile if ECC is enabled.

---

Changes in v2: None

 drivers/mtd/nand/atmel_nand.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/mtd/nand/atmel_nand.c +2 -0
index 8fac824..15958cb 100644
@@ -20,6 +20,8 @@
 #include <watchdog.h>
 #include <linux/mtd/nand_ecc.h>
 
+#define dev_warn(dev, msg...)
+
 #ifdef CONFIG_ATMEL_NAND_HWECC
 
 /* Register access macros */
Signature · 1 line
2.8.0.rc3.226.g39d4020
#1 lore raw

PATCH v2 14/18 at91: mtd: nand: Add dev_warn() to correct build error in driver

Quoted 16 lines · Simon Glass

The code does not compile if ECC is enabled.

---

Changes in v2: None

 drivers/mtd/nand/atmel_nand.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/mtd/nand/atmel_nand.c +0 -0
index 8fac824..15958cb 100644

drivers/mtd/nand/atmel_nand.c line 27

Quoted 8 lines
drivers/mtd/nand/atmel_nand.c +2 -0
@@ -20,6 +20,8 @@
 #include <watchdog.h>
 #include <linux/mtd/nand_ecc.h>
 
+#define dev_warn(dev, msg...)
+
 #ifdef CONFIG_ATMEL_NAND_HWECC
 
 /* Register access macros */

This should go in include/linux/compat.h with the others.

-Scott