Re: What does it mean by 'taint the kernel' when modprobe?

On Tue, Sep 24, 2002 at 10:41:27PM +0800, Edwin du wrote:
> Hi all,
> 	I was writing a driver for a simple DI/DO PCI card. I included the
> 'amcc_s5933' to initialize my pci card.
> 	When inserting the module (amcc_s5933), it reports:
> ------------------------------------------------------------------------
> Warning: loading
> /lib/modules/2.4.18-11/comedi/comedi/drivers/amcc_s5933.o will
> taint the kernel: no license
>   See http://www.tux.org/lkml/#export-tainted for information about
> tainted modules
> Module amcc_s5933 loaded, with warnings
> ------------------------------------------------------------------------
> 	What does it mean? I noticed in include/linux/module.h has the
> MODULE_LICENSE flag setting, my kernel is 2.4.18-11 in Red hat.

amcc_s5933.c doesn't have a MODULE_LICENSE() line.  I just fixed
that.

> 	By the way, is it necessary to call pci_card_list_init() in attach() to
> init my pci DIO card? Firstly I follow the step as driver/skel.c and
> driver/contec_pci_dio.c, but my card has not been detected.

All the current devices supported by Comedi that use the 5933 chip
have the PCI vendor ID for AMCC.  So, if that's not the case for
your board, you need to modify the amcc_s5933 driver.  I'd
recommend adding a vendor id parameter to pci_card_list_init().
Or, if you want to work on making it better, move the probe code
to amcc_init() and have it probe a list of all known devices.



dave...

Received on 2002-09-24Z18:45:10