[PATCH] net/enic: make local variable static

Hyong Youb Kim (hyonkim) hyonkim at cisco.com
Thu Oct 16 06:46:28 CEST 2025


> -----Original Message-----
> From: Stephen Hemminger <stephen at networkplumber.org>
> Sent: Thursday, October 16, 2025 8:11 AM
> To: dev at dpdk.org
> Cc: Stephen Hemminger <stephen at networkplumber.org>; John Daley
> (johndale) <johndale at cisco.com>; Hyong Youb Kim (hyonkim)
> <hyonkim at cisco.com>
> Subject: [PATCH] net/enic: make local variable static
> 
> Avoid global variable name conflicts.
> 
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>

Acked-by: Hyong Youb Kim <hyonkim at cisco.com>

> ---
>  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