Maintainers: "Michael S. Tsirkin" <mst@redhat.com>, Christian Schoenebeck <qemu_oss@crudebyte.com>, Stefano Stabellini <sstabellini@kernel.org>, Greg Kurz <groug@kaod.org>, Paul Durrant <paul@xen.org>, Anthony Perard <anthony.perard@citrix.com>
[PULL 1/5] 9pfs: include linux/limits.h for XATTR_SIZE_MAX
Posted by
Greg Kurz
5 years, 5 months ago
From: Dan Robertson <dan@dlrobertson.com>
linux/limits.h should be included for the XATTR_SIZE_MAX definition used
by v9fs_xattrcreate.
Fixes: 3b79ef2cf488 ("9pfs: limit xattr size in xattrcreate")
Signed-off-by: Dan Robertson <dan@dlrobertson.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Message-Id: <20200515203015.7090-2-dan@dlrobertson.com>
Signed-off-by: Greg Kurz <groug@kaod.org>
---
hw/9pfs/9p.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/9pfs/9p.c b/hw/9pfs/9p.c
index a2a14b59793c..68c2df7333f9 100644
--- a/hw/9pfs/9p.c
+++ b/hw/9pfs/9p.c
@@ -28,6 +28,7 @@
#include "sysemu/qtest.h"
#include "qemu/xxhash.h"
#include <math.h>
+#include <linux/limits.h>
int open_fd_hw;
int total_open_fd;
--
2.21.3
[PULL 1/5] 9pfs: include linux/limits.h for XATTR_SIZE_MAX