* [U-Boot] [PATCH] sparc: fix unused variable warnings
@ 2011-10-13 5:44 Mike Frysinger
2011-12-01 21:08 ` Anatolij Gustschin
0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2011-10-13 5:44 UTC (permalink / raw)
To: u-boot
Fix the build warnings:
board.c: In function 'board_init_f':
board.c:179:8: warning: unused variable 'e'
board.c:178:6: warning: unused variable 'i'
board.c:173:13: warning: unused variable 'cmdtp'
bootm.c: In function 'do_bootm_linux':
bootm.c:101:28: warning: unused variable 'kernend'
bootm.c:101:15: warning: unused variable 'initrd_addr'
bootm.c:100:26: warning: unused variable 'checksum'
bootm.c:100:21: warning: unused variable 'len'
bootm.c:100:15: warning: unused variable 'data'
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
arch/sparc/lib/board.c | 3 ---
arch/sparc/lib/bootm.c | 2 --
2 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/arch/sparc/lib/board.c b/arch/sparc/lib/board.c
index 930e7e0..53dad69 100644
--- a/arch/sparc/lib/board.c
+++ b/arch/sparc/lib/board.c
@@ -170,13 +170,10 @@ char *str_init_seq_done = "\n\rInit sequence done...\r\n\r\n";
void board_init_f(ulong bootflag)
{
- cmd_tbl_t *cmdtp;
bd_t *bd;
unsigned char *s;
init_fnc_t **init_fnc_ptr;
int j;
- int i;
- char *e;
#ifndef CONFIG_SYS_NO_FLASH
ulong flash_size;
diff --git a/arch/sparc/lib/bootm.c b/arch/sparc/lib/bootm.c
index 4c226a3..e5b933d 100644
--- a/arch/sparc/lib/bootm.c
+++ b/arch/sparc/lib/bootm.c
@@ -97,8 +97,6 @@ int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t * im
char *bootargs;
ulong initrd_start, initrd_end;
ulong rd_len;
- unsigned int data, len, checksum;
- unsigned int initrd_addr, kernend;
void (*kernel) (struct linux_romvec *, void *);
struct lmb *lmb = &images->lmb;
int ret;
--
1.7.6.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* [U-Boot] [PATCH] sparc: fix unused variable warnings
2011-10-13 5:44 [U-Boot] [PATCH] sparc: fix unused variable warnings Mike Frysinger
@ 2011-12-01 21:08 ` Anatolij Gustschin
0 siblings, 0 replies; 2+ messages in thread
From: Anatolij Gustschin @ 2011-12-01 21:08 UTC (permalink / raw)
To: u-boot
On Thu, 13 Oct 2011 01:44:10 -0400
Mike Frysinger <vapier@gentoo.org> wrote:
> Fix the build warnings:
> board.c: In function 'board_init_f':
> board.c:179:8: warning: unused variable 'e'
> board.c:178:6: warning: unused variable 'i'
> board.c:173:13: warning: unused variable 'cmdtp'
> bootm.c: In function 'do_bootm_linux':
> bootm.c:101:28: warning: unused variable 'kernend'
> bootm.c:101:15: warning: unused variable 'initrd_addr'
> bootm.c:100:26: warning: unused variable 'checksum'
> bootm.c:100:21: warning: unused variable 'len'
> bootm.c:100:15: warning: unused variable 'data'
>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
> arch/sparc/lib/board.c | 3 ---
> arch/sparc/lib/bootm.c | 2 --
> 2 files changed, 0 insertions(+), 5 deletions(-)
Appied to u-boot-staging/agust at denx.de. Thanks!
Anatolij
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-12-01 21:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-13 5:44 [U-Boot] [PATCH] sparc: fix unused variable warnings Mike Frysinger
2011-12-01 21:08 ` Anatolij Gustschin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox