Skip to contentSkip to conversation

net/enic: make local variable static

PATCH Applied Stephen Hemminger 2 participants 3 messages Oct 15, 2025 – Oct 21, 2025 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/enic: make local variable static

Avoid global variable name conflicts.

---
 drivers/net/enic/enic_sriov.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/enic/enic_sriov.c +1 -1
index 43072a2287..29faa31512 100644
@@ -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",
Signature · 1 line
2.47.3
Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines

-----Original Message-----
From: Stephen Hemminger <[email protected]>
Sent: Thursday, October 16, 2025 8:11 AM
To: [email protected]
Cc: Stephen Hemminger <[email protected]>; John Daley (johndale) <[email protected]>; Hyong Youb Kim (hyonkim) <[email protected]>
Subject: [PATCH] net/enic: make local variable static

Quoted 3 lines

Avoid global variable name conflicts.

Quoted 19 lines
---
 drivers/net/enic/enic_sriov.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/enic/enic_sriov.c +1 -2
index 43072a2287..29faa31512 100644
@@ -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