diff options
author | Ingo Molnar <mingo@kernel.org> | 2021-11-30 16:45:49 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2022-03-15 12:57:38 +0100 |
commit | 72a425d9f71ec590cdf5623209b4b6e0eca49dfe (patch) | |
tree | 81d66a8c51130d3339aa8bba78d61cbc12ac6c4a | |
parent | 064be9bbc44b145ebc0d48aba48d96db7674b6c8 (diff) | |
download | tip-72a425d9f71ec590cdf5623209b4b6e0eca49dfe.tar.gz |
headers/deps: fs: Optimize <linux/fs_types.h> dependencies, remove <linux/workqueue_types.h> inclusion
--------------------------------------------------------------------
| Combined, preprocessed C code size of header, without line markers,
| with comments stripped:
-------------------------
before: | #include <linux/fs_types.h> | LOC: 2,288 | headers: 137
after: | #include <linux/fs_types.h> | LOC: 2,136 | headers: 124
Fix up dangling dependencies.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | include/linux/fs_types.h | 2 | ||||
-rw-r--r-- | include/linux/fs_types_sb.h | 1 | ||||
-rw-r--r-- | include/linux/fsverity.h | 2 |
3 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/fs_types.h b/include/linux/fs_types.h index f58d7bbbf45a53..29d3cb19ffc5d6 100644 --- a/include/linux/fs_types.h +++ b/include/linux/fs_types.h @@ -13,10 +13,10 @@ #include <linux/errseq.h> #include <linux/quota_types.h> #include <linux/rbtree_types.h> -#include <linux/workqueue_types.h> #include <linux/mutex_types.h> #include <linux/llist_types.h> #include <linux/wait_types.h> +#include <linux/atomic_types.h> #include <uapi/linux/fs.h> diff --git a/include/linux/fs_types_sb.h b/include/linux/fs_types_sb.h index 6be1a714e85f04..e3419e345748c2 100644 --- a/include/linux/fs_types_sb.h +++ b/include/linux/fs_types_sb.h @@ -8,6 +8,7 @@ #include <linux/list_bl_types.h> #include <linux/list_lru_types.h> #include <linux/shrinker.h> +#include <linux/workqueue_types.h> /* * sb->s_flags. Note that these mirror the equivalent MS_* flags where diff --git a/include/linux/fsverity.h b/include/linux/fsverity.h index 0b20365870bfd9..f3a78caa10d43d 100644 --- a/include/linux/fsverity.h +++ b/include/linux/fsverity.h @@ -17,6 +17,8 @@ #include <asm/barrier.h> +struct work_struct; + /* Verity operations for filesystems */ struct fsverity_operations { |