aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/os-Linux/process.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/process.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/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;