[tip:tools/kvm] kvm tools: 9p: fix compilation broken by new stat structures

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Commit-ID:  f44f0142c01003385d2af394121858fb398e5368
Gitweb:     http://git.kernel.org/tip/f44f0142c01003385d2af394121858fb398e5368
Author:     Marc Zyngier <marc.zyngier@xxxxxxx>
AuthorDate: Mon, 4 Mar 2013 06:27:31 +0000
Committer:  Pekka Enberg <penberg@xxxxxxxxxx>
CommitDate: Wed, 3 Apr 2013 15:54:20 +0300

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 <marc.zyngier@xxxxxxx>
Signed-off-by: Will Deacon <will.deacon@xxxxxxx>
Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxx>
---
 tools/kvm/virtio/9p-pdu.c | 1 +
 tools/kvm/virtio/9p.c     | 1 +
 2 files changed, 2 insertions(+)

diff --git a/tools/kvm/virtio/9p-pdu.c b/tools/kvm/virtio/9p-pdu.c
index b9ce8ce..9e95f3b 100644
--- a/tools/kvm/virtio/9p-pdu.c
+++ b/tools/kvm/virtio/9p-pdu.c
@@ -5,6 +5,7 @@
 #include <stdint.h>
 
 #include <linux/compiler.h>
+#include <linux/uidgid.h>
 #include <net/9p/9p.h>
 
 static void virtio_p9_pdu_read(struct p9_pdu *pdu, void *data, size_t size)
diff --git a/tools/kvm/virtio/9p.c b/tools/kvm/virtio/9p.c
index 60865dd..b7a5723 100644
--- a/tools/kvm/virtio/9p.c
+++ b/tools/kvm/virtio/9p.c
@@ -18,6 +18,7 @@
 
 #include <linux/virtio_ring.h>
 #include <linux/virtio_9p.h>
+#include <linux/uidgid.h>
 #include <net/9p/9p.h>
 
 static LIST_HEAD(devs);
--
To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Stable Commits]     [Linux Stable Kernel]     [Linux Kernel]     [Linux USB Devel]     [Linux Video &Media]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux