Re: Coexistence of EXPORT_SYMBOL() and __cpuinit

2008-02-05 Thread Randy Dunlap
On Mon, 4 Feb 2008 06:13:18 +0100 Sam Ravnborg wrote: > On Mon, Feb 04, 2008 at 09:49:24AM +0800, Peter Teoh wrote: > > In kernel/cpu.c, there exists API that is declared as __cpuinit, and > > at the same time exported via EXPORT_SYMBOL(). > > > > Can these two attribute coexists at the same time

Re: Coexistence of EXPORT_SYMBOL() and __cpuinit

2008-02-03 Thread Sam Ravnborg
On Mon, Feb 04, 2008 at 09:49:24AM +0800, Peter Teoh wrote: > In kernel/cpu.c, there exists API that is declared as __cpuinit, and > at the same time exported via EXPORT_SYMBOL(). > > Can these two attribute coexists at the same time? I mean, when it > is declared with EXPORT_SYMBOL, according t

Coexistence of EXPORT_SYMBOL() and __cpuinit

2008-02-03 Thread Peter Teoh
In kernel/cpu.c, there exists API that is declared as __cpuinit, and at the same time exported via EXPORT_SYMBOL(). Can these two attribute coexists at the same time? I mean, when it is declared with EXPORT_SYMBOL, according to include/linux/module.h, it is placed in a __ksymtab section, and whe