Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54294
b: refs/heads/master
c: 36e4546
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Dike authored and Linus Torvalds committed May 7, 2007
1 parent 5b01cc8 commit f96b306
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9218b1714949095bff9d9739d80f431d58e561d6
refs/heads/master: 36e454630473caa178bcbc4982ed6a68cf002e95
2 changes: 1 addition & 1 deletion trunk/arch/um/kernel/mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ static void __init fixaddr_user_init( void)
#endif
}

void paging_init(void)
void __init paging_init(void)
{
unsigned long zones_size[MAX_NR_ZONES], vaddr;
int i;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/um/os-Linux/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ extern int uml_exitcode;

extern void scan_elf_aux( char **envp);

int main(int argc, char **argv, char **envp)
int __init main(int argc, char **argv, char **envp)
{
char **new_argv;
int ret, i, err;
Expand Down
9 changes: 5 additions & 4 deletions trunk/arch/um/os-Linux/mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ static void which_tmpdir(void)
* (file: kernel/tt/ptproxy/proxy.c, proc: start_debugger).
* So it isn't 'static' yet.
*/
int make_tempfile(const char *template, char **out_tempname, int do_unlink)
int __init make_tempfile(const char *template, char **out_tempname,
int do_unlink)
{
char *tempname;
int fd;
Expand Down Expand Up @@ -205,7 +206,7 @@ int make_tempfile(const char *template, char **out_tempname, int do_unlink)
* This proc is used in start_up.c
* So it isn't 'static'.
*/
int create_tmp_file(unsigned long long len)
int __init create_tmp_file(unsigned long long len)
{
int fd, err;
char zero;
Expand Down Expand Up @@ -241,7 +242,7 @@ int create_tmp_file(unsigned long long len)
return fd;
}

int create_mem_file(unsigned long long len)
int __init create_mem_file(unsigned long long len)
{
int err, fd;

Expand All @@ -256,7 +257,7 @@ int create_mem_file(unsigned long long len)
}


void check_tmpexec(void)
void __init check_tmpexec(void)
{
void *addr;
int err, fd = create_tmp_file(UM_KERN_PAGE_SIZE);
Expand Down
5 changes: 3 additions & 2 deletions trunk/arch/um/os-Linux/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;

Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/um/os-Linux/start_up.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ static void __init check_ptrace(void)

extern void check_tmpexec(void);

static void check_coredump_limit(void)
static void __init check_coredump_limit(void)
{
struct rlimit lim;
int err = getrlimit(RLIMIT_CORE, &lim);
Expand All @@ -350,7 +350,7 @@ static void check_coredump_limit(void)
else printf("%lu\n", lim.rlim_max);
}

void os_early_checks(void)
void __init os_early_checks(void)
{
/* Print out the core dump limits early */
check_coredump_limit();
Expand Down

0 comments on commit f96b306

Please sign in to comment.