Skip to content

Commit e596ef9

Browse files
adam900710kdave
authored andcommitted
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 <[email protected]> Signed-off-by: Qu Wenruo <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 1d80083 commit e596ef9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: fs/btrfs/extent_map.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#define BTRFS_EXTENT_MAP_H
55

66
#include <linux/compiler_types.h>
7-
#include <linux/rwlock_types.h>
7+
#include <linux/spinlock_types.h>
88
#include <linux/rbtree.h>
99
#include <linux/list.h>
1010
#include <linux/refcount.h>

0 commit comments

Comments
 (0)