From: Zhao Weibo zhaoweibo3@huawei.com
driver inclusion category: cleanup bugzilla: NA CVE: NA
-----------------------------------------
There is a useless header in hns_roce_cmd.c.Remove it. There is missing space in hns_roce_hw_v2.h and rdfx_common.h.
Reviewed-by: Hu Chunzhi huchunzhi@huawei.com Signed-off-by: Zhao Weibo zhaoweibo3@huawei.com Signed-off-by: Yang Yingliang yangyingliang@huawei.com --- drivers/infiniband/hw/hns/hns_roce_cmd.c | 1 - drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 2 +- drivers/infiniband/hw/hns/roce-customer/rdfx_common.h | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/infiniband/hw/hns/hns_roce_cmd.c b/drivers/infiniband/hw/hns/hns_roce_cmd.c index 0569e2f..dc2c4ec 100644 --- a/drivers/infiniband/hw/hns/hns_roce_cmd.c +++ b/drivers/infiniband/hw/hns/hns_roce_cmd.c @@ -32,7 +32,6 @@
#include <linux/dmapool.h> #include <linux/platform_device.h> -#include "hns_roce_common.h" #include "hns_roce_device.h" #include "hns_roce_cmd.h"
diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.h b/drivers/infiniband/hw/hns/hns_roce_hw_v2.h index d9d3752..ba81aa6 100644 --- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.h +++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.h @@ -497,7 +497,7 @@ struct hns_roce_srq_context { #define SRQC_BYTE_60_SRQ_DB_RECORD_ADDR_S 1 #define SRQC_BYTE_60_SRQ_DB_RECORD_ADDR_M GENMASK(31, 1)
-enum{ +enum { V2_MPT_ST_VALID = 0x1, V2_MPT_ST_FREE = 0x2, }; diff --git a/drivers/infiniband/hw/hns/roce-customer/rdfx_common.h b/drivers/infiniband/hw/hns/roce-customer/rdfx_common.h index a7181b2..589888e 100644 --- a/drivers/infiniband/hw/hns/roce-customer/rdfx_common.h +++ b/drivers/infiniband/hw/hns/roce-customer/rdfx_common.h @@ -36,7 +36,7 @@ struct rdfx_hw_sys_attr {
#define HW_ATTRS_LIST_MEMBER(file_name)(&g_sysfs_roce_##file_name##_attr.attr)
-enum{ +enum { RECV_RDMA_WITH_IMM, RECV_SEND, RECV_SEND_WITH_IMM,