From: Paul E. McKenney Date: Sun, 1 May 2005 15:59:03 +0000 (-0700) Subject: [PATCH] Add deprecated_for_modules X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=512345be2549308b8ae8e85a3ff7f6d56a38e5f6;p=openwrt%2Fstaging%2Fblogic.git [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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