Re: [Linux-ia64] Some Modules fail w/ unresolved cpu_info__per_cpu

From: Christian Cotte-Barrot <Christian.Cotte-Barrot_at_bull.net>
Date: 2003-02-19 22:55:54
"Lee, Jung-Ik" wrote:
> 
> On 2.5.39,
> it fails to insmod some modules that refers to "cpu_info__per_cpu".
> That global IS DEFINE_PER_CPU'd, DECLARE_PER_CPU'd and is in System.map but
> for some reason it fails to resolve.
> Have you guys seen this ?
> 
> thanks
> J.I.
> 

That's an old story but we met the "unresolved symbol cpu_info__per_cpu"
problem again with e100.o and e1000.o modules on a 2.4.45 release.
Looks like the EXPORT_SYMBOL macro has problem to generate the
checksum for symbols defined with *PER_CPU* macros.
The kernel exports the wrong cpu_info__per_cpu_R__ver_cpu_info__per_cpu
symbol where "__ver_cpu_info__per_cpu" should be a checksum ?
Found a cleaner patch than in the past, just replaced
    EXPORT_SYMBOL(cpu_info__per_cpu);
  with
    EXPORT_SYMBOL_NOVERS(cpu_info__per_cpu);
  in
    ./arch/ia64/kernel/ia64_ksyms.c

CCB.
Received on Wed Feb 19 03:55:34 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:12 EST