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:
committed by
Linus Torvalds
parent
9218b17149
commit
36e4546304
@@ -164,7 +164,8 @@ found:
|
||||
* (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;
|
||||
@@ -205,7 +206,7 @@ out:
|
||||
* 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;
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
Reference in New Issue
Block a user