[PATCH 3/9] arm64: sysreg: Reject a Sysreg and a SysregFields with the same name

Steffen Eiden seiden at linux.ibm.com
Mon Nov 23 02:25:51 PST 2026


On Mon, Nov 23, 2026 at 07:52:13AM +0000, Fuad Tabba wrote:
> The generator rejects two Sysreg blocks, or two SysregFields blocks,
> with the same name, but tracks the two kinds separately. Both kinds name
> their macros for the block, so a Sysreg FOO and a SysregFields FOO that
> each have a field A both define FOO_A, as well as FOO_RES0 and the other
> masks, and the compiler warns only where the definitions differ.
> 
> Track both kinds of name in defined_regs, so that a block is rejected
> when either kind already has its name, and leave the kind out of the
> error.
> 
> Suggested-by: Mark Rutland <mark.rutland at arm.com>
> Signed-off-by: Fuad Tabba <fuad.tabba at linux.dev>

Reviewed-by: Steffen Eiden <seiden at linux.ibm.com>




More information about the linux-arm-kernel mailing list