[PATCH 01/26] sh: maple: include linux/device.h in linux/maple.h
Dmitry Torokhov <[email protected]> Fri, 03 Jul 2026 22:57:24 -0700
| Newsgroups | org.kernel.vger.linux-sh,org.infradead.lists.linux-mtd,org.kernel.vger.linux-input,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
struct maple_device embeds struct device and struct maple_driver embeds struct device_driver. Therefore, linux/maple.h must include linux/device.h to have their full definitions, rather than just forward declaring struct device. This fixes compilation of vmu-flash.c which includes linux/maple.h without previously including linux/device.h (or headers that include it). Assisted-by: Antigravity:gemini-3.5-flash Signed-off-by: Dmitry Torokhov <[email protected]> --- include/linux/maple.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/linux/maple.h b/include/linux/maple.h index 3be4e567473c..22f2930251ed 100644 --- a/include/linux/maple.h +++ b/include/linux/maple.h @@ -2,10 +2,9 @@ #ifndef __LINUX_MAPLE_H #define __LINUX_MAPLE_H +#include <linux/device.h> #include <mach/maple.h> -struct device; - /* Maple Bus command and response codes */ enum maple_code { MAPLE_RESPONSE_FILEERR = -5, -- 2.55.0.rc0.799.gd6f94ed593-goog