summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2018-04-19 08:30:50 +0300
committerDavid S. Miller <davem@davemloft.net>2018-04-19 23:33:20 +0300
commitf4ee703ace847f299da00944d57db7ff91786d0b (patch)
treea2dd2611ad8a57f63f3a4c7cad5d15b6d7e41322
parentd7fad4c840f33a6bd333dd7fbb3006edbcf0017a (diff)
downloadlinux-f4ee703ace847f299da00944d57db7ff91786d0b.tar.xz
virtio_net: sparse annotation fix
offloads is a buffer in virtio format, should use the __virtio64 tag. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Jason Wang <jasowang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/virtio_net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index 16b0c7db431b..770422e953f7 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -155,7 +155,7 @@ struct control_buf {
u8 promisc;
u8 allmulti;
__virtio16 vid;
- u64 offloads;
+ __virtio64 offloads;
};
struct virtnet_info {