]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
btrfs: cleanup recursive include of the same header
authorQu Wenruo <wqu@suse.com>
Tue, 28 May 2024 05:26:13 +0000 (14:56 +0930)
committerDavid Sterba <dsterba@suse.com>
Thu, 11 Jul 2024 13:33:22 +0000 (15:33 +0200)
We have several headers that are including themselves, triggering clangd
warnings.
Such includes are caused by commit 602035d7fecf ("btrfs: add forward
declarations and headers, part 2").

Just remove such unnecessary include.

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/btrfs_inode.h
fs/btrfs/extent_map.h
fs/btrfs/fs.h
fs/btrfs/locking.h
fs/btrfs/lru_cache.h

index db193b3be8eb89abc989142ccf569e1ba6f999b8..d0864041c2299421390a790ce917dab2f3ec2c2e 100644 (file)
@@ -19,7 +19,6 @@
 #include <uapi/linux/btrfs_tree.h>
 #include <trace/events/btrfs.h>
 #include "block-rsv.h"
-#include "btrfs_inode.h"
 #include "extent_map.h"
 #include "extent_io.h"
 #include "extent-io-tree.h"
index 2bcf7149b44cfcc89107d1e638826911b4af24d5..d3d1e5b7528d3fed727a2bb20a76a7aac78ee351 100644 (file)
@@ -9,7 +9,6 @@
 #include <linux/list.h>
 #include <linux/refcount.h>
 #include "misc.h"
-#include "extent_map.h"
 #include "compression.h"
 
 struct btrfs_inode;
index 89f0650631cdffc74d03c971d9079e7d875d3db1..e6b1903f6c3254bea8e131deaa874248dafbe9f1 100644 (file)
@@ -29,7 +29,6 @@
 #include "extent-io-tree.h"
 #include "async-thread.h"
 #include "block-rsv.h"
-#include "fs.h"
 
 struct inode;
 struct super_block;
index 1bc8e673887995c9ddac4726174ce5f4d1246c7c..3c15c75e05829ebd003148710743950578a33629 100644 (file)
@@ -11,7 +11,6 @@
 #include <linux/lockdep.h>
 #include <linux/percpu_counter.h>
 #include "extent_io.h"
-#include "locking.h"
 
 struct extent_buffer;
 struct btrfs_path;
index e32906ab6faaab89c675bef6f553a3b83092029c..07f1bb1c6aa3ca414299b434c6859b74880f3b1c 100644 (file)
@@ -6,7 +6,6 @@
 #include <linux/types.h>
 #include <linux/maple_tree.h>
 #include <linux/list.h>
-#include "lru_cache.h"
 
 /*
  * A cache entry. This is meant to be embedded in a structure of a user of