lkml.org 
[lkml]   [1997]   [Dec]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Module versioning (was: Re: OFFTOPIC: binary modules, bad idea!)
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"

\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.140 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site