[PATCH] xfs: Remove duplicate include

Jiapeng Chong posted 1 patch 2 years, 3 months ago
fs/xfs/scrub/xfile.c | 1 -
1 file changed, 1 deletion(-)
[PATCH] xfs: Remove duplicate include
Posted by Jiapeng Chong 2 years, 3 months ago
./fs/xfs/scrub/xfile.c: xfs_format.h is included more than once.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=6209
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
 fs/xfs/scrub/xfile.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/xfs/scrub/xfile.c b/fs/xfs/scrub/xfile.c
index d98e8e77c684..090c3ead43fd 100644
--- a/fs/xfs/scrub/xfile.c
+++ b/fs/xfs/scrub/xfile.c
@@ -10,7 +10,6 @@
 #include "xfs_log_format.h"
 #include "xfs_trans_resv.h"
 #include "xfs_mount.h"
-#include "xfs_format.h"
 #include "scrub/xfile.h"
 #include "scrub/xfarray.h"
 #include "scrub/scrub.h"
-- 
2.20.1.7.g153144c
Re: [PATCH] xfs: Remove duplicate include
Posted by Darrick J. Wong 2 years, 3 months ago
On Thu, Aug 24, 2023 at 03:47:23PM +0800, Jiapeng Chong wrote:
> ./fs/xfs/scrub/xfile.c: xfs_format.h is included more than once.
> 
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=6209
> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>

Reviewed-by: Darrick J. Wong <djwong@kernel.org>

--D

> ---
>  fs/xfs/scrub/xfile.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/fs/xfs/scrub/xfile.c b/fs/xfs/scrub/xfile.c
> index d98e8e77c684..090c3ead43fd 100644
> --- a/fs/xfs/scrub/xfile.c
> +++ b/fs/xfs/scrub/xfile.c
> @@ -10,7 +10,6 @@
>  #include "xfs_log_format.h"
>  #include "xfs_trans_resv.h"
>  #include "xfs_mount.h"
> -#include "xfs_format.h"
>  #include "scrub/xfile.h"
>  #include "scrub/xfarray.h"
>  #include "scrub/scrub.h"
> -- 
> 2.20.1.7.g153144c
>