[lkml]   [2007]   [Jul]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] introduce __init_exit function annotation
Introduce __init_exit, which is useful ie. for drivers that call
cleanup functions when they fail in __init functions.

Signed-off-by: Domen Puncer <>
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
#define __exit __attribute_used__ __attribute__ ((__section__(".exit.text")))
+#define __init_exit __init

/* For assembly routines */
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at
 \ /
  Last update: 2007-07-17 10:23    [W:0.044 / U:16.312 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site