Skip to content

Commit

Permalink
vdpa_sim_net: Make mac address array static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Parav Pandit authored and Michael S. Tsirkin committed Feb 23, 2021
1 parent 02cc6b4 commit 4379441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/vdpa/vdpa_sim/vdpa_sim_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 4379441

Please sign in to comment.