Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 512345be authored by Paul E. McKenney's avatar Paul E. McKenney Committed by Linus Torvalds
Browse files

[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: default avatarPaul E. McKenney <paulmck@us.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 66cf8f14
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -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