diff options
author | Ingo Molnar <mingo@kernel.org> | 2021-11-30 14:07:45 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2022-03-15 12:57:37 +0100 |
commit | cd71c0f7d2025ad3e903d19157740f4b1b834618 (patch) | |
tree | 1734da3ea048f22ea0ade97ee7cfb6b371b6ff47 | |
parent | 1a8343699642ac54c50327e067bc157eb4de5989 (diff) | |
download | tip-cd71c0f7d2025ad3e903d19157740f4b1b834618.tar.gz |
headers/deps: fs: Optimize <linux/fs_api.h> dependencies, remove <linux/percpu_rwsem_api.h> inclusion
--------------------------------------------------------------------
| Combined, preprocessed C code size of header, without line markers,
| with comments stripped:
-------------------------
before: | #include <linux/fs_api.h> | LOC: 9,653 | headers: 253
after: | #include <linux/fs_api.h> | LOC: 7,992 | headers: 217
Fix up dangling dependencies.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | include/linux/fs_api.h | 1 | ||||
-rw-r--r-- | include/linux/fs_api_sb.h | 2 | ||||
-rw-r--r-- | include/linux/syscalls_types.h | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/fs_api.h b/include/linux/fs_api.h index 5ac5546bb16286..b2d51c13fd15b7 100644 --- a/include/linux/fs_api.h +++ b/include/linux/fs_api.h @@ -7,7 +7,6 @@ #include <linux/mnt_idmapping.h> #include <linux/stat.h> -#include <linux/percpu_rwsem_api.h> #include <linux/lockdep_api.h> #include <linux/rwsem_api.h> #include <linux/wait_bit.h> diff --git a/include/linux/fs_api_sb.h b/include/linux/fs_api_sb.h index b1838d7645dd00..e44531523e00d4 100644 --- a/include/linux/fs_api_sb.h +++ b/include/linux/fs_api_sb.h @@ -4,6 +4,8 @@ #include <linux/fs_api.h> +#include <linux/percpu_rwsem_api.h> + /* * Snapshotting support. */ diff --git a/include/linux/syscalls_types.h b/include/linux/syscalls_types.h index b77a12a7f6d37e..a109a1b86ecf3c 100644 --- a/include/linux/syscalls_types.h +++ b/include/linux/syscalls_types.h @@ -13,6 +13,7 @@ #include <linux/trace_events_types.h> #include <trace/syscall.h> +#include <linux/ptrace_types.h> #ifdef CONFIG_ARCH_HAS_SYSCALL_WRAPPER /* |