Subject: [PATCH 48/91] um: make load_initrd() static, kill shared/initrd.h
Signed-off-by Al Viro <[email protected]>
--- arch/um/include/shared/initrd.h | 12 ------------ arch/um/kernel/initrd.c | 4 ++-- 2 files changed, 2 insertions(+), 14 deletions(-) delete mode 100644 arch/um/include/shared/initrd.h
arch/um/include/shared/initrd.h deleted +0 -12
@@ -1,12 +0,0 @@ -/* -* Copyright (C) 2000 Jeff Dike ([email protected]) -* Licensed under the GPL -*/ - -#ifndef __INITRD_USER_H__ -#define __INITRD_USER_H__ - -extern int load_initrd (char *filename,void *buf,int size); - -#endif -
arch/um/kernel/initrd.c +2 -2
@@ -7,12 +7,12 @@#include "linux/bootmem.h" #include "linux/initrd.h" #include "asm/types.h" -#include "initrd.h" #include "init.h" #include "os.h" /* Changed by uml_initrd_setup, which is a setup */ static char *initrd__initdata =NULL ; +static int load_initrd (char *filename,void *buf,int size);static int __init read_initrd (void ) {
@@ -62,7 +62,7 @@ __uml_setup("initrd=", uml_initrd_setup," name of the file containing the image.\n\n" ); -int load_initrd (char *filename,void *buf,int size) +static int load_initrd (char *filename,void *buf,int size) {int fd, n;
Signature · 1 line
1.7.2.5