Re: insmod problem - Regarding

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

 



On Wed, May 28, 2003 at 01:54:57PM -0500, Vijay Venkata wrote:
> queryDevice.o: unresolved symbol open
> queryDevice.o: unresolved symbol close
> queryDevice.o: unresolved symbol puts
> queryDevice.o: unresolved symbol printf
> queryDevice.o: unresolved symbol strerror
> queryDevice.o: unresolved symbol ioctl

I don't know quite what to do about open, close, and ioctl, as those are
quite possibly legit symbols in the kernel's file_operations structures.

However, the puts, printf, and strerror almost certainly should not be
used in the kernel. You have access to printk() for printing debugging
messages, and strerror more or less assumes the presence of an errno
variable. This doesn't hold in the kernel.

> queryDevice.o:
> Hint: You are trying to load a module without a GPL compatible license
>       and it has unresolved symbols.  Contact the module supplier for
>       assistance, only they can help you.

> MODULE_AUTHOR("Vijay Venkata");
> MODULE_SUPPORTED_DEVICE("All Devices on pcibus with a vendorId and deviceId");
> MODULE_DESCRIPTION("Provides Query mechanism to get slot information for a"
>                     "given <vendorId,deviceId> tuple");

add here,
MODULE_LICENSE("GPL");

assuming your module is GPL licensed, of course.

-- 
"In time of war, the laws are silent." -- Chief Justice of the United
States Supreme Court, William Rehnquist

Attachment: pgp00415.pgp
Description: PGP signature


[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