Skip to contentSkip to conversation

mtd: maps: vmu: add include to ensure maple mtd code builds

PATCH New Adrian McMenamin 1 participant 1 message Apr 8

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

PATCH 1/1 mtd: maps: vmu: add include to ensure maple mtd code builds

maple.h included in vmu-flash.c references struct device and struct device_driver, so we should explicitly include linux/device.h to ensure the code builds without error.

Include header file required for build.

---
 drivers/mtd/maps/vmu-flash.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mtd/maps/vmu-flash.c +1 -0
index 75e06d249ce9..e2a574a4b438 100644
@@ -9,6 +9,7 @@
 #include <linux/slab.h>
 #include <linux/sched.h>
 #include <linux/delay.h>
+#include <linux/device.h>
 #include <linux/maple.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/map.h>
Signature · 1 line
2.43.0