summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@us.ibm.com>2005-05-01 17:59:03 +0200
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-01 17:59:03 +0200
commit512345be2549308b8ae8e85a3ff7f6d56a38e5f6 (patch)
treed3611cf26dff40c5dacfc3ccadf06436442cde8e /include
parent[PATCH] kernel/rcupdate.c: make the exports EXPORT_SYMBOL_GPL (diff)
downloadlinux-512345be2549308b8ae8e85a3ff7f6d56a38e5f6.tar.xz
linux-512345be2549308b8ae8e85a3ff7f6d56a38e5f6.zip
[PATCH] Add deprecated_for_modules
Add a deprecated_for_modules macro that allows symbols to be deprecated only when used by modules, as suggested by Andrew Morton some months back. Signed-off-by: Paul E. McKenney <paulmck@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/compiler.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h
index 487725cf0d0d..d7378215b851 100644
--- a/include/linux/compiler.h
+++ b/include/linux/compiler.h
@@ -90,6 +90,12 @@ extern void __chk_io_ptr(void __iomem *);
# define __deprecated /* unimplemented */
#endif
+#ifdef MODULE
+#define __deprecated_for_modules __deprecated
+#else
+#define __deprecated_for_modules
+#endif
+
#ifndef __must_check
#define __must_check
#endif