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>
This commit is contained in:
Jeff Dike
2007-05-06 14:51:11 -07:00
committed by Linus Torvalds
parent 9218b17149
commit 36e4546304
5 changed files with 12 additions and 10 deletions

View File

@@ -21,6 +21,7 @@
#include "skas_ptrace.h"
#include "kern_constants.h"
#include "uml-config.h"
#include "init.h"
#define ARBITRARY_ADDR -1
#define FAILURE_PID -1
@@ -192,7 +193,7 @@ int os_unmap_memory(void *addr, int len)
#define MADV_REMOVE KERNEL_MADV_REMOVE
#endif
int os_drop_memory(void *addr, int length)
int __init os_drop_memory(void *addr, int length)
{
int err;
@@ -202,7 +203,7 @@ int os_drop_memory(void *addr, int length)
return err;
}
int can_drop_memory(void)
int __init can_drop_memory(void)
{
void *addr;
int fd, ok = 0;