From: Andy Shevchenko Date: Thu, 26 Jun 2025 16:08:12 +0000 (+0300) Subject: mtd: map: Don't use "proxy" headers X-Git-Tag: v6.17-rc1~85^2~2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=56eb7c13b97c6f9e2fed9e9899b01d1a6a595f28;p=users%2Fgriffoul%2Flinux.git mtd: map: Don't use "proxy" headers Update header inclusions to follow IWYU (Include What You Use) principle. Note that kernel.h is discouraged to be included as it's written at the top of that file. Signed-off-by: Andy Shevchenko Signed-off-by: Miquel Raynal --- diff --git a/include/linux/mtd/map.h b/include/linux/mtd/map.h index 1b56796f6cb3..288ef765a44e 100644 --- a/include/linux/mtd/map.h +++ b/include/linux/mtd/map.h @@ -8,15 +8,15 @@ #ifndef __LINUX_MTD_MAP_H__ #define __LINUX_MTD_MAP_H__ -#include -#include -#include #include -#include #include - +#include +#include +#include #include -#include + +struct device_node; +struct module; #ifdef CONFIG_MTD_MAP_BANK_WIDTH_1 #define map_bankwidth(map) 1 @@ -188,6 +188,7 @@ typedef union { of living. */ +struct mtd_chip_driver; struct map_info { const char *name; unsigned long size;