• Zhenzhong Duan's avatar
    x86/boot/efi: Remove unused variables · cd6697b8
    Zhenzhong Duan authored
    Fix gcc warnings:
    
    arch/x86/boot/compressed/eboot.c: In function 'make_boot_params':
    arch/x86/boot/compressed/eboot.c:394:6: warning: unused variable 'i' [-Wunused-variable]
      int i;
          ^
    arch/x86/boot/compressed/eboot.c:393:6: warning: unused variable 's1' [-Wunused-variable]
      u8 *s1;
          ^
    arch/x86/boot/compressed/eboot.c:392:7: warning: unused variable 's2' [-Wunused-variable]
      u16 *s2;
           ^
    arch/x86/boot/compressed/eboot.c:387:8: warning: unused variable 'options' [-Wunused-variable]
      void *options, *handle;
            ^
    arch/x86/boot/compressed/eboot.c: In function 'add_e820ext':
    arch/x86/boot/compressed/eboot.c:498:16: warning: unused variable 'size' [-Wunused-variable]
      unsigned long size;
                    ^
    arch/x86/boot/compressed/eboot.c:497:15: warning: unused variable 'status' [-Wunused-variable]
      efi_status_t status;
                   ^
    arch/x86/boot/compressed/eboot.c: In function 'exit_boot_func':
    arch/x86/boot/compressed/eboot.c:681:15: warning: unused variable 'status' [-Wunused-variable]
      efi_status_t status;
                   ^
    arch/x86/boot/compressed/eboot.c:680:8: warning: unused variable 'nr_desc' [-Wunused-variable]
      __u32 nr_desc;
            ^
    arch/x86/boot/compressed/eboot.c: In function 'efi_main':
    arch/x86/boot/compressed/eboot.c:750:22: warning: unused variable 'image' [-Wunused-variable]
      efi_loaded_image_t *image;
                          ^
    Signed-off-by: default avatarZhenzhong Duan <zhenzhong.duan@oracle.com>
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    Link: https://lkml.kernel.org/r/1563282957-26898-1-git-send-email-zhenzhong.duan@oracle.com
    cd6697b8
eboot.c 22.8 KB