Re: [origin tree build failure] Re: [GIT PULL] AMD64 EDAC updates, p1

From: AmÃrico Wang
Date: Wed Sep 16 2009 - 05:49:23 EST


On Tue, Sep 15, 2009 at 10:59 PM, Borislav Petkov
<borislav.petkov@xxxxxxx> wrote:
> On Tue, Sep 15, 2009 at 04:38:37PM +0200, Jean Delvare wrote:
>> On Tue, 15 Sep 2009 13:09:40 +0200, Ingo Molnar wrote:
>> > -tip testing found this build failure with the attached config:
>> >
>> > drivers/edac/edac_mce_amd.c: In function âdecode_mceâ:
>> > drivers/edac/edac_mce_amd.c:408: error: âper_cpu__cpu_llc_idâ undeclared (first use in this function)
>> > drivers/edac/edac_mce_amd.c:408: error: (Each undeclared identifier is reported only once
>> > drivers/edac/edac_mce_amd.c:408: error: for each function it appears in.)
>> >
>> > I did the patchlet below but this needs a cleaner fix eventually. A
>> > proper node abstraction needs to be factored out and provided as a
>> > facility regardless of config settings.
>> >
>> > Â Â Ingo
>> >
>> > Signed-off-by: Ingo Molnar <mingo@xxxxxxx>
>> > ---
>> > Âdrivers/edac/edac_mce_amd.c | Â Â5 ++++-
>> > Â1 file changed, 4 insertions(+), 1 deletion(-)
>> >
>> > Index: linux2/drivers/edac/edac_mce_amd.c
>> > ===================================================================
>> > --- linux2.orig/drivers/edac/edac_mce_amd.c
>> > +++ linux2/drivers/edac/edac_mce_amd.c
>> > @@ -405,8 +405,11 @@ void decode_mce(struct mce *m)
>> > Â Â Â Â Â Â regs.nbsh Â= (u32)(m->status >> 32);
>> > Â Â Â Â Â Â regs.nbeal = (u32) m->addr;
>> > Â Â Â Â Â Â regs.nbeah = (u32)(m->addr >> 32);
>> > +#ifdef CONFIG_X86_HT
>> >       node    = per_cpu(cpu_llc_id, m->extcpu);
>> > -
>> > +#else
>> > +      node    = 0;
>> > +#endif
>> > Â Â Â Â Â Â amd_decode_nb_mce(node, &regs, 1);
>> > Â Â Â Â Â Â break;
>> >
>>
>> FWIW, this patch doesn't fix the problem for me. Amerigo Wang's does:
>> http://lkml.org/lkml/2009/9/15/64
>
> We'll have an even better fix soon:
> http://marc.info/?l=linux-kernel&m=125302459621925

Yeah, agree.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/