From 63db85036b85f84c7a1f2ed1e0fff2dade2fc0b1 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sat, 27 Mar 2010 13:20:54 +0000 Subject: [PATCH] Fix linker warning There were two global symbols named 'entry': LINK openbios-builtin.elf libsparc32.a(entry.o): warning: definition of `entry' overriding common libsparc32.a(boot.o): warning: common is here Add 'static' to hide the boot.c one. Signed-off-by: Blue Swirl git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@716 f158a5a8-5612-0410-a976-696ce0be7e32 --- arch/sparc32/boot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sparc32/boot.c b/arch/sparc32/boot.c index 8bbf153..38d4d6c 100644 --- a/arch/sparc32/boot.c +++ b/arch/sparc32/boot.c @@ -20,7 +20,7 @@ uint32_t kernel_size; uint32_t qemu_cmdline; uint32_t cmdline_size; char boot_device; -int (*entry)(const void *romvec_ptr, int p2, int p3, int p4, int p5); +static int (*entry)(const void *romvec_ptr, int p2, int p3, int p4, int p5); static int try_path(const char *path, char *param, const void *romvec) {