Re: [PATCH v3 01/12] kexec_file: allow archs to handle special regions while locating memory hole

From: Thiago Jung Bauermann
Date: Tue Jul 14 2020 - 17:01:21 EST



Hari Bathini <hbathini@xxxxxxxxxxxxx> writes:

> Some architectures may have special memory regions, within the given
> memory range, which can't be used for the buffer in a kexec segment.
> Implement weak arch_kexec_locate_mem_hole() definition which arch code
> may override, to take care of special regions, while trying to locate
> a memory hole.
>
> Also, add the missing declarations for arch overridable functions and
> and drop the __weak descriptors in the declarations to avoid non-weak
> definitions from becoming weak.
>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> [lkp: In v1, arch_kimage_file_post_load_cleanup() declaration was missing]
> Signed-off-by: Hari Bathini <hbathini@xxxxxxxxxxxxx>
> Acked-by: Dave Young <dyoung@xxxxxxxxxx>
> Tested-by: Pingfan Liu <piliu@xxxxxxxxxx>

Reviewed-by: Thiago Jung Bauermann <bauerman@xxxxxxxxxxxxx>

--
Thiago Jung Bauermann
IBM Linux Technology Center