From 623682be278f2d7b9eb2a7533d321b930fa3f4f2 Mon Sep 17 00:00:00 2001 From: Marc Zyngier Date: Mon, 4 Mar 2013 06:27:31 +0000 Subject: [PATCH] kvm tools: 9p: fix compilation broken by new stat structures Commit 447c50943fd0 ("9p: Modify the stat structures to use kuid_t and kgid_t") broke the 9p backend by introducing the k{u,g}id_t types, which aren't currently in scope. Just fix the damn thing by including linux/uidgid.h. Signed-off-by: Marc Zyngier Signed-off-by: Will Deacon Signed-off-by: Pekka Enberg --- virtio/9p-pdu.c | 1 + virtio/9p.c | 1 + 2 files changed, 2 insertions(+) diff --git a/virtio/9p-pdu.c b/virtio/9p-pdu.c index b9ce8ce..9e95f3b 100644 --- a/virtio/9p-pdu.c +++ b/virtio/9p-pdu.c @@ -5,6 +5,7 @@ #include #include +#include #include static void virtio_p9_pdu_read(struct p9_pdu *pdu, void *data, size_t size) diff --git a/virtio/9p.c b/virtio/9p.c index 60865dd..b7a5723 100644 --- a/virtio/9p.c +++ b/virtio/9p.c @@ -18,6 +18,7 @@ #include #include +#include #include static LIST_HEAD(devs);