public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC,PATCH 1/4] Add deprecated_for_modules
@ 2005-04-03  6:11 Paul E. McKenney
  2005-04-03  6:18 ` Arjan van de Ven
  0 siblings, 1 reply; 3+ messages in thread
From: Paul E. McKenney @ 2005-04-03  6:11 UTC (permalink / raw)
  To: linux-kernel

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: <paulmck@us.ibm.com>
---

diff -urpN -X dontdiff linux-2.6.12-rc1/include/linux/module.h linux-2.6.12-rc1-bettersk/include/linux/module.h
--- linux-2.6.12-rc1/include/linux/module.h	Thu Mar 31 09:53:20 2005
+++ linux-2.6.12-rc1-bettersk/include/linux/module.h	Sat Apr  2 11:47:43 2005
@@ -195,6 +195,12 @@ void *__symbol_get_gpl(const char *symbo
 #define EXPORT_SYMBOL_GPL(sym)					\
 	__EXPORT_SYMBOL(sym, "_gpl")
 
+#ifdef MODULE
+#define deprecated_for_modules __deprecated
+#else
+#define deprecated_for_modules
+#endif
+
 #endif
 
 struct module_ref

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-04-03  6:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-03  6:11 [RFC,PATCH 1/4] Add deprecated_for_modules Paul E. McKenney
2005-04-03  6:18 ` Arjan van de Ven
2005-04-03  6:36   ` Paul E. McKenney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox