diff options
author | Qu Wenruo <wqu@suse.com> | 2024-05-28 07:27:32 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2024-07-11 15:33:22 +0200 |
commit | c27b1dbb713ad0d81f3bbd5ede92caaaedfd8947 (patch) | |
tree | d75c7c7db0ecc5b5ff0243984954e390b3ab789b /fs/btrfs/extent_map.h | |
parent | btrfs: cleanup recursive include of the same header (diff) | |
download | linux-c27b1dbb713ad0d81f3bbd5ede92caaaedfd8947.tar.xz linux-c27b1dbb713ad0d81f3bbd5ede92caaaedfd8947.zip |
btrfs: do not directly include rwlock_types.h
There is already an error inside that header:
#if !defined(__LINUX_SPINLOCK_TYPES_H)
# error "Do not include directly, include spinlock_types.h"
#endif
Thankfully it never get triggered as some other headers have already
included spinlock_types.h.
However clangd would still do a proper warning on that if only
extent_map.h is opened.
Fix it by using spinlock_types.h instead.
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_map.h')
-rw-r--r-- | fs/btrfs/extent_map.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_map.h b/fs/btrfs/extent_map.h index d3d1e5b7528d..5154a8f1d26c 100644 --- a/fs/btrfs/extent_map.h +++ b/fs/btrfs/extent_map.h @@ -4,7 +4,7 @@ #define BTRFS_EXTENT_MAP_H #include <linux/compiler_types.h> -#include <linux/rwlock_types.h> +#include <linux/spinlock_types.h> #include <linux/rbtree.h> #include <linux/list.h> #include <linux/refcount.h> |