Re: [PATCH] x86/KASLR: always return a value from process_mem_region

From: Nick Desaulniers
Date: Mon Mar 04 2019 - 13:10:19 EST


On Sat, Mar 2, 2019 at 10:53 AM Louis Taylor <louis@xxxxxxxxxx> wrote:
>
> When compiling with -Wreturn-type, clang warns:
>
> arch/x86/boot/compressed/kaslr.c:704:1: warning: control may reach end of
> non-void function [-Wreturn-type]
>
> This function's return statement should probably have been placed
> outside the #endif, so move it there
>
> Link: https://github.com/ClangBuiltLinux/linux/issues/360
> Signed-off-by: Louis Taylor <louis@xxxxxxxxxx>

Thanks for the patch!
Reviewed-by: Nick Desaulniers <ndesaulniers@xxxxxxxxxx>

--
Thanks,
~Nick Desaulniers