virtio_net: sparse annotation fix
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 19 Apr 2018 05:30:50 +0000 (08:30 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Apr 2018 20:33:20 +0000 (16:33 -0400)
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>
drivers/net/virtio_net.c

index 16b0c7db431bb09f5a24d540391d3bb16c9f2c9f..770422e953f75e1e9a1bb3a317d83f8070e6ae36 100644 (file)
@@ -155,7 +155,7 @@ struct control_buf {
        u8 promisc;
        u8 allmulti;
        __virtio16 vid;
-       u64 offloads;
+       __virtio64 offloads;
 };
 
 struct virtnet_info {