vdpa_sim_net: Make mac address array static
MAC address array is used only in vdpa_sim_net.c. Hence, keep it static. Signed-off-by: Parav Pandit <parav@nvidia.com> Acked-by: Jason Wang <jasowang@redhat.com> Link: https://lore.kernel.org/r/20210105103203.82508-2-parav@nvidia.com Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
This commit is contained in:
parent
02cc6b495d
commit
4379441260
@ -33,7 +33,7 @@ static char *macaddr;
|
||||
module_param(macaddr, charp, 0);
|
||||
MODULE_PARM_DESC(macaddr, "Ethernet MAC address");
|
||||
|
||||
u8 macaddr_buf[ETH_ALEN];
|
||||
static u8 macaddr_buf[ETH_ALEN];
|
||||
|
||||
static struct vdpasim *vdpasim_net_dev;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user