[PATCH] Staging: comedi: Add MODULE_AUTHOR and similar to ni_pcimio.c.

Greg KH gregkh at suse.de
Fri Jan 28 02:03:39 UTC 2011


On Thu, Jan 27, 2011 at 06:52:15PM -0500, W. Trevor King wrote:
> Without this metadata, I got (while running 2.6.36)
>   # modprobe ni_pcimio
>   FATAL: Error inserting ni_pcimio (/.../ni_pcimio.ko):
>     Unknown symbol in module, or unknown parameter (see dmesg)
>   # dmesg | tail -n30
>   ...
>   [ 2970.180691] ni_pcimio: Unknown symbol ni_tio_handle_interrupt (err 0)
>   [ 2970.181170] ni_pcimio: Unknown symbol ni_tio_set_mite_channel (err 0)
>   [ 2970.183127] ni_pcimio: Unknown symbol ni_tio_init_counter (err 0)
>   [ 2970.183562] ni_pcimio: Unknown symbol ni_tio_winsn (err 0)
>   (similar missing symbols)
>   ...
> Even though other Comedi modules were providing the symbols:
>   # grep ni_tio_handle_interrupt /proc/kallsyms
>   d82a45b1 t ni_tio_handle_interrupt      [ni_tiocmd]

Odds are you didn't run 'depmod' after installing the kernel then,
right?

> With the metadata macros, ni_pcimio loads successfully.

I don't see how that would work a all.  I'm not saying that this is an
incorrect patch, but that it shouldn't solve a module dependancy
problem.

thanks,

greg k-h



More information about the devel mailing list