linux/arch/arm64/tools
Jia He 6666336d8f arm64/sysreg: Fix BWE field encoding in ID_AA64DFR2_EL1
Commit 93d7356e4b ("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.

Fix the typo by using the correct binary literal 0b0010.

Cc: Bin Guo <guobin@linux.alibaba.com>
Fixes: 93d7356e4b ("arm64: sysreg: Describe ID_AA64DFR2_EL1 fields")
Signed-off-by: Jia He <justin.he@arm.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Oliver Upton <oupton@kernel.org>
Acked-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
2026-07-02 11:44:05 +01:00
..
cpucaps arm64: cpufeature: Add WORKAROUND_DISABLE_CNP capability 2026-06-03 12:43:28 +01:00
gen-cpucaps.awk arm64: Factor out cpucap definitions 2023-10-16 12:57:45 +01:00
gen-kernel-hwcaps.sh arm64/hwcap: Generate the KERNEL_HWCAP_ definitions for the hwcaps 2026-04-09 16:50:23 +01:00
gen-sysreg.awk arm64/sysreg: Move generation of RES0/RES1/UNKN to function 2025-11-13 18:09:46 +00:00
Makefile arm64/hwcap: Generate the KERNEL_HWCAP_ definitions for the hwcaps 2026-04-09 16:50:23 +01:00
syscall_32.tbl rseq: Implement sys_rseq_slice_yield() 2026-01-22 11:11:17 +01:00
syscall_64.tbl arm64: generate 64-bit syscall.tbl 2024-07-10 14:23:38 +02:00
sysreg arm64/sysreg: Fix BWE field encoding in ID_AA64DFR2_EL1 2026-07-02 11:44:05 +01:00