[2/2] xfs: Remove duplicate include

Message ID 20240228035612.25396-2-jiapeng.chong@linux.alibaba.com
State New
Headers
Series [1/2] xfs: Remove duplicate include |

Commit Message

Jiapeng Chong Feb. 28, 2024, 3:56 a.m. UTC
  /fs/xfs/xfs_trace.c: xfs_bmap.h is included more than once.

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

Comments

Darrick J. Wong Feb. 28, 2024, 4:02 a.m. UTC | #1
On Wed, Feb 28, 2024 at 11:56:12AM +0800, Jiapeng Chong wrote:
> ./fs/xfs/xfs_trace.c: xfs_bmap.h is included more than once.
> 
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8385
> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
> ---
>  fs/xfs/xfs_trace.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/fs/xfs/xfs_trace.c b/fs/xfs/xfs_trace.c
> index 1a963382e5e9..23e906b60f21 100644
> --- a/fs/xfs/xfs_trace.c
> +++ b/fs/xfs/xfs_trace.c
> @@ -17,7 +17,6 @@
>  #include "xfs_btree.h"
>  #include "xfs_da_btree.h"
>  #include "xfs_alloc.h"
> -#include "xfs_bmap.h"

Shouldn't this remove the second #include?

--D

>  #include "xfs_attr.h"
>  #include "xfs_trans.h"
>  #include "xfs_log.h"
> -- 
> 2.20.1.7.g153144c
> 
>
  

Patch

diff --git a/fs/xfs/xfs_trace.c b/fs/xfs/xfs_trace.c
index 1a963382e5e9..23e906b60f21 100644
--- a/fs/xfs/xfs_trace.c
+++ b/fs/xfs/xfs_trace.c
@@ -17,7 +17,6 @@ 
 #include "xfs_btree.h"
 #include "xfs_da_btree.h"
 #include "xfs_alloc.h"
-#include "xfs_bmap.h"
 #include "xfs_attr.h"
 #include "xfs_trans.h"
 #include "xfs_log.h"