From: Qu Wenruo Date: Tue, 28 May 2024 05:27:32 +0000 (+0930) Subject: btrfs: do not directly include rwlock_types.h X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c27b1dbb713ad0d81f3bbd5ede92caaaedfd8947;p=users%2Fjedix%2Flinux-maple.git 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 Signed-off-by: Qu Wenruo Reviewed-by: David Sterba Signed-off-by: David Sterba --- 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 -#include +#include #include #include #include