compressed/eboot.c defines an internal function setup_graphics(struct boot_params *boot_params). No other file refers to this function with the same parameters so make this function static.
This eliminates the following warning: arch/x86/boot/compressed/eboot.c:1004:6: warning: no previous prototype for ‘setup_graphics’ [-Wmissing-prototypes] Also make_boot_params is declared only in this file and is used in some assembly. So add a prototype for this function. This eliminates the following warning: arch/x86/boot/compressed/eboot.c:1042:21: warning: no previous prototype for ‘make_boot_params’ [-Wmissing-prototypes] Signed-off-by: Darshana Padmadas <[email protected]> --- arch/x86/boot/compressed/eboot.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/x86/boot/compressed/eboot.c b/arch/x86/boot/compressed/eboot.c index 92b9a5f..cb4ebab 100644 --- a/arch/x86/boot/compressed/eboot.c +++ b/arch/x86/boot/compressed/eboot.c @@ -1001,7 +1001,7 @@ free_handle: return status; } -void setup_graphics(struct boot_params *boot_params) +static void setup_graphics(struct boot_params *boot_params) { efi_guid_t graphics_proto = EFI_GRAPHICS_OUTPUT_PROTOCOL_GUID; struct screen_info *si; @@ -1039,6 +1039,9 @@ void setup_graphics(struct boot_params *boot_params) * The caller is responsible for filling out ->code32_start in the * returned boot_params. */ + +struct boot_params *make_boot_params(struct efi_config *c); + struct boot_params *make_boot_params(struct efi_config *c) { struct boot_params *boot_params; @@ -1378,6 +1381,10 @@ free_mem_map: * On success we return a pointer to a boot_params structure, and NULL * on failure. */ + +struct boot_params *efi_main(struct efi_config *c, + struct boot_params *boot_params); + struct boot_params *efi_main(struct efi_config *c, struct boot_params *boot_params) { -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

