From: Paolo Bonzini <pbonzini@redhat.com>
To: Fam Zheng <famz@redhat.com>, qemu-devel@nongnu.org
Cc: Peter Maydell <peter.maydell@linaro.org>
Subject: Re: [Qemu-devel] [PATCH] modules: Fix building with --enable-modules
Date: Wed, 26 Feb 2014 11:25:29 +0100 [thread overview]
Message-ID: <530DC119.3010802@redhat.com> (raw)
In-Reply-To: <1393394204-16632-1-git-send-email-famz@redhat.com>
Il 26/02/2014 06:56, Fam Zheng ha scritto:
> Compiling util/modules.c with modules enabled fails now.
>
> Fix it by:
>
> 1) Add "#define CONFIG_MODULES" with --enable-modules
>
> 2) Include qemu-common.h before #ifdef testing in module.c.
>
> Signed-off-by: Fam Zheng <famz@redhat.com>
> ---
> scripts/create_config | 3 +++
> util/module.c | 2 +-
> 2 files changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/scripts/create_config b/scripts/create_config
> index 546f889..a0654c6 100755
> --- a/scripts/create_config
> +++ b/scripts/create_config
> @@ -30,6 +30,9 @@ case $line in
> value=${line#*=}
> echo "#define CONFIG_IASL $value"
> ;;
> + CONFIG_MODULES=y)
> + echo "#define CONFIG_MODULES 1"
> + ;;
Not needed:
CONFIG_*=y) # configuration
name=${line%=*}
echo "#define $name 1"
;;
Paolo
> CONFIG_AUDIO_DRIVERS=*)
> drivers=${line#*=}
> echo "#define CONFIG_AUDIO_DRIVERS \\"
> diff --git a/util/module.c b/util/module.c
> index dc08c16..863a8a3 100644
> --- a/util/module.c
> +++ b/util/module.c
> @@ -14,10 +14,10 @@
> */
>
> #include <stdlib.h>
> +#include "qemu-common.h"
> #ifdef CONFIG_MODULES
> #include <gmodule.h>
> #endif
> -#include "qemu-common.h"
> #include "qemu/queue.h"
> #include "qemu/module.h"
>
>
prev parent reply other threads:[~2014-02-26 10:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-26 5:56 [Qemu-devel] [PATCH] modules: Fix building with --enable-modules Fam Zheng
2014-02-26 6:19 ` Hu Tao
2014-02-26 10:25 ` Paolo Bonzini [this message]
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=530DC119.3010802@redhat.com \
--to=pbonzini@redhat.com \
--cc=famz@redhat.com \
--cc=peter.maydell@linaro.org \
--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.