diff options
-rw-r--r-- | kexec/arch/i386/kexec-bzImage.c | 2 | ||||
-rw-r--r-- | kexec/arch/i386/kexec-elf-x86.c | 6 | ||||
-rw-r--r-- | kexec/arch/i386/x86-linux-setup.c | 2 | ||||
-rw-r--r-- | kexec/arch/i386/x86-linux-setup.h | 2 | ||||
-rw-r--r-- | kexec/arch/x86_64/kexec-elf-x86_64.c | 5 | ||||
-rw-r--r-- | kexec/kexec-elf-boot.c | 2 | ||||
-rw-r--r-- | kexec/kexec-elf-boot.h | 2 |
7 files changed, 10 insertions, 11 deletions
diff --git a/kexec/arch/i386/kexec-bzImage.c b/kexec/arch/i386/kexec-bzImage.c index 6180764..53a50b3 100644 --- a/kexec/arch/i386/kexec-bzImage.c +++ b/kexec/arch/i386/kexec-bzImage.c @@ -264,7 +264,7 @@ int do_bzImage_load(struct kexec_info *info, /* Tell the kernel what is going on */ setup_linux_bootloader_parameters(info, real_mode, setup_base, kern16_size, command_line, command_line_len, - (unsigned char *) initrd, initrd_len); + initrd, initrd_len); /* Get the initial register values */ elf_rel_get_symbol(&info->rhdr, "entry16_regs", ®s16, sizeof(regs16)); diff --git a/kexec/arch/i386/kexec-elf-x86.c b/kexec/arch/i386/kexec-elf-x86.c index ccc5778..2cb9d11 100644 --- a/kexec/arch/i386/kexec-elf-x86.c +++ b/kexec/arch/i386/kexec-elf-x86.c @@ -205,7 +205,7 @@ int elf_x86_load(int argc, char **argv, const char *buf, off_t len, /* Setup the ELF boot notes */ note_base = elf_boot_notes(info, max_addr, - (unsigned char *) command_line, command_line_len); + command_line, command_line_len); /* Initialize the stack arguments */ arg2 = 0; /* No return address */ @@ -226,7 +226,7 @@ int elf_x86_load(int argc, char **argv, const char *buf, off_t len, else if (arg_style == ARG_STYLE_LINUX) { struct x86_linux_faked_param_header *hdr; unsigned long param_base; - const unsigned char *ramdisk_buf; + const char *ramdisk_buf; off_t ramdisk_length; struct entry32_regs regs; int rc = 0; @@ -253,7 +253,7 @@ int elf_x86_load(int argc, char **argv, const char *buf, off_t len, ramdisk_buf = NULL; ramdisk_length = 0; if (ramdisk) { - ramdisk_buf = (unsigned char *) slurp_file(ramdisk, &ramdisk_length); + ramdisk_buf = slurp_file(ramdisk, &ramdisk_length); } /* If panic kernel is being loaded, additional segments need diff --git a/kexec/arch/i386/x86-linux-setup.c b/kexec/arch/i386/x86-linux-setup.c index f9795ef..f843ca4 100644 --- a/kexec/arch/i386/x86-linux-setup.c +++ b/kexec/arch/i386/x86-linux-setup.c @@ -49,7 +49,7 @@ void setup_linux_bootloader_parameters( struct kexec_info *info, struct x86_linux_param_header *real_mode, unsigned long real_mode_base, unsigned long cmdline_offset, const char *cmdline, off_t cmdline_len, - const unsigned char *initrd_buf, off_t initrd_size) + const char *initrd_buf, off_t initrd_size) { char *cmdline_ptr; unsigned long initrd_base, initrd_addr_max; diff --git a/kexec/arch/i386/x86-linux-setup.h b/kexec/arch/i386/x86-linux-setup.h index c16b41a..8862513 100644 --- a/kexec/arch/i386/x86-linux-setup.h +++ b/kexec/arch/i386/x86-linux-setup.h @@ -6,7 +6,7 @@ void setup_linux_bootloader_parameters( struct kexec_info *info, struct x86_linux_param_header *real_mode, unsigned long real_mode_base, unsigned long cmdline_offset, const char *cmdline, off_t cmdline_len, - const unsigned char *initrd_buf, off_t initrd_size); + const char *initrd_buf, off_t initrd_size); void setup_linux_system_parameters(struct x86_linux_param_header *real_mode, unsigned long kexec_flags); diff --git a/kexec/arch/x86_64/kexec-elf-x86_64.c b/kexec/arch/x86_64/kexec-elf-x86_64.c index c7a1bd8..20c7d77 100644 --- a/kexec/arch/x86_64/kexec-elf-x86_64.c +++ b/kexec/arch/x86_64/kexec-elf-x86_64.c @@ -203,8 +203,7 @@ int elf_x86_64_load(int argc, char **argv, const char *buf, off_t len, struct entry64_regs regs; /* Setup the ELF boot notes */ - note_base = elf_boot_notes(info, max_addr, - command_line, command_line_len); + note_base = elf_boot_notes(info, max_addr, command_line, command_line_len); /* Initialize the registers */ elf_rel_get_symbol(&info->rhdr, "entry64_regs", ®s, sizeof(regs)); @@ -220,7 +219,7 @@ int elf_x86_64_load(int argc, char **argv, const char *buf, off_t len, else if (arg_style == ARG_STYLE_LINUX) { struct x86_linux_faked_param_header *hdr; unsigned long param_base; - const unsigned char *ramdisk_buf; + char *ramdisk_buf; off_t ramdisk_length; struct entry64_regs regs; int rc=0; diff --git a/kexec/kexec-elf-boot.c b/kexec/kexec-elf-boot.c index bc650b7..9a160bb 100644 --- a/kexec/kexec-elf-boot.c +++ b/kexec/kexec-elf-boot.c @@ -75,7 +75,7 @@ static inline unsigned long align(unsigned long val, unsigned long align) unsigned long elf_boot_notes( struct kexec_info *info, unsigned long max_addr, - const unsigned char *cmdline, int cmdline_len) + const char *cmdline, int cmdline_len) { unsigned long note_bytes; unsigned long note_base; diff --git a/kexec/kexec-elf-boot.h b/kexec/kexec-elf-boot.h index 843a89b..cff5c61 100644 --- a/kexec/kexec-elf-boot.h +++ b/kexec/kexec-elf-boot.h @@ -3,6 +3,6 @@ unsigned long elf_boot_notes( struct kexec_info *info, unsigned long max_addr, - const unsigned char *cmdline, int cmdline_len); + const char *cmdline, int cmdline_len); #endif /* KEXEC_ELF_BOOT_H */ |