[PATCH] bcachefs: Remove duplicate included headers

Thorsten Blum posted 1 patch 1 year, 5 months ago
There is a newer version of this series
fs/bcachefs/bcachefs_format.h | 2 --
1 file changed, 2 deletions(-)
[PATCH] bcachefs: Remove duplicate included headers
Posted by Thorsten Blum 1 year, 5 months ago
The header files dirent_format.h and disk_groups_format.h are included
twice. Remove the redundant includes and the following warnings reported
by make includecheck:

  disk_groups_format.h is included more than once
  dirent_format.h is included more than once

Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
---
 fs/bcachefs/bcachefs_format.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/fs/bcachefs/bcachefs_format.h b/fs/bcachefs/bcachefs_format.h
index 14ce726bf5a3..b97fd0f75831 100644
--- a/fs/bcachefs/bcachefs_format.h
+++ b/fs/bcachefs/bcachefs_format.h
@@ -499,8 +499,6 @@ struct bch_sb_field {
 #include "disk_groups_format.h"
 #include "extents_format.h"
 #include "ec_format.h"
-#include "dirent_format.h"
-#include "disk_groups_format.h"
 #include "inode_format.h"
 #include "journal_seq_blacklist_format.h"
 #include "logged_ops_format.h"
-- 
2.46.0
Re: [PATCH] bcachefs: Remove duplicate included headers
Posted by Hongbo Li 1 year, 5 months ago

On 2024/8/29 23:49, Thorsten Blum wrote:
> The header files dirent_format.h and disk_groups_format.h are included
> twice. Remove the redundant includes and the following warnings reported
> by make includecheck:
> 
>    disk_groups_format.h is included more than once
>    dirent_format.h is included more than once
> 
> Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
> ---
>   fs/bcachefs/bcachefs_format.h | 2 --
>   1 file changed, 2 deletions(-)
> 
> diff --git a/fs/bcachefs/bcachefs_format.h b/fs/bcachefs/bcachefs_format.h
> index 14ce726bf5a3..b97fd0f75831 100644
> --- a/fs/bcachefs/bcachefs_format.h
> +++ b/fs/bcachefs/bcachefs_format.h
> @@ -499,8 +499,6 @@ struct bch_sb_field {
>   #include "disk_groups_format.h"
>   #include "extents_format.h"
>   #include "ec_format.h"
> -#include "dirent_format.h"
> -#include "disk_groups_format.h"

line 497 and line 499.

Reviewed-by: Hongbo Li <lihongbo22@huawei.com>


>   #include "inode_format.h"
>   #include "journal_seq_blacklist_format.h"
>   #include "logged_ops_format.h"