[<prev] [next>] [day] [month] [year] [list]
Message-ID: <alpine.LFD.2.00.1005171004500.3368@localhost.localdomain>
Date: Mon, 17 May 2010 10:07:05 +0200 (CEST)
From: Thomas Gleixner <tglx@...utronix.de>
To: Feng Tang <feng.tang@...el.com>
cc: Ingo Molnar <mingo@...e.hu>, "H.Peter Anvin" <hpa@...or.com>,
"Brown, Len" <len.brown@...el.com>,
LKML <linux-kernel@...r.kernel.org>,
"Pan, Jacob jun" <jacob.jun.pan@...el.com>,
Alan Cox <alan@...rguk.ukuu.org.uk>
Subject: Re: [PATCH] x86: unify current 3 similar ways of saving IRQ info
On Mon, 17 May 2010, Feng Tang wrote:
>
> -static void __init assign_to_mp_irq(struct mpc_intsrc *m,
Why are you removing __init ?
> +static void assign_to_mp_irq(struct mpc_intsrc *m,
> struct mpc_intsrc *mp_irq)
> {
> mp_irq->dstapic = m->dstapic;
> @@ -190,7 +190,7 @@ static void __init assign_to_mpc_intsrc(struct mpc_intsrc *mp_irq,
> m->dstirq = mp_irq->dstirq;
> }
>
> -static int __init mp_irq_mpc_intsrc_cmp(struct mpc_intsrc *mp_irq,
> +static int mp_irq_mpc_intsrc_cmp(struct mpc_intsrc *mp_irq,
> struct mpc_intsrc *m)
Ditto
> {
> if (mp_irq->dstapic != m->dstapic)
> @@ -211,7 +211,8 @@ static int __init mp_irq_mpc_intsrc_cmp(struct mpc_intsrc *mp_irq,
> return 0;
> }
>
> -static void __init MP_intsrc_info(struct mpc_intsrc *m)
> +/* Will also be called in acpi/sfi related code */
> +void mp_save_irq(struct mpc_intsrc *m)
Again, this code is called from __init context only and should stay
__init.
Thanks,
tglx
--
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