Re: Error message when insmodding

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

 



On Wed, Apr 17, 2002 at 12:38:06PM -0500, Nick Kidd wrote:

> #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,7)
> MODULE_LICENSE("GPL");
> #endif

Won't work. Welcome to the thin edge of the module maintenance pie.

The version of the RedHat kernel and the Linus kernel that contain
the define are different (so iirc your code will break against
linus-2.4.7/8).

Instead you need :

#ifndef MODULE_LICENSE
#define MODULE_LICENSE(a)
#endif

MODULE_LICENSE("GPL");

or something similar, so things always work as expected.

regards
john

-- 
"Be advised. Your bedroom may quietly detach from the house while you sleep."
	- Sarah Bee
--
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