diff options
author | Ingo Molnar <mingo@kernel.org> | 2021-08-06 05:40:55 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2022-03-15 12:57:30 +0100 |
commit | 36832a1142374cda505f1f590b6e64f678e6c846 (patch) | |
tree | 5cc0ccb5760fc78dd4a8f9d832b6afba002c5aad | |
parent | 48ac084f54b5f33ec7a49dfe03db52251164b7d1 (diff) | |
download | tip-36832a1142374cda505f1f590b6e64f678e6c846.tar.gz |
headers/deps: mm: Optimize <linux/mm_api.h> dependencies, remove <linux/percpu-refcount.h> inclusion
--------------------------------------------------------------------
| Combined, preprocessed C code size of header, without line markers,
| with comments stripped:
-------------------------
before: | #include <linux/mm_api.h> | LOC: 11,557 | headers: 312
after: | #include <linux/mm_api.h> | LOC: 10,910 | headers: 298
Fix up dangling dependencies.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | arch/x86/include/asm/perf_event.h | 1 | ||||
-rw-r--r-- | include/linux/mm_api.h | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/perf_event.h b/arch/x86/include/asm/perf_event.h index 8fc1b5003713fd..3888334862cd2a 100644 --- a/arch/x86/include/asm/perf_event.h +++ b/arch/x86/include/asm/perf_event.h @@ -2,6 +2,7 @@ #ifndef _ASM_X86_PERF_EVENT_H #define _ASM_X86_PERF_EVENT_H +#include <asm/ptrace_types.h> /* * Performance event hw details: */ diff --git a/include/linux/mm_api.h b/include/linux/mm_api.h index df273052167ba7..2cddb19c98a898 100644 --- a/include/linux/mm_api.h +++ b/include/linux/mm_api.h @@ -38,7 +38,6 @@ #include <linux/mmap_lock.h> #include <linux/range.h> #include <linux/pfn.h> -#include <linux/percpu-refcount.h> #include <linux/bit_spinlock.h> #include <linux/shrinker.h> #include <linux/resource.h> |