[PATCH] i386: bzImage: Fix -Wunused-but-set-variable compilation warning
Ameya Palande
2ameya at gmail.com
Thu Feb 12 00:40:18 PST 2015
kexec/arch/i386/kexec-bzImage.c:111:8: warning: variable
‘kernel_version’ set but not used [-Wunused-but-set-variable]
Signed-off-by: Ameya Palande <2ameya at gmail.com>
---
kexec/arch/i386/kexec-bzImage.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/kexec/arch/i386/kexec-bzImage.c b/kexec/arch/i386/kexec-bzImage.c
index e7bc1d6..df8985d 100644
--- a/kexec/arch/i386/kexec-bzImage.c
+++ b/kexec/arch/i386/kexec-bzImage.c
@@ -108,7 +108,6 @@ int do_bzImage_load(struct kexec_info *info,
struct x86_linux_header setup_header;
struct x86_linux_param_header *real_mode;
int setup_sects;
- char *kernel_version;
size_t size;
int kern16_size;
unsigned long setup_base, setup_size;
@@ -134,7 +133,6 @@ int do_bzImage_load(struct kexec_info *info,
}
kern16_size = (setup_sects +1) *512;
- kernel_version = ((char *)&setup_header) + 512 + setup_header.kver_addr;
if (kernel_len < kern16_size) {
fprintf(stderr, "BzImage truncated?\n");
return -1;
--
1.8.3.1
More information about the kexec
mailing list