* [PATCH] mtd: maps: vmu: add include to ensure maple mtd code builds
@ 2026-04-08 21:29 Adrian McMenamin
0 siblings, 0 replies; only message in thread
From: Adrian McMenamin @ 2026-04-08 21:29 UTC (permalink / raw)
To: linux-mtd; +Cc: linux-kernel, linux-sh, Adrian McMenamin
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.
Signed-off-by: Adrian McMenamin <adrianmcmenamin@gmail.com>
---
drivers/mtd/maps/vmu-flash.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mtd/maps/vmu-flash.c b/drivers/mtd/maps/vmu-flash.c
index 75e06d249ce9..e2a574a4b438 100644
--- a/drivers/mtd/maps/vmu-flash.c
+++ b/drivers/mtd/maps/vmu-flash.c
@@ -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>
--
2.43.0
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-04-08 21:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-08 21:29 [PATCH] mtd: maps: vmu: add include to ensure maple mtd code builds Adrian McMenamin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox