From: Thomas Huth <thuth@redhat.com>
To: Miroslav Rezanina <mrezanin@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] parallel: Allow to disable CONFIG_PARALLEL
Date: Tue, 5 May 2015 12:32:37 +0200 [thread overview]
Message-ID: <20150505123237.2dc75cdf@thh440s> (raw)
In-Reply-To: <20150505101805.GB2689@lws.brq.redhat.com>
On Tue, 5 May 2015 12:18:05 +0200
Miroslav Rezanina <mrezanin@redhat.com> wrote:
> On Tue, May 05, 2015 at 11:59:50AM +0200, Thomas Huth wrote:
> > On Tue, 5 May 2015 11:30:49 +0200
> > mrezanin@redhat.com wrote:
> >
> > > From: Miroslav Rezanina <mrezanin@redhat.com>
> > >
> > > Disabling CONFIG_PARALLEL cause build failure as commit 07dc788 factored
> > > out initialization to parallel_hds_isa_init that is not build.
> > >
> > > Make calling parallel_hds_isa_init depending on CONFIG_PARALLEL so it can
> > > be correctly disabled.
> > >
> > > Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
> > > ---
> > > hw/i386/pc.c | 2 ++
> > > hw/mips/mips_fulong2e.c | 2 ++
> > > hw/mips/mips_malta.c | 2 ++
> > > hw/sparc64/sun4u.c | 2 ++
> > > 4 files changed, 8 insertions(+)
> > >
> > > diff --git a/hw/i386/pc.c b/hw/i386/pc.c
> > > index a8e6be1..560464e 100644
> > > --- a/hw/i386/pc.c
> > > +++ b/hw/i386/pc.c
> > > @@ -1465,7 +1465,9 @@ void pc_basic_device_init(ISABus *isa_bus, qemu_irq *gsi,
> > > }
> > >
> > > serial_hds_isa_init(isa_bus, MAX_SERIAL_PORTS);
> > > +#ifdef CONFIG_PARALLEL
> > > parallel_hds_isa_init(isa_bus, MAX_PARALLEL_PORTS);
> > > +#endif
> >
> > Not sure, but is this pre-processor macro really defined if
> > CONFIG_PARALLEL has been set in the makefile? I've hit some similar
> > problem in the past and I had to discover that only the CONFIG_*
> > options from config-host.mak get translated into #defines, all the
> > others don't get translated. I might be wrong, but just to be sure,
> > could you please double-check that CONFIG_PARALLEL is #defined if it's
> > enabled in the .mak file?
> >
>
> Yeah, you're right..I switch the behavior so thought of CONFIG_* from
> config-host.mak to be the one to not translated. And ifdef masked the
> issue.
>
> This patch is not working and has to be redone.
>
> > If not: Where does the build break exactly? Does it fail for all three
> > types, i386, mips and sun?
> >
>
> I can't test mips/sun build but for i386 it fails on linking where
> parallel_hds_isa_init does not exists.
That's strange, there is a CONFIG_PARALLEL=y in both,
default-configs/x86_64-softmmu.mak and i386-softmmu.mak so I wonder
why the parallel.o object file is not linked in your case?
Thomas
next prev parent reply other threads:[~2015-05-05 10:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-05 9:30 [Qemu-devel] [PATCH] parallel: Allow to disable CONFIG_PARALLEL mrezanin
2015-05-05 9:59 ` Thomas Huth
2015-05-05 10:18 ` Miroslav Rezanina
2015-05-05 10:32 ` Thomas Huth [this message]
2015-05-05 10:42 ` Miroslav Rezanina
2015-05-05 14:37 ` Markus Armbruster
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=20150505123237.2dc75cdf@thh440s \
--to=thuth@redhat.com \
--cc=mrezanin@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).