aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/os-Linux/mem.c
diff options
context:
space:
mode:
authorJeff Dike <jdike@addtoit.com>2007-05-06 17:51:11 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-07 15:13:01 -0400
commit36e454630473caa178bcbc4982ed6a68cf002e95 (patch)
treea80208c4d995d49025e7654447ea35476ed01e40 /arch/um/os-Linux/mem.c
parent9218b1714949095bff9d9739d80f431d58e561d6 (diff)
uml: add missing __init declarations
The build started finding calls from non-init to init functions. These are just cases of init functions not being properly marked, so this patch fixes that. Signed-off-by: Jeff Dike <jdike@linux.intel.com> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/os-Linux/mem.c')
-rw-r--r--arch/um/os-Linux/mem.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/um/os-Linux/mem.c b/arch/um/os-Linux/mem.c
index dcaca0e190de..77d16023c286 100644
--- a/arch/um/os-Linux/mem.c
+++ b/arch/um/os-Linux/mem.c
@@ -164,7 +164,8 @@ found:
164 * (file: kernel/tt/ptproxy/proxy.c, proc: start_debugger). 164 * (file: kernel/tt/ptproxy/proxy.c, proc: start_debugger).
165 * So it isn't 'static' yet. 165 * So it isn't 'static' yet.
166 */ 166 */
167int make_tempfile(const char *template, char **out_tempname, int do_unlink) 167int __init make_tempfile(const char *template, char **out_tempname,
168 int do_unlink)
168{ 169{
169 char *tempname; 170 char *tempname;
170 int fd; 171 int fd;
@@ -205,7 +206,7 @@ out:
205 * This proc is used in start_up.c 206 * This proc is used in start_up.c
206 * So it isn't 'static'. 207 * So it isn't 'static'.
207 */ 208 */
208int create_tmp_file(unsigned long long len) 209int __init create_tmp_file(unsigned long long len)
209{ 210{
210 int fd, err; 211 int fd, err;
211 char zero; 212 char zero;
@@ -241,7 +242,7 @@ int create_tmp_file(unsigned long long len)
241 return fd; 242 return fd;
242} 243}
243 244
244int create_mem_file(unsigned long long len) 245int __init create_mem_file(unsigned long long len)
245{ 246{
246 int err, fd; 247 int err, fd;
247 248
@@ -256,7 +257,7 @@ int create_mem_file(unsigned long long len)
256} 257}
257 258
258 259
259void check_tmpexec(void) 260void __init check_tmpexec(void)
260{ 261{
261 void *addr; 262 void *addr;
262 int err, fd = create_tmp_file(UM_KERN_PAGE_SIZE); 263 int err, fd = create_tmp_file(UM_KERN_PAGE_SIZE);