Thread (1 message) 1 message, 1 author, 2003-01-22

Re: Problem Exporting Symbol

From: Jerry Van Baren <hidden>
Date: 2003-01-22 11:28:41

I haven't checked the actual sources, but I bet 'va_to_pte' is _not_ a
symbol... it is probably either an "inline" function so the compiler
inserts the function's code everywhere it is "called" (saves the overhead
of the call and return with associated stack pushing and popping).  When
you try to export it, it isn't found.

Solutions:
1) Write your own non-inline "my_va_to_pte" in the kernel and export it.
2) Figure out how to avoid "va_to_pte" in your driver?
3) Don't make your SPI driver a loadable module?
3) Other?
4) Don't inline "va_to_pte" (BAD SOLUTION).

gvb


At 07:25 PM 1/21/2003 -0500, shivkumarb@hotmail.com wrote:
Hi All,

      I am trying to write SPI driver for 8260, based on the SPI driver for
the MPC860 that I got from this list. I am trying to export the symbol
'va_to_pte', for the driver module, in the kernel.

      I included this in arch/ppc/kernel/ppc_ksyms.c, by using the
EXPORT_SYMTAB(va_to_pte) function. But when I tried to rebuild the kernel
(make zImage), it keeps coming back with the following error:

arch/ppc/kernel/kernel.o(__ksymtab+0x0370): undefined reference to
'va_to_pte'

     I have exported other symbols, by following similar procedure. Is there
something that I am missing.

      I am running Linux kernel 2.4.2. Any inputs will be very helpful.

  Thanks and Regards,
    Shiv

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help