On Tuesday 10 May 2005 1:31 am, Pierre Patino wrote:
As I said in the original message, I already have set MODULE_LICENSE("GPL"). I also set MODULE_LICENSE(). Hower, /var/log/messages still tells me that the kernel is tainted. Is this because I'm using insmod instead of letting the kernel deal with the modules via the modules.conf file? I reproduced your problem. the MODULE_LICENSE macro should prevent the tainting message. I created a simple hello world module: #include
#include #include
MODULE_LICENSE("GPL");
static int hello_init(void)
{
printk("Hello World!\n");
return 0;
}
static void hello_exit(void)
{
printk("Good bye!\n");
}
module_init(hello_init);
module_exit(hello_exit);
-----------
KDIR:=/lib/modules/$(shell uname -r)/build
obj-m:=hello.o
default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
clean:
$(RM) .*.cmd *.o *.ko -r .tmp*
Then, insmod hello.ko
May 10 09:18:07 sauron kernel: module hello unsupported by SUSE/Novell,
tainting kernel.
May 10 09:18:07 sauron kernel: Hello World!
--
Jerry Feldman