From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Josh Boyer <jwboyer@gmail.com>
Cc: linux-kernel@vger.kernel.org, xen-devel@lists.xensource.com,
mingo@kernel.org, suresh.b.siddha@intel.com, mlin@ss.pku.edu.cn
Subject: Re: [GIT PULL] stable/for-ingo-v3.5 of IOAPIC abstraction (and then some users) for v3.5
Date: Tue, 1 May 2012 16:26:40 -0400 [thread overview]
Message-ID: <20120501202640.GB16209@phenom.dumpdata.com> (raw)
In-Reply-To: <CA+5PVA4OorzAkkBe+PayPPHa1k7=X6Y0ALg=jRWLyKxabAPpiw@mail.gmail.com>
On Tue, May 01, 2012 at 04:08:19PM -0400, Josh Boyer wrote:
> On Tue, May 1, 2012 at 3:42 PM, Konrad Rzeszutek Wilk
> <konrad.wilk@oracle.com> wrote:
> > -static void __init __ioapic_init_mappings(void)
> > +void __init native_io_apic_init_mappings(void)
> > {
> > unsigned long ioapic_phys, idx = FIX_IO_APIC_BASE_0;
> > struct resource *ioapic_res;
> > diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
> > index 1a29015..8526317 100644
> > --- a/arch/x86/kernel/setup.c
> > +++ b/arch/x86/kernel/setup.c
> > @@ -1012,7 +1012,7 @@ void __init setup_arch(char **cmdline_p)
> > init_cpu_to_node();
> >
> > init_apic_mappings();
> > - ioapic_and_gsi_init();
> > + x86_io_apic_ops.init();
> >
> > kvm_guest_init();
> >
> > diff --git a/arch/x86/kernel/x86_init.c b/arch/x86/kernel/x86_init.c
> > index 9cf71d0..35c5e54 100644
> > --- a/arch/x86/kernel/x86_init.c
> > +++ b/arch/x86/kernel/x86_init.c
> > @@ -18,6 +18,7 @@
> > #include <asm/e820.h>
> > #include <asm/time.h>
> > #include <asm/irq.h>
> > +#include <asm/io_apic.h>
> > #include <asm/pat.h>
> > #include <asm/tsc.h>
> > #include <asm/iommu.h>
> > @@ -119,3 +120,10 @@ struct x86_msi_ops x86_msi = {
> > .teardown_msi_irqs = default_teardown_msi_irqs,
> > .restore_msi_irqs = default_restore_msi_irqs,
> > };
> > +
> > +struct x86_io_apic_ops x86_io_apic_ops = {
> > + .init = native_io_apic_init_mappings,
> > + .read = native_io_apic_read,
> > + .write = native_io_apic_write,
> > + .modify = native_io_apic_modify,
> > +};
>
> You'll get a section mismatch warning on this struct. It's not a huge
> deal, but native_io_apic_init_mappings is annotated as __init whereas
> this struct isn't. In practice it doesn't seem to matter as
> x86_io_apic_ops.init is only called in setup_arch, but it's still a
> valid warning.
I think that the mismatch disappears if the structure has the word
_ops in it. At least that is what I saw (when I ran with the MODULE_SECTION=y
with the initial implementation of this and then fixed it up).
However, let me double check - I might have seen that with something
else and misremebered it.
>
> (First noticed in https://bugzilla.redhat.com/show_bug.cgi?id=817645 )
>
> josh
next prev parent reply other threads:[~2012-05-01 20:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-01 19:42 Konrad Rzeszutek Wilk
2012-05-01 20:08 ` Josh Boyer
2012-05-01 20:26 ` Konrad Rzeszutek Wilk [this message]
2012-05-01 20:44 ` Josh Boyer
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=20120501202640.GB16209@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=jwboyer@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=mlin@ss.pku.edu.cn \
--cc=suresh.b.siddha@intel.com \
--cc=xen-devel@lists.xensource.com \
/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
all inboxes | Powered by JetHome®