[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>
This commit is contained in:

committed by
Linus Torvalds

parent
66cf8f1443
commit
512345be25
@@ -90,6 +90,12 @@ extern void __chk_io_ptr(void __iomem *);
|
|||||||
# define __deprecated /* unimplemented */
|
# define __deprecated /* unimplemented */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef MODULE
|
||||||
|
#define __deprecated_for_modules __deprecated
|
||||||
|
#else
|
||||||
|
#define __deprecated_for_modules
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef __must_check
|
#ifndef __must_check
|
||||||
#define __must_check
|
#define __must_check
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user