summaryrefslogtreecommitdiff
path: root/kexec
diff options
context:
space:
mode:
Diffstat (limited to 'kexec')
-rw-r--r--kexec/arch/sh/kexec-sh.c4
-rw-r--r--kexec/arch/sh/kexec-sh.h2
-rw-r--r--kexec/arch/sh/kexec-zImage-sh.c2
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;