Re: Module versioning (was: Re: OFFTOPIC: binary modules, bad idea!)

Michael Elizabeth Chastain (mec@shout.net)
Sat, 20 Dec 1997 23:20:03 -0600


Hello Kernel Hackers,

Regis Duchesne writes:

> #ifdef CONFIG_MODULE_LONG_LIVE
> inline void foo_add(void *p)
> #else
> inline void foo_add(struct foo *p)
> #endif
> {
> .
> .
> }

I think it would be better to use forward declarations:

struct foo;

extern void foo_add( struct foo * p );

Michael Chastain
<mailto:mec@shout.net>
"love without fear"