All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/8] virtio_net: do not export "u16" to userspace
@ 2013-04-01 17:56 Paul Bolle
  0 siblings, 0 replies; only message in thread
From: Paul Bolle @ 2013-04-01 17:56 UTC (permalink / raw)
  To: Jason Wang, Krishna Kumar, David S. Miller; +Cc: linux-kernel

Building the lguest (userspace) tool fails with this error:
    In file included from lguest.c:46:0:
    /usr/include/linux/virtio_net.h:188:2: error: unknown type name ‘u16’
    make: *** [lguest] Error 1

virtio_net.h exports "u16" to userspace. Use "__u16" instead of "u16".

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
---
"u16" was added here in commit 986a4f4d452dec004697f667439d27c3fda9c928
("virtio_net: multiqueue support"). That commit was shipped in v3.8. So
if this patch ends up in the tree it should also be sent to stable.

 include/uapi/linux/virtio_net.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/virtio_net.h b/include/uapi/linux/virtio_net.h
index a5a8c88..c520203 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
-- 
1.7.11.7


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-04-01 17:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-01 17:56 [PATCH 1/8] virtio_net: do not export "u16" to userspace Paul Bolle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.