aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/os-Linux/mem.c
diff options
context:
space:
mode:
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);