Couldn't an empty inline function do the trick?
include/linux/proc_fs.h:
#ifdef CONFIG_PROC_FS
....
extern int proc_register(....);
....
#else
....
static inline proc_register(....) {};
....
#endif
That should trick gcc into letting the function dissapear.
(I don't know how that would affect other kernel stuff
though ... it might be Very Bad(tm) for some things)
cheers,
Rik -- If a Microsoft product fails, who do you sue?
+-------------------------------------------------------------------+
| Linux memory management tour guide. riel@humbolt.geo.uu.nl |
| Scouting Vries cubscout leader. http://humbolt.geo.uu.nl/~riel |
+-------------------------------------------------------------------+
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/