public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] introduce __init_exit function annotation
@ 2007-07-17  8:02 Domen Puncer
  2007-07-17  8:31 ` Adrian Bunk
  2007-07-17 13:02 ` Sam Ravnborg
  0 siblings, 2 replies; 13+ messages in thread
From: Domen Puncer @ 2007-07-17  8:02 UTC (permalink / raw)
  To: linux-kernel

Introduce __init_exit, which is useful ie. for drivers that call
cleanup functions when they fail in __init functions.


Signed-off-by: Domen Puncer <domen.puncer@telargo.com>
---
 include/linux/init.h |    2 ++
 1 file changed, 2 insertions(+)

Index: work-powerpc.git/include/linux/init.h
===================================================================
--- work-powerpc.git.orig/include/linux/init.h
+++ work-powerpc.git/include/linux/init.h
@@ -60,8 +60,10 @@
 
 #ifdef MODULE
 #define __exit		__attribute__ ((__section__(".exit.text")))
+#define __init_exit
 #else
 #define __exit		__attribute_used__ __attribute__ ((__section__(".exit.text")))
+#define __init_exit	__init
 #endif
 
 /* For assembly routines */

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

end of thread, other threads:[~2007-07-17 19:45 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-17  8:02 [PATCH] introduce __init_exit function annotation Domen Puncer
2007-07-17  8:31 ` Adrian Bunk
2007-07-17  8:55   ` Domen Puncer
2007-07-17 13:02 ` Sam Ravnborg
2007-07-17 14:52   ` Takashi Iwai
2007-07-17 15:14     ` Sam Ravnborg
2007-07-17 15:16       ` Takashi Iwai
2007-07-17 15:32         ` Sam Ravnborg
2007-07-17 15:40           ` Takashi Iwai
2007-07-17 16:48             ` Sam Ravnborg
2007-07-17 17:02               ` Takashi Iwai
2007-07-17 19:44                 ` Domen Puncer
2007-07-17 17:48             ` Domen Puncer

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