aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/os-Linux/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/os-Linux/process.c')
-rw-r--r--arch/um/os-Linux/process.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/um/os-Linux/process.c b/arch/um/os-Linux/process.c
index 697828220af2..2babea30345e 100644
--- a/arch/um/os-Linux/process.c
+++ b/arch/um/os-Linux/process.c
@@ -21,6 +21,7 @@
21#include "skas_ptrace.h" 21#include "skas_ptrace.h"
22#include "kern_constants.h" 22#include "kern_constants.h"
23#include "uml-config.h" 23#include "uml-config.h"
24#include "init.h"
24 25
25#define ARBITRARY_ADDR -1 26#define ARBITRARY_ADDR -1
26#define FAILURE_PID -1 27#define FAILURE_PID -1
@@ -192,7 +193,7 @@ int os_unmap_memory(void *addr, int len)
192#define MADV_REMOVE KERNEL_MADV_REMOVE 193#define MADV_REMOVE KERNEL_MADV_REMOVE
193#endif 194#endif
194 195
195int os_drop_memory(void *addr, int length) 196int __init os_drop_memory(void *addr, int length)
196{ 197{
197 int err; 198 int err;
198 199
@@ -202,7 +203,7 @@ int os_drop_memory(void *addr, int length)
202 return err; 203 return err;
203} 204}
204 205
205int can_drop_memory(void) 206int __init can_drop_memory(void)
206{ 207{
207 void *addr; 208 void *addr;
208 int fd, ok = 0; 209 int fd, ok = 0;