[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <49133E11.8050607@goop.org>
Date: Thu, 06 Nov 2008 10:57:21 -0800
From: Jeremy Fitzhardinge <jeremy@...p.org>
To: Takashi Iwai <tiwai@...e.de>
CC: Tony Luck <tony.luck@...el.com>,
Isaku Yamahata <yamahata@...inux.co.jp>,
linux-kernel@...r.kernel.org, Sam Ravnborg <sam@...nborg.org>
Subject: Re: [PATCH] Fix section type conflict in arch/ia64/xen/xen_pv_ops.c
Takashi Iwai wrote:
> __initdata and const cannot be always a happy pair, as gcc-4.3.3 gives
> the compile errors like:
>
> arch/ia64/xen/xen_pv_ops.c:156: error: xen_init_ops causes a section type conflict
> arch/ia64/xen/xen_pv_ops.c:340: error: xen_iosapic_ops causes a section type conflict
>
> This patch simply removes const from data with __initdata.
>
Yeah, I've seen these sort of messages before, but I don't see why
there's an inherent problem with having const __initdata.
Sam?
J
> Signed-off-by: Takashi Iwai <tiwai@...e.de>
>
> ---
> diff --git a/arch/ia64/xen/xen_pv_ops.c b/arch/ia64/xen/xen_pv_ops.c
> index 04cd123..5d491d9 100644
> --- a/arch/ia64/xen/xen_pv_ops.c
> +++ b/arch/ia64/xen/xen_pv_ops.c
> @@ -153,7 +153,7 @@ xen_post_smp_prepare_boot_cpu(void)
> xen_setup_vcpu_info_placement();
> }
>
> -static const struct pv_init_ops xen_init_ops __initdata = {
> +static struct pv_init_ops xen_init_ops __initdata = {
> .banner = xen_banner,
>
> .reserve_memory = xen_reserve_memory,
> @@ -260,7 +260,7 @@ xen_intrin_local_irq_restore(unsigned long mask)
> xen_rsm_i();
> }
>
> -static const struct pv_cpu_ops xen_cpu_ops __initdata = {
> +static struct pv_cpu_ops xen_cpu_ops __initdata = {
> .fc = xen_fc,
> .thash = xen_thash,
> .get_cpuid = xen_get_cpuid,
> @@ -337,7 +337,7 @@ xen_iosapic_write(char __iomem *iosapic, unsigned int reg, u32 val)
> HYPERVISOR_physdev_op(PHYSDEVOP_apic_write, &apic_op);
> }
>
> -static const struct pv_iosapic_ops xen_iosapic_ops __initdata = {
> +static struct pv_iosapic_ops xen_iosapic_ops __initdata = {
> .pcat_compat_init = xen_pcat_compat_init,
> .__get_irq_chip = xen_iosapic_get_irq_chip,
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists