[PATCH] arm64/sysreg: Fix BWE field encoding in ID_AA64DFR2_EL1
Will Deacon
will at kernel.org
Thu Jul 2 05:58:22 PDT 2026
On Tue, 30 Jun 2026 22:23:47 +0000, Jia He wrote:
> Commit 93d7356e4b30 ("arm64: sysreg: Describe ID_AA64DFR2_EL1 fields")
> encodes the FEAT_BWE2 value of the BWE field as '0b0002'. Binary
> literals only accept the digits 0 and 1, so the intended value is 2,
> i.e. 0b0010.
>
> The macro generated by gen-sysreg.awk currently expands to
> #define ID_AA64DFR2_EL1_BWE_FEAT_BWE2 UL(0b0002)
> is not legal C and would fail to compile if any in-tree code referenced
> it. At present no caller uses this enum value, so the kernel still
> builds cleanly, but the bug is latent.
>
> [...]
Applied to arm64 (for-next/fixes), thanks!
[1/1] arm64/sysreg: Fix BWE field encoding in ID_AA64DFR2_EL1
https://git.kernel.org/arm64/c/6666336d8fe5
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
More information about the linux-arm-kernel
mailing list