[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH RFC 04/21] madvise: Include linux/mman.h under linux-headers/
From: |
Dr. David Alan Gilbert |
Subject: |
Re: [PATCH RFC 04/21] madvise: Include linux/mman.h under linux-headers/ |
Date: |
Wed, 18 Jan 2023 12:08:16 +0000 |
User-agent: |
Mutt/2.2.9 (2022-11-12) |
* Peter Xu (peterx@redhat.com) wrote:
> This will allow qemu/madvise.h to always include linux/mman.h under the
> linux-headers/.
>
> Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
> ---
> include/qemu/madvise.h | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/include/qemu/madvise.h b/include/qemu/madvise.h
> index e155f59a0d..b6fa49553f 100644
> --- a/include/qemu/madvise.h
> +++ b/include/qemu/madvise.h
> @@ -8,6 +8,10 @@
> #ifndef QEMU_MADVISE_H
> #define QEMU_MADVISE_H
>
> +#ifdef CONFIG_LINUX
> +#include "linux/mman.h"
> +#endif
> +
> #define QEMU_MADV_INVALID -1
>
> #if defined(CONFIG_MADVISE)
> --
> 2.37.3
>
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
- [PATCH RFC 00/21] migration: Support hugetlb doublemaps, Peter Xu, 2023/01/17
- [PATCH RFC 02/21] util: Include osdep.h first in util/mmap-alloc.c, Peter Xu, 2023/01/17
- [PATCH RFC 03/21] physmem: Add qemu_ram_is_hugetlb(), Peter Xu, 2023/01/17
- [PATCH RFC 04/21] madvise: Include linux/mman.h under linux-headers/, Peter Xu, 2023/01/17
- [PATCH RFC 05/21] madvise: Add QEMU_MADV_SPLIT, Peter Xu, 2023/01/17
- [PATCH RFC 06/21] madvise: Add QEMU_MADV_COLLAPSE, Peter Xu, 2023/01/17
- [PATCH RFC 07/21] ramblock: Cache file offset for file-backed ramblocks, Peter Xu, 2023/01/17
- [PATCH RFC 08/21] ramblock: Cache the length to do file mmap() on ramblocks, Peter Xu, 2023/01/17