Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[BUG] compile error with edac_mce_amd.c as module

13 views
Skip to first unread message

Steven Rostedt

unread,
Sep 15, 2009, 4:00:12 PM9/15/09
to
The file drivers/edac/edac_mce_amd.c references a kernel variable that
is not exported for modules.

ERROR: "per_cpu__cpu_llc_id" [drivers/edac/edac_core.ko] undefined!


The variable in question is located in arch/x86/kernel/smpboot.c

/* Last level cache ID of each logical CPU */
DEFINE_PER_CPU(u16, cpu_llc_id) = BAD_APICID;

and is not exported to modules.

This is from the latest Linus repo. I can supply a config if requested.

-- Steve


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

Borislav Petkov

unread,
Sep 16, 2009, 12:50:06 AM9/16/09
to
On Tue, Sep 15, 2009 at 03:54:39PM -0400, Steven Rostedt wrote:
> The file drivers/edac/edac_mce_amd.c references a kernel variable that
> is not exported for modules.
>
> ERROR: "per_cpu__cpu_llc_id" [drivers/edac/edac_core.ko] undefined!
>
>
> The variable in question is located in arch/x86/kernel/smpboot.c
>
> /* Last level cache ID of each logical CPU */
> DEFINE_PER_CPU(u16, cpu_llc_id) = BAD_APICID;
>
> and is not exported to modules.
>
> This is from the latest Linus repo. I can supply a config if requested.

Sorry for that, proper fix is already there:
http://marc.info/?l=linux-kernel&m=125302459621925

--
Regards/Gruss,
Boris.

Operating | Advanced Micro Devices GmbH
System | Karl-Hammerschmidt-Str. 34, 85609 Dornach b. M�nchen, Germany
Research | Gesch�ftsf�hrer: Andrew Bowd, Thomas M. McCoy, Giuliano Meroni
Center | Sitz: Dornach, Gemeinde Aschheim, Landkreis M�nchen
(OSRC) | Registergericht M�nchen, HRB Nr. 43632

0 new messages