kexec: move some memembers and definitions within the scope of CONFIG_KEXEC_FILE
[cascardo/linux.git] / kernel / kexec_file.c
index b70ada0..007b791 100644 (file)
@@ -109,11 +109,13 @@ int __weak arch_kimage_file_post_load_cleanup(struct kimage *image)
        return -EINVAL;
 }
 
+#ifdef CONFIG_KEXEC_VERIFY_SIG
 int __weak arch_kexec_kernel_verify_sig(struct kimage *image, void *buf,
                                        unsigned long buf_len)
 {
        return -EKEYREJECTED;
 }
+#endif
 
 /* Apply relocations of type RELA */
 int __weak