Re: compile warning with EXPORT_SYMBOL



In article <xk6Cf.39783$Kp.31619@xxxxxxxxxxxxxxxx>,
Ian Kilgore <invalid@xxxxxxxxxxxxxxx> wrote:

> Steve Sivier wrote:
> > Hi,
> > I've written a couple modules for a 2.6 kernel, call them moduleA and
> > moduleB. moduleB requires the use of a function in moduleA, so in
> > moduleA I have a line like:
> > EXPORT_SYMBOL(moduleA_function);
> >
> > and module_function() is declared extern in a header that moduleB
> > includes. During the compile of moduleB (actually the linking), I get a
> > warning that moduleA_function isn't defined, which is true. It won't be
> > defined until both modules are loaded. Everything works fine and
> > moduleB can use moduleA_function() just fine.
> >
> > Is there any way to get rid of the warning?
> >
> > Thanks,
> > Steve
> Declare it extern?

As I said:
> > and module_function() is declared extern in a header that moduleB

(which is a typo and should say "moduleA_function() is declared extern",
sorry about that).

Thanks,
Steve
.



Relevant Pages

  • Re: compile warning with EXPORT_SYMBOL
    ... Or do you install them with two different make commands? ... The warning appears during the build process of moduleB. ...
    (comp.os.linux.development.system)
  • Re: compile warning with EXPORT_SYMBOL
    ... The warning appears during the build process of moduleB. ... How do you install the modules? ...
    (comp.os.linux.development.system)
  • compile warning with EXPORT_SYMBOL
    ... I've written a couple modules for a 2.6 kernel, ... moduleB requires the use of a function in moduleA, ... warning that moduleA_function isn't defined, ... Prev by Date: ...
    (comp.os.linux.development.system)