DragonFly BSD
DragonFly kernel List (threaded) for 2005-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: calling a static function from another module in the kernel?


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx>
Date: Sun, 7 Aug 2005 19:07:35 +0200
Mail-followup-to: kernel@crater.dragonflybsd.org

On Sun, Aug 07, 2005 at 12:54:51PM +0900, YONETANI Tomokazu wrote:
> Hello.
> While working on making acpica5 compile into the kernel, I've hit a
> strange problem.  isab_attach() is defined as a static function
> in /sys/bus/pci/pci_isab.c, and somehow declared in /sys/bus/isa/isavar.h .
> However acpi_isab_attach() calls this function, so IIUC isab_attach()
> should not be static.  In fact the kernel won't get linked without making
> isab_attach() non-static.  What I don't understand is, that acpi driver as
> a module doesn't complain about this when it's loaded.  Is this supposed
> to work?

I have a patch for the kernel and loader, but I need some time to
analyse the implications of both. Nevertheless, isab_attach and related
functions are not supposed to be static here :-) Feel free to fix that.

Joerg



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