[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/1] 9pfs: include linux/limits.h for XATTR_SIZE_MAX
From: |
Christian Schoenebeck |
Subject: |
Re: [PATCH 1/1] 9pfs: include linux/limits.h for XATTR_SIZE_MAX |
Date: |
Sat, 16 May 2020 12:28:16 +0200 |
On Freitag, 15. Mai 2020 22:30:15 CEST Dan Robertson wrote:
> linux/limits.h should be included for the XATTR_SIZE_MAX definition used
> by v9fs_xattrcreate.
>
> Signed-off-by: Dan Robertson <address@hidden>
> ---
> hw/9pfs/9p.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/hw/9pfs/9p.c b/hw/9pfs/9p.c
> index a2a14b5979..68c2df7333 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;
Usually I would say that should be wrapped in some OS conditional way, but as
usage of XATTR_SIZE_MAX is currently not in 9p code either, it's Ok for now.
Reviewed-by: Christian Schoenebeck <address@hidden>
Best regards,
Christian Schoenebeck