From 838eb75e8b4be018d932d37eaee8c84db7f2179e Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Mon, 18 Oct 2004 18:12:57 -0700 Subject: [PATCH] [PATCH] mark inter_module_* deprecated 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 Signed-off-by: Linus Torvalds --- include/linux/module.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/include/linux/module.h b/include/linux/module.h index 60946c3d7dc72..bebd8bc1fd206 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -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 */ -- 2.53.0