Re: [PATCH v10 12/25] arm64: irqflags: Use ICC_PMR_EL1 for interrupt masking

From: Catalin Marinas
Date: Fri Feb 08 2019 - 11:17:08 EST


On Fri, Feb 08, 2019 at 09:36:48AM +0000, Julien Thierry wrote:
> From e839dec632bbf440efe8314751138ba46324078c Mon Sep 17 00:00:00 2001
> From: Julien Thierry <julien.thierry@xxxxxxx>
> Date: Fri, 8 Feb 2019 09:21:58 +0000
> Subject: [PATCH] arm64: irqflags: Fix clang build warnings
>
> Clang complains when passing asm operands that are smaller than the
> registers they are mapped to:
>
> arch/arm64/include/asm/irqflags.h:50:10: warning: value size does not
> match register size specified by the constraint and modifier
> [-Wasm-operand-widths]
> : "r" (GIC_PRIO_IRQON)
>
> Fix it by casting the affected input operands to a type of the correct
> size.
>
> Reported-by: Nathan Chancellor <natechancellor@xxxxxxxxx>
> Signed-off-by: Julien Thierry <julien.thierry@xxxxxxx>

Applied. Thanks.

--
Catalin