diff mbox series

btrfs: remove the recursive include of btrfs_inode.h from itself

Message ID 6165f2c27b4d02fa4f94d8373cd3506e3028fc71.1714105096.git.wqu@suse.com (mailing list archive)
State New, archived
Headers show
Series btrfs: remove the recursive include of btrfs_inode.h from itself | expand

Commit Message

Qu Wenruo April 26, 2024, 4:18 a.m. UTC
Inside btrfs_inode.h we include itself, although it's not causing any
problem, it's still being reported by clangd, and is really unnecessary.

Just remove the recursive include.

Signed-off-by: Qu Wenruo <wqu@suse.com>
---
 fs/btrfs/btrfs_inode.h | 1 -
 1 file changed, 1 deletion(-)

Comments

David Sterba May 2, 2024, 3:04 p.m. UTC | #1
On Fri, Apr 26, 2024 at 01:48:27PM +0930, Qu Wenruo wrote:
> Inside btrfs_inode.h we include itself, although it's not causing any
> problem, it's still being reported by clangd, and is really unnecessary.
> 
> Just remove the recursive include.

For obvious changes like that you don't need to explain it that much.

> Signed-off-by: Qu Wenruo <wqu@suse.com>

Reviewed-by: David Sterba <dsterba@suse.com>
diff mbox series

Patch

diff --git a/fs/btrfs/btrfs_inode.h b/fs/btrfs/btrfs_inode.h
index 91c994b569f3..de918d89a582 100644
--- a/fs/btrfs/btrfs_inode.h
+++ b/fs/btrfs/btrfs_inode.h
@@ -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"