net/enic: make local variable static
PATCH 1/1 net/enic: make local variable static
Avoid global variable name conflicts.
Signed-off-by Stephen Hemminger <[email protected]>
--- drivers/net/enic/enic_sriov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/enic/enic_sriov.c +1 -1
@@ -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
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.
Signed-off-by Stephen Hemminger <[email protected]>
Acked-by Hyong Youb Kim <[email protected]>
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@@ -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
Stephen Hemminger
AppliedQuoted 3 lines · On Wed, 15 Oct 2025 16:11:06 -0700 Stephen Hemminger…
Avoid global variable name conflicts.
Signed-off-by Stephen Hemminger <[email protected]>
Queued to next-net