Skip to content

Commit

Permalink
btrfs: cleanup recursive include of the same header
Browse files Browse the repository at this point in the history
We have several headers that are including themselves, triggering clangd
warnings.
Such includes are caused by commit 602035d ("btrfs: add forward
declarations and headers, part 2").

Just remove such unnecessary include.

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]>
  • Loading branch information
adam900710 authored and kdave committed May 28, 2024
1 parent 975ed01 commit 1d80083
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion fs/btrfs/btrfs_inode.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion fs/btrfs/extent_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion fs/btrfs/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion fs/btrfs/locking.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion fs/btrfs/lru_cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d80083

Please sign in to comment.