Re: [PATCH] vdpa: fix warning casts when building with C=2

2022-10-05 Thread Stefano Garzarella
On Thu, Aug 11, 2022 at 10:47 AM Stefano Garzarella wrote: > > Use __virtio16_to_cpu() to read `max_virtqueue_pairs` field in > virtio_net_config since its type is __virtio16. > > This silences the following warning when building with `make C=2`: > > ../drivers/vdpa/vdpa.c:811:19: warning:

[PATCH] vdpa: fix warning casts when building with C=2

2022-08-11 Thread Stefano Garzarella
Use __virtio16_to_cpu() to read `max_virtqueue_pairs` field in virtio_net_config since its type is __virtio16. This silences the following warning when building with `make C=2`: ../drivers/vdpa/vdpa.c:811:19: warning: cast to restricted __le16 ../drivers/vdpa/vdpa.c:811:19: warning: cast