Commit 8e668a71 authored by Junxian Huang's avatar Junxian Huang Committed by Chengchang Tang
Browse files

RDMA/hns: Fix "Should it be static?" warnings

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IB30V8



----------------------------------------------------------------------

Fix sparse warnings: Should it be static?

Fixes: 41da9cd8 ("RDMA/hns: Support congestion control algorithm parameter configuration")
Signed-off-by: default avatarJunxian Huang <huangjunxian6@hisilicon.com>
Signed-off-by: default avatarXinghai Cen <cenxinghai@h-partners.com>
parent c6d6af3d
Loading
Loading
Loading
Loading
+12 −12
Original line number Diff line number Diff line
@@ -205,7 +205,7 @@ static umode_t scc_attr_is_visible(struct kobject *kobj,
}

#define HNS_PORT_DCQCN_CC_ATTR_RW(_name, NAME)					\
	struct hns_port_cc_attr hns_roce_port_attr_dcqcn_##_name =	\
	static struct hns_port_cc_attr hns_roce_port_attr_dcqcn_##_name =	\
	__HNS_SCC_ATTR(_name, HNS_ROCE_SCC_ALGO_DCQCN,				\
			HNS_ROCE_DCQCN_##NAME##_OFS,				\
			HNS_ROCE_DCQCN_##NAME##_SZ,				\
@@ -245,7 +245,7 @@ static const struct attribute_group dcqcn_cc_param_group = {
};

#define HNS_PORT_LDCP_CC_ATTR_RW(_name, NAME)					\
	struct hns_port_cc_attr hns_roce_port_attr_ldcp_##_name =	\
	static struct hns_port_cc_attr hns_roce_port_attr_ldcp_##_name =	\
	__HNS_SCC_ATTR(_name, HNS_ROCE_SCC_ALGO_LDCP,				\
			HNS_ROCE_LDCP_##NAME##_OFS,				\
			HNS_ROCE_LDCP_##NAME##_SZ,				\
@@ -275,7 +275,7 @@ static const struct attribute_group ldcp_cc_param_group = {
};

#define HNS_PORT_HC3_CC_ATTR_RW(_name, NAME)				\
	struct hns_port_cc_attr hns_roce_port_attr_hc3_##_name =	\
	static struct hns_port_cc_attr hns_roce_port_attr_hc3_##_name =	\
	__HNS_SCC_ATTR(_name, HNS_ROCE_SCC_ALGO_HC3,			\
			HNS_ROCE_HC3_##NAME##_OFS,			\
			HNS_ROCE_HC3_##NAME##_SZ,			\
@@ -309,7 +309,7 @@ static const struct attribute_group hc3_cc_param_group = {
};

#define HNS_PORT_DIP_CC_ATTR_RW(_name, NAME)				\
	struct hns_port_cc_attr hns_roce_port_attr_dip_##_name =	\
	static struct hns_port_cc_attr hns_roce_port_attr_dip_##_name =	\
	__HNS_SCC_ATTR(_name, HNS_ROCE_SCC_ALGO_DIP,			\
			HNS_ROCE_DIP_##NAME##_OFS,			\
			HNS_ROCE_DIP_##NAME##_SZ,			\