[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: what is the problem with this incomplete module?
On Mon, 1 Jul 2002, Jan Hudec wrote:
> > #include <linux/kernel.h>
> > #include <linux/module.h>
>
> Note that these includes must go first, because its where KERNEL_VERSION
> and MODULE_LICENCE are defined.
Yep, shouldn't post prior to first coffee.
> Also note, that
>
> #ifdef MODULE_LICENCE
> MODULE_AUTHOR("Some Author");
> MODULE_DESCRIPTION("Some Description");
> MODULE_LICENSE("GPL");
> #endif
Makes perfect sense and much cleaner. Thanks for
catching it.
Mike
--
Michael Janicki
Key: http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0x9D6FAE1A
Fingerprint: A153 DFC7 8B49 7E97 67B2 3DCE DA3F 3CC5 9D6F AE1A
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/