Re: [PATCH v2 0/7] kexec_file, x86, powerpc: refactoring for other architecutres
From: Dave Young
Date: Sun Mar 11 2018 - 23:19:17 EST
On 03/09/18 at 06:33pm, AKASHI Takahiro wrote:
[snip]
> Oops, please apply the fix below to my first patch ("kexec_file: make
> an use of purgatory optional"). My screw-up is trivial here :)
Wow, human eyes sometimes can not catch such issue, thanks for the fix.
It works for me.
>
> Please let me know if you think that I should repost my patch set.
>
Because akpm takes kexec patches, this question should be passing to
Andrew. Andrew, do you need a repost?
> Thanks,
> -Takahiro AKASHI
>
> ===8<===
> diff --git a/kernel/kexec_file.c b/kernel/kexec_file.c
> index 6dbbb89cbbac..ab1dced677fd 100644
> --- a/kernel/kexec_file.c
> +++ b/kernel/kexec_file.c
> @@ -532,7 +532,7 @@ static int kexec_calculate_store_digests(struct kimage *image)
> struct kexec_sha_region *sha_regions;
> struct purgatory_info *pi = &image->purgatory_info;
>
> - if (!IS_ENABLED(ARCH_HAS_KEXEC_PURGATORY))
> + if (!IS_ENABLED(CONFIG_ARCH_HAS_KEXEC_PURGATORY))
> return 0;
>
> zero_buf = __va(page_to_pfn(ZERO_PAGE(0)) << PAGE_SHIFT);
> ===>8===
>
Thanks
Dave