2022-06-08 07:23:39

by Yang Li

[permalink] [raw]
Subject: [PATCH -next] RDMA/erdma: Remove duplicated include in erdma_cm.c

Fix following includecheck warning:
./drivers/infiniband/hw/erdma/erdma_cm.c: linux/inetdevice.h is included more than once.

Reported-by: Abaci Robot <[email protected]>
Signed-off-by: Yang Li <[email protected]>
---
drivers/infiniband/hw/erdma/erdma_cm.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/infiniband/hw/erdma/erdma_cm.c b/drivers/infiniband/hw/erdma/erdma_cm.c
index f97711b3689a..7cc0a99c459e 100644
--- a/drivers/infiniband/hw/erdma/erdma_cm.c
+++ b/drivers/infiniband/hw/erdma/erdma_cm.c
@@ -13,7 +13,6 @@
#include <linux/errno.h>
#include <linux/inetdevice.h>
#include <linux/net.h>
-#include <linux/inetdevice.h>
#include <net/addrconf.h>
#include <linux/tcp.h>
#include <linux/types.h>
--
2.20.1.7.g153144c


2022-06-08 08:36:55

by Cheng Xu

[permalink] [raw]
Subject: Re: [PATCH -next] RDMA/erdma: Remove duplicated include in erdma_cm.c



On 6/8/22 9:04 AM, Yang Li wrote:
> Fix following includecheck warning:
> ./drivers/infiniband/hw/erdma/erdma_cm.c: linux/inetdevice.h is included more than once.
>
> Reported-by: Abaci Robot <[email protected]>
> Signed-off-by: Yang Li <[email protected]>


Reviewed-by: Cheng Xu <[email protected]>

Thanks.