]> git.hungrycats.org Git - linux/commitdiff
[PATCH] mark inter_module_* deprecated
authorChristoph Hellwig <hch@lst.de>
Tue, 19 Oct 2004 01:12:57 +0000 (18:12 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 19 Oct 2004 01:12:57 +0000 (18:12 -0700)
These had been officially deprecated since Rusty's module rewrite, but
never got the __deprecated marker.  The only remaining users are drm and
mtd, so we'll get some warnings for common builds.  But maybe that's the
only way to get the drm people to fix the mess :)

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/module.h

index 60946c3d7dc724fc09f4ac7639b6adc8ca2aa94e..bebd8bc1fd206f85efdfe9babd8bea6b53b913e4 100644 (file)
@@ -558,10 +558,12 @@ struct obsolete_modparm __parm_##var __attribute__((section("__obsparm"))) = \
 
 /* Use symbol_get and symbol_put instead.  You'll thank me. */
 #define HAVE_INTER_MODULE
-extern void inter_module_register(const char *, struct module *, const void *);
-extern void inter_module_unregister(const char *);
-extern const void *inter_module_get(const char *);
-extern const void *inter_module_get_request(const char *, const char *);
-extern void inter_module_put(const char *);
+extern void __deprecated inter_module_register(const char *,
+               struct module *, const void *);
+extern void __deprecated inter_module_unregister(const char *);
+extern const void * __deprecated inter_module_get(const char *);
+extern const void * __deprecated inter_module_get_request(const char *,
+               const char *);
+extern void __deprecated inter_module_put(const char *);
 
 #endif /* _LINUX_MODULE_H */