Skip to content

Commit 56eb7c1

Browse files
andy-shevmiquelraynal
authored andcommitted
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 <[email protected]> Signed-off-by: Miquel Raynal <[email protected]>
1 parent 9358bdb commit 56eb7c1

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

include/linux/mtd/map.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
#ifndef __LINUX_MTD_MAP_H__
99
#define __LINUX_MTD_MAP_H__
1010

11-
#include <linux/types.h>
12-
#include <linux/list.h>
13-
#include <linux/string.h>
1411
#include <linux/bug.h>
15-
#include <linux/kernel.h>
1612
#include <linux/io.h>
17-
13+
#include <linux/ioport.h>
14+
#include <linux/string.h>
15+
#include <linux/types.h>
1816
#include <linux/unaligned.h>
19-
#include <asm/barrier.h>
17+
18+
struct device_node;
19+
struct module;
2020

2121
#ifdef CONFIG_MTD_MAP_BANK_WIDTH_1
2222
#define map_bankwidth(map) 1
@@ -188,6 +188,7 @@ typedef union {
188188
of living.
189189
*/
190190

191+
struct mtd_chip_driver;
191192
struct map_info {
192193
const char *name;
193194
unsigned long size;

0 commit comments

Comments
 (0)