t; To: Andreas Dilger
> Cc: linux-kernel
> Subject: Re: Exporting symbols from a module.
>
>
> Resolved.
>
> I just looked at what the kernel did whne compiling a module that
> exported some symbols, and discovered that I needed
> to set CFLAGS to:
>
> -D__KE
Resolved.
I just looked at what the kernel did whne compiling a module that
exported some symbols, and discovered that I needed
to set CFLAGS to:
-D__KERNEL__ -I$/usr/src/linux) -Wall -Wstrict-prototypes \
-O2 -fomit-frame-pointer -fno-strict-aliasing -pipe \
-DMODULE -DMODVERSIONS -include
Hi Andreas.
I now see what you mean, and I will give it a try.
But actually I'm not compiling it under the linux kernel tree, and I
really would like a way to export symbols, while compiling outside the
kernel tree. How would I accomplish that?
Regards
Anders Fugmann
Andreas Dilger wrote:
Hi Andreas.
I now see what you mean, and I will give it a try.
But actually I'm not compiling it under the linux kernel tree, and I
really would like a way to export symbols, while compiling outside the
kernel tree. How would I accomplish that?
Regards
Anders Fugmann
Andreas Dilger wrote:
Resolved.
I just looked at what the kernel did whne compiling a module that
exported some symbols, and discovered that I needed
to set CFLAGS to:
-D__KERNEL__ -I$/usr/src/linux) -Wall -Wstrict-prototypes \
-O2 -fomit-frame-pointer -fno-strict-aliasing -pipe \
-DMODULE -DMODVERSIONS -include
: Exporting symbols from a module.
Resolved.
I just looked at what the kernel did whne compiling a module that
exported some symbols, and discovered that I needed
to set CFLAGS to:
-D__KERNEL__ -I$/usr/src/linux) -Wall -Wstrict-prototypes \
-O2 -fomit-frame-pointer -fno-strict-aliasing
Anders Fugmann writes:
> I'm not sure where to put this in my Makefile.
> (tried, but it did not help)
> Could you please send an example.
See fs/Makefile or fs/msdos/Makefile for examples. I assume you are
building your module under the kernel tree?
Cheers, Andreas
--
Andreas Dilger \ "If a
Hi.
Thanks for your reply.
I'm not sure where to put this in my Makefile.
(tried, but it did not help)
Could you please send an example.
Thanks in advance.
Anders Fugmann
Andreas Dilger wrote:
>>
> I just recently had this problem, and your Makefile is missing:
>
> export-objs := .o
>
>
Anders Fugmann writes:
> I've got a simple question - how export symbols from one module, and use
> them in another.
>
> I have two modules - 'kvaser' and 'can_master'.
> 'kvaser' exports some functions, and 'can_master' needs to use call
> these functions.
>
> I used EXPORT_SYMBOL, and
Anders Fugmann writes:
I've got a simple question - how export symbols from one module, and use
them in another.
I have two modules - 'kvaser' and 'can_master'.
'kvaser' exports some functions, and 'can_master' needs to use call
these functions.
I used EXPORT_SYMBOL, and declared the
Hi.
Thanks for your reply.
I'm not sure where to put this in my Makefile.
(tried, but it did not help)
Could you please send an example.
Thanks in advance.
Anders Fugmann
Andreas Dilger wrote:
I just recently had this problem, and your Makefile is missing:
export-objs := file name.o
Anders Fugmann writes:
I'm not sure where to put this in my Makefile.
(tried, but it did not help)
Could you please send an example.
See fs/Makefile or fs/msdos/Makefile for examples. I assume you are
building your module under the kernel tree?
Cheers, Andreas
--
Andreas Dilger \ If a man
12 matches
Mail list logo