diff options
author | Paul E. McKenney <paulmck@us.ibm.com> | 2005-05-01 08:59:03 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-01 08:59:03 -0700 |
commit | 512345be2549308b8ae8e85a3ff7f6d56a38e5f6 (patch) | |
tree | d3611cf26dff40c5dacfc3ccadf06436442cde8e /include/linux | |
parent | 66cf8f1443301a1d5bc9c21709e4264e6919a3e1 (diff) | |
download | linux-stable-512345be2549308b8ae8e85a3ff7f6d56a38e5f6.tar.gz linux-stable-512345be2549308b8ae8e85a3ff7f6d56a38e5f6.tar.bz2 linux-stable-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/linux')
-rw-r--r-- | include/linux/compiler.h | 6 |
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 |