[PATCH] net/enic: make local variable static
Stephen Hemminger
stephen at networkplumber.org
Thu Oct 16 01:11:06 CEST 2025
Avoid global variable name conflicts.
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
drivers/net/enic/enic_sriov.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/enic/enic_sriov.c b/drivers/net/enic/enic_sriov.c
index 43072a2287..29faa31512 100644
--- a/drivers/net/enic/enic_sriov.c
+++ b/drivers/net/enic/enic_sriov.c
@@ -13,7 +13,7 @@ static int enic_check_chan_capability(struct enic *enic);
static int enic_register_vf(struct enic *enic);
static void enic_unregister_vf(struct enic *enic);
-const char *msg_type_str[ENIC_MBOX_MAX] = {
+static const char *msg_type_str[ENIC_MBOX_MAX] = {
"VF_CAPABILITY_REQUEST",
"VF_CAPABILITY_REPLY",
"VF_REGISTER_REQUEST",
--
2.47.3
More information about the dev
mailing list