From: stephen hemminger Date: Fri, 3 May 2013 14:49:41 +0000 (+0000) Subject: virtio: don't expose u16 in userspace api X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=77d21f23a1e4db8639e3916547c903a3b3c7a07c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git virtio: don't expose u16 in userspace api Programs using virtio headers outside of kernel will no longer build because u16 type does not exist in userspace. All user ABI must use __u16 typedef instead. Bug introduce by: commit 986a4f4d452dec004697f667439d27c3fda9c928 Author: Jason Wang Date: Fri Dec 7 07:04:56 2012 +0000 virtio_net: multiqueue support Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller --- diff --git a/include/uapi/linux/virtio_net.h b/include/uapi/linux/virtio_net.h index a5a8c88753b9..c520203fac2f 100644 --- a/include/uapi/linux/virtio_net.h +++ b/include/uapi/linux/virtio_net.h @@ -191,7 +191,7 @@ struct virtio_net_ctrl_mac { * specified. */ struct virtio_net_ctrl_mq { - u16 virtqueue_pairs; + __u16 virtqueue_pairs; }; #define VIRTIO_NET_CTRL_MQ 4