diff options
author | Simon Horman <horms@verge.net.au> | 2010-02-02 14:42:02 +1100 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2010-02-02 14:42:02 +1100 |
commit | 9e60b0fce6e17e6a67f4b2babca1b30b3e72edcf (patch) | |
tree | 6d98ce4cb89a32f79dfdeac8498ff1b4c068f3d9 | |
parent | 642c3e306d21a189274d8c00e15d635dfcbb2b6b (diff) |
sh: Use size_t for zero_page_size parameter of kexec_sh_setup_zero_page()
This avoids comparisons between signed and unsigned integers.
Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r-- | kexec/arch/sh/kexec-sh.c | 4 | ||||
-rw-r--r-- | kexec/arch/sh/kexec-sh.h | 2 | ||||
-rw-r--r-- | kexec/arch/sh/kexec-zImage-sh.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/kexec/arch/sh/kexec-sh.c b/kexec/arch/sh/kexec-sh.c index 93e62e2..1ad3d38 100644 --- a/kexec/arch/sh/kexec-sh.c +++ b/kexec/arch/sh/kexec-sh.c @@ -164,10 +164,10 @@ char *get_append(void) return append_buf; } -void kexec_sh_setup_zero_page(char *zero_page_buf, int zero_page_size, +void kexec_sh_setup_zero_page(char *zero_page_buf, size_t zero_page_size, char *cmd_line) { - int n = zero_page_size - 0x100; + size_t n = zero_page_size - 0x100; memset(zero_page_buf, 0, zero_page_size); diff --git a/kexec/arch/sh/kexec-sh.h b/kexec/arch/sh/kexec-sh.h index 2d50af6..7d28ade 100644 --- a/kexec/arch/sh/kexec-sh.h +++ b/kexec/arch/sh/kexec-sh.h @@ -23,7 +23,7 @@ int netbsd_sh_load(int argc, char **argv, const char *buf, off_t len, void netbsd_sh_usage(void); char *get_append(void); -void kexec_sh_setup_zero_page(char *zero_page_buf, int zero_page_size, +void kexec_sh_setup_zero_page(char *zero_page_buf, size_t zero_page_size, char *cmd_line); #endif /* KEXEC_SH_H */ diff --git a/kexec/arch/sh/kexec-zImage-sh.c b/kexec/arch/sh/kexec-zImage-sh.c index c38fd55..1ce185a 100644 --- a/kexec/arch/sh/kexec-zImage-sh.c +++ b/kexec/arch/sh/kexec-zImage-sh.c @@ -51,7 +51,7 @@ static unsigned long zImage_head32(const char *buf, int offs) * * Make sure that the file image has a reasonable chance of working. */ -int zImage_sh_probe(const char *buf, off_t len) +int zImage_sh_probe(const char *buf, off_t UNUSED(len)) { if (memcmp(&buf[0x202], "HdrS", 4) != 0) return -1; |