Re: what is the problem with this incomplete module?

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

 



On Mon, 1 Jul 2002, Halil Demirezen wrote:

> and how can i overcome the GPL warnings when i install the module.. i dont
> wanna see the warnings. how should i make changes in the code not to let
> the warning outcome..

  Beginning around kernel 2.1 modules began containing a license
which can be set with the macro MODULE_LICENSE.  Currently
accepted licenses are listed in include/linux/module.h.  I usually
use a template like this to handle the basic stuff for test
modules:

#if defined(CONFIG_MODVERSIONS) && ! defined(MODVERSIONS)
        #include <linux/modversions.h>
        #define MODVERSIONS
#endif

#ifndef KERNEL_VERSION
#define KERNEL_VERSION(ver,rel,seq) (((ver)<<16) | ((rel)<<8) | (seq))
#endif

#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,0)
        MODULE_AUTHOR("Some Author");
        MODULE_DESCRIPTION("Some Description");
        MODULE_LICENSE("GPL");
#endif

#include <linux/kernel.h>
#include <linux/module.h>

	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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux