[-next,v2] RDMA/bnxt_re: Remove duplicated include in bnxt_re/main.c

Message ID 20230626003632.60435-1-yang.lee@linux.alibaba.com
State New
Headers
Series [-next,v2] RDMA/bnxt_re: Remove duplicated include in bnxt_re/main.c |

Commit Message

Yang Li June 26, 2023, 12:36 a.m. UTC
  ./drivers/infiniband/hw/bnxt_re/main.c: ib_verbs.h is included more than once.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5588
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---

--change in v2:
add a more appropriate subject.

 drivers/infiniband/hw/bnxt_re/main.c | 1 -
 1 file changed, 1 deletion(-)
  

Comments

Selvin Xavier June 26, 2023, 3:28 a.m. UTC | #1
On Mon, Jun 26, 2023 at 6:06 AM Yang Li <yang.lee@linux.alibaba.com> wrote:
>
> ./drivers/infiniband/hw/bnxt_re/main.c: ib_verbs.h is included more than once.
>
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5588
> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Acked-by: Selvin Xavier <selvin.xavier@broadcom.com>

Thanks,
Selvin
> ---
>
> --change in v2:
> add a more appropriate subject.
>
>  drivers/infiniband/hw/bnxt_re/main.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/drivers/infiniband/hw/bnxt_re/main.c b/drivers/infiniband/hw/bnxt_re/main.c
> index 1e5b60f9269e..b42166fe7454 100644
> --- a/drivers/infiniband/hw/bnxt_re/main.c
> +++ b/drivers/infiniband/hw/bnxt_re/main.c
> @@ -66,7 +66,6 @@
>  #include <rdma/bnxt_re-abi.h>
>  #include "bnxt.h"
>  #include "hw_counters.h"
> -#include "ib_verbs.h"
>
>  static char version[] =
>                 BNXT_RE_DESC "\n";
> --
> 2.20.1.7.g153144c
>
  
Jason Gunthorpe June 26, 2023, 2:03 p.m. UTC | #2
On Mon, Jun 26, 2023 at 08:36:32AM +0800, Yang Li wrote:
> ./drivers/infiniband/hw/bnxt_re/main.c: ib_verbs.h is included more than once.
> 
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5588
> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
> Acked-by: Selvin Xavier <selvin.xavier@broadcom.com>
> ---
> 
> --change in v2:
> add a more appropriate subject.
> 
>  drivers/infiniband/hw/bnxt_re/main.c | 1 -
>  1 file changed, 1 deletion(-)

Applied to for-next, thanks

Jason
  

Patch

diff --git a/drivers/infiniband/hw/bnxt_re/main.c b/drivers/infiniband/hw/bnxt_re/main.c
index 1e5b60f9269e..b42166fe7454 100644
--- a/drivers/infiniband/hw/bnxt_re/main.c
+++ b/drivers/infiniband/hw/bnxt_re/main.c
@@ -66,7 +66,6 @@ 
 #include <rdma/bnxt_re-abi.h>
 #include "bnxt.h"
 #include "hw_counters.h"
-#include "ib_verbs.h"
 
 static char version[] =
 		BNXT_RE_DESC "\n";