From: "Ján Tomko" <jtomko@redhat.com>
To: Jingqi Liu <jingqi.liu@intel.com>
Cc: qemu-devel@nongnu.org, ehabkost@redhat.com, mst@redhat.com
Subject: Re: [PATCH] util: fix to get configuration macros in util/mmap-alloc.c
Date: Thu, 5 Mar 2020 17:10:47 +0100 [thread overview]
Message-ID: <20200305161047.GB3627464@lpt> (raw)
In-Reply-To: <20200305154142.63070-1-jingqi.liu@intel.com>
[-- Attachment #1: Type: text/plain, Size: 951 bytes --]
On a Thursday in 2020, Jingqi Liu wrote:
>The CONFIG_LINUX symbol is always not defined in this file.
>This fixes that "config-host.h" header file is not included
>for getting macros.
>
>Signed-off-by: Jingqi Liu <jingqi.liu@intel.com>
>---
> util/mmap-alloc.c | 2 ++
> 1 file changed, 2 insertions(+)
>
>diff --git a/util/mmap-alloc.c b/util/mmap-alloc.c
>index 27dcccd8ec..24c0e380f3 100644
>--- a/util/mmap-alloc.c
>+++ b/util/mmap-alloc.c
>@@ -10,6 +10,8 @@
> * later. See the COPYING file in the top-level directory.
> */
>
>+#include "config-host.h"
>+
According to CODING_STYLE.rst, qemu/osdep.h is the header file
that should be included first, before all the other includes.
So the minimal fix would be moving qemu/osdep.h up here.
> #ifdef CONFIG_LINUX
> #include <linux/mman.h>
> #else /* !CONFIG_LINUX */
Introduced by commit 119906afa5ca610adb87c55ab0d8e53c9104bfc3
Jano
>--
>2.17.1
>
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2020-03-05 16:11 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-05 15:41 [PATCH] util: fix to get configuration macros in util/mmap-alloc.c Jingqi Liu
2020-03-05 16:10 ` Ján Tomko [this message]
2020-03-05 16:40 ` Peter Maydell
2020-03-06 4:01 ` Liu, Jingqi
2020-03-09 13:23 ` Liu, Jingqi
2020-03-09 13:35 ` Peter Maydell
2020-03-10 8:58 ` Liu, Jingqi
2020-03-10 9:12 ` Michael S. Tsirkin
2020-03-11 0:43 ` Liu, Jingqi
2020-03-11 12:37 ` Peter Maydell
2020-03-11 20:42 ` Eduardo Habkost
2020-03-06 2:48 ` Liu, Jingqi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200305161047.GB3627464@lpt \
--to=jtomko@redhat.com \
--cc=ehabkost@redhat.com \
--cc=jingqi.liu@intel.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.