* [PATCH 2/10] UML - provide some initcall definitions for userspace code
@ 2005-01-17 5:56 Jeff Dike
0 siblings, 0 replies; only message in thread
From: Jeff Dike @ 2005-01-17 5:56 UTC (permalink / raw)
To: akpm, Blaisorblade; +Cc: linux-kernel
Provide definitions of __initcall, __exitcall, and __init_call for userspace
code.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Index: 2.6.10/arch/um/include/init.h
===================================================================
--- 2.6.10.orig/arch/um/include/init.h 2005-01-16 20:37:24.000000000 -0500
+++ 2.6.10/arch/um/include/init.h 2005-01-16 20:39:58.000000000 -0500
@@ -109,6 +109,15 @@
#define __uml_postsetup_call __attribute_used__ __attribute__ ((__section__ (".uml.postsetup.init")))
#define __uml_exit_call __attribute_used__ __attribute__ ((__section__ (".uml.exitcall.exit")))
+#ifndef __KERNEL__
+
+#define __initcall(fn) static initcall_t __initcall_##fn __init_call = fn
+#define __exitcall(fn) static exitcall_t __exitcall_##fn __exit_call = fn
+
+#define __init_call __attribute__ ((unused,__section__ (".initcall.init")))
+
+#endif
+
#endif /* _LINUX_UML_INIT_H */
/*
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-01-17 3:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-17 5:56 [PATCH 2/10] UML - provide some initcall definitions for userspace code Jeff Dike
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).