Re: Error message when insmodding

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

 



> Thanks Greg.  Since this appears to be new since I developed this driver 
> using 2.4.7,(now using 2.4.9) should I do an
> ifdef MODULE_LICENSE
> MODULE_LICENSE("whatever")
> endif
> 
> to allow for compilation under older kernels?
> 

I have used this and it seems to work fine.

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

-nick
--
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