Re: Cleanup of module code

From: Linus Torvalds (torvalds@transmeta.com)
Date: Tue Mar 14 2000 - 20:34:32 EST


On Wed, 15 Mar 2000, Keith Owens wrote:
> On Tue, 14 Mar 2000 09:38:27 -0800 (PST),
> Linus Torvalds <torvalds@transmeta.com> wrote:
> >What I'd really like to see:
> > - get rid of __NO_VERSION__ entirely
>
> Then every module object contains
>
> const char __module_kernel_version[] __attribute__((section(".modinfo"))) =
> "kernel_version=" UTS_RELEASE;

Did you read my message?

Read the last five or so lines, where I suggest that the kernel version
stuff is done by "module_version()" along with the "module_init()" etc
macros. And modules that are not stand-alone would not DO this.

                Linus

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



This archive was generated by hypermail 2b29 : Wed Mar 15 2000 - 21:00:30 EST