Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7acd4329 authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller
Browse files

virtio-net: make array guest_offloads static



The array guest_offloads is local to the source and does not need to
be in global scope, so make it static. Also tweak formatting.

Cleans up sparse warnings:
symbol 'guest_offloads' was not declared. Should it be static?

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5a7a8346
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -57,10 +57,12 @@ DECLARE_EWMA(pkt_len, 0, 64)

#define VIRTNET_DRIVER_VERSION "1.0.0"

const unsigned long guest_offloads[] = { VIRTIO_NET_F_GUEST_TSO4,
static const unsigned long guest_offloads[] = {
	VIRTIO_NET_F_GUEST_TSO4,
	VIRTIO_NET_F_GUEST_TSO6,
	VIRTIO_NET_F_GUEST_ECN,
					 VIRTIO_NET_F_GUEST_UFO };
	VIRTIO_NET_F_GUEST_UFO
};

struct virtnet_stats {
	struct u64_stats_sync tx_syncp;