Commit c1839d3f authored by Jeff Dike's avatar Jeff Dike Committed by Linus Torvalds

[PATCH] uml: provide some initcall definitions for userspace code

Provide definitions of __initcall, __exitcall, and __init_call for userspace
code.
Signed-off-by: default avatarJeff Dike <jdike@addtoit.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent a32e5baf
......@@ -109,6 +109,15 @@ extern struct uml_param __uml_setup_start, __uml_setup_end;
#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 */
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment