summaryrefslogtreecommitdiffstats
path: root/include/linux/compiler.h
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@us.ibm.com>2005-05-01 08:59:03 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-01 08:59:03 -0700
commit512345be2549308b8ae8e85a3ff7f6d56a38e5f6 (patch)
treed3611cf26dff40c5dacfc3ccadf06436442cde8e /include/linux/compiler.h
parent66cf8f1443301a1d5bc9c21709e4264e6919a3e1 (diff)
downloadop-kernel-dev-512345be2549308b8ae8e85a3ff7f6d56a38e5f6.zip
op-kernel-dev-512345be2549308b8ae8e85a3ff7f6d56a38e5f6.tar.gz
[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/linux/compiler.h')
-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 487725c..d737821 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
OpenPOWER on IntegriCloud