Skip to contentSkip to conversation

compile error with edac_mce_amd.c as module

BUG Steven Rostedt 2 participants 2 messages Sep 15, 2009 – Sep 16, 2009

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 6 lines · Steven Rostedt

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!

Quoted 8 lines

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

Signature · 8 lines
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