Unresolved symbol

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

 



Hi,

I've written a kernel module for doing some i/o stuff for an embedded
system. It has an Altera NIOS2 processor and I'm using the port from
Microtronix. Kernel version is 2.6.9. The driver is based on he scull_pipe
example in LDD3. 
In stage 1 of the build process the compilation runs fine

  CC [M]  drivers/misc/samira/samirainterface.o
/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux
.kernel_0.1.5/linux-2.6.x/drivers/misc/samira/samirainterface.c: In function
`sam_isr':
/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux
.kernel_0.1.5/linux-2.6.x/drivers/misc/samira/samirainterface.c:103:
warning: assignment makes pointer from integer without a cast
drivers/misc/samira/.samirainterface.o.d: done.

The warning is no problem.
In stage 2 I get the following warnings:

  Building modules, stage 2.
  MODPOST
*** Warning: "request_irq" [drivers/misc/samira/samirainterface.ko]
undefined!
*** Warning: "free_irq" [drivers/misc/samira/samirainterface.ko] undefined!
*** Warning: "outsw" [drivers/misc/samira/samirainterface.ko] undefined!
  CC      drivers/misc/samira/samirainterface.mod.o
drivers/misc/samira/.samirainterface.mod.o.d: done.
  LD [M]  drivers/misc/samira/samirainterface.ko
make: Leaving directory 

Because of the missing symbols it's impossible to load the driver. 
Why are these symbols undefined? How can they be defined?

Thanks
Markus

Attachment: samirainterface.h
Description: Binary data

Attachment: samirainterface.c
Description: Binary data


[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