diff options
author | Ingo Molnar <mingo@kernel.org> | 2021-12-13 08:13:55 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2022-03-15 12:57:33 +0100 |
commit | 43819a176a9eb4c1c0a12b7d655927dfd21087f1 (patch) | |
tree | 60268201dbfa3cea9f5305ee6ccea628f8ec177e | |
parent | e85fe685bb17bb4b9e81492ccdce42f6cd95cc64 (diff) | |
download | tip-43819a176a9eb4c1c0a12b7d655927dfd21087f1.tar.gz |
headers/deps: mm: Optimize <linux/mm_api.h> dependencies, remove <linux/pgtable_api.h> inclusion
--------------------------------------------------------------------
| Combined, preprocessed C code size of header, without line markers,
| with comments stripped:
-------------------------
before: | #include <linux/mm_api.h> | LOC: 12,930 | headers: 310
after: | #include <linux/mm_api.h> | LOC: 10,759 | headers: 287
Fix up dangling dependencies.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | arch/sparc/include/asm/mmzone.h | 2 | ||||
-rw-r--r-- | include/linux/highmem-internal.h | 6 | ||||
-rw-r--r-- | include/linux/mm_api.h | 1 |
3 files changed, 6 insertions, 3 deletions
diff --git a/arch/sparc/include/asm/mmzone.h b/arch/sparc/include/asm/mmzone.h index a236d8aa893a91..d48c21254ed3ea 100644 --- a/arch/sparc/include/asm/mmzone.h +++ b/arch/sparc/include/asm/mmzone.h @@ -2,6 +2,8 @@ #ifndef _SPARC64_MMZONE_H #define _SPARC64_MMZONE_H +#include <asm/pgtable.h> + #ifdef CONFIG_NUMA #include <linux/cpumask.h> diff --git a/include/linux/highmem-internal.h b/include/linux/highmem-internal.h index afa4928f26cc23..e447e7a8fbf9db 100644 --- a/include/linux/highmem-internal.h +++ b/include/linux/highmem-internal.h @@ -14,9 +14,12 @@ #endif #include <linux/mm_page_address.h> -#include <linux/pgtable_api.h> #include <linux/sched/per_task.h> +#if defined(CONFIG_HIGHMEM) || defined(CONFIG_KMAP_LOCAL) +# include <asm/highmem.h> +#endif + /* * Outside of CONFIG_HIGHMEM to support X86 32bit iomap_atomic() cruft. */ @@ -42,7 +45,6 @@ static inline void kmap_assert_nomap(void) { } #endif #ifdef CONFIG_HIGHMEM -#include <asm/highmem.h> #ifndef ARCH_HAS_KMAP_FLUSH_TLB static inline void kmap_flush_tlb(unsigned long addr) { } diff --git a/include/linux/mm_api.h b/include/linux/mm_api.h index bbf4c646276627..3aec7df70545ac 100644 --- a/include/linux/mm_api.h +++ b/include/linux/mm_api.h @@ -41,7 +41,6 @@ #include <linux/page_ref.h> #include <linux/overflow.h> #include <linux/sizes.h> -#include <linux/pgtable_api.h> #include <linux/kasan.h> #include <linux/fcntl.h> |