lkml.org 
[lkml]   [2006]   [Feb]   [19]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateSun, 19 Feb 2006 15:18:08 +0100
FromSam Ravnborg <>
SubjectRe: kbuild: Section mismatch warnings
On Sun, Feb 19, 2006 at 12:36:30PM +0100, Sam Ravnborg wrote:
> 
> Question: Several modules contains init_module() cleanup_module() -
> for example floppy.o. I cannot see they are used anymore and subject for
> deletion - correct?

Digged a bit further into this.
In init.h the module_init() / module_exit() macros are defined.
They define an alias from the supplied function to
init_module() / cleanup_module().

Users of init_module() / cleanup_module() do have a ifdef section like
this:

#ifdef MODULE
init_module() ...
cleanup_module() ...
#else
module_init(modulename_init);
module_exit(modulename_exit);
#endif

So this seems to be modules that just needs a bit more
porting to the new module structure if I get it right.

What I missed when I asked the question was the #ifdef MODULE part.

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

\
 
 \ /
  Last update: 2006-02-19 14:21    [from the cache]
©2003-2008