[PATCH] arm64: alternative: simplify passing alt_region

Will Deacon will at kernel.org
Thu Apr 22 13:59:44 BST 2021


On Fri, Apr 16, 2021 at 05:30:32PM +0100, Mark Rutland wrote:
> In __apply_alternatives() we take a pointer to void which we later
> assign to a pointer to struct alt_region. As all callers are passing a
> pointer to struct alt_region to begin with, it's simpler and more robust
> to take a pointer to struct alt region, so let's do so and avoid the
> need for a temporary variable.
> 
> Signed-off-by: Mark Rutland <mark.rutland at arm.com>
> Cc: Catalin Marinas <catalin.marinas at arm.com>
> Cc: Will Deacon <will at kernel.org>
> ---
>  arch/arm64/kernel/alternative.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

Acked-by: Will Deacon <will at kernel.org>

Will



More information about the linux-arm-kernel mailing list