Skip to content

Commit

Permalink
virtio_net: sparse annotation fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael S. Tsirkin authored and David S. Miller committed Apr 19, 2018
1 parent d7fad4c commit f4ee703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/virtio_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ struct control_buf {
u8 promisc;
u8 allmulti;
__virtio16 vid;
u64 offloads;
__virtio64 offloads;
};

struct virtnet_info {
Expand Down

0 comments on commit f4ee703

Please sign in to comment.