Re: kbuild: Section mismatch warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux