diff options
author | Ingo Molnar <mingo@kernel.org> | 2022-02-17 08:29:03 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2022-03-15 12:57:29 +0100 |
commit | 5020ff4bfa6aa7060baf3bef271f837af437ca93 (patch) | |
tree | 33d7374b1428568a6688a5bc143dd9f2e0735013 | |
parent | c158a27b51a16fc701f4a43423af5eac3653ba1a (diff) | |
download | tip-5020ff4bfa6aa7060baf3bef271f837af437ca93.tar.gz |
headers/deps: mm: Optimize <linux/mm_api.h> dependencies, remove <linux/gfp_api.h> inclusion
--------------------------------------------------------------------
| Combined, preprocessed C code size of header, without line markers,
| with comments stripped:
-------------------------
before: | #include <linux/mm_api.h> | LOC: 14,097 | headers: 341
after: | #include <linux/mm_api.h> | LOC: 13,982 | headers: 340
Fix up dangling dependencies.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | include/linux/mm_api.h | 2 | ||||
-rw-r--r-- | mm/slab.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/mm_api.h b/include/linux/mm_api.h index e7bacfa5d3958a..af41d060629c26 100644 --- a/include/linux/mm_api.h +++ b/include/linux/mm_api.h @@ -28,7 +28,7 @@ #include <linux/spinlock_types.h> #include <linux/mmdebug.h> -#include <linux/gfp_api.h> +#include <linux/gfp_types.h> #include <linux/bug.h> #include <linux/list.h> #include <linux/mmzone.h> diff --git a/mm/slab.h b/mm/slab.h index c7f2abc2b154c1..b7a7d629c62697 100644 --- a/mm/slab.h +++ b/mm/slab.h @@ -1,6 +1,9 @@ /* SPDX-License-Identifier: GPL-2.0 */ #ifndef MM_SLAB_H #define MM_SLAB_H + +#include <linux/gfp_api.h> + /* * Internal slab definitions */ |