]> www.infradead.org Git - nvme.git/commit
btrfs: do not directly include rwlock_types.h
authorQu Wenruo <wqu@suse.com>
Tue, 28 May 2024 05:27:32 +0000 (14:57 +0930)
committerDavid Sterba <dsterba@suse.com>
Thu, 11 Jul 2024 13:33:22 +0000 (15:33 +0200)
commitc27b1dbb713ad0d81f3bbd5ede92caaaedfd8947
treed75c7c7db0ecc5b5ff0243984954e390b3ab789b
parent3b8dbf3425cfe3dcfdc026fcd7f8e1c0dd95b248
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>
fs/btrfs/extent_map.h