diff options
| author | 2025-10-22 13:45:36 +0000 | |
|---|---|---|
| committer | 2025-11-13 18:09:46 +0000 | |
| commit | 0aab5772a53dd006c13ba629e8dc8816b7cd213d (patch) | |
| tree | bfb5f7a0b19fadae18552deb45e8bf9941fe55fa /kernel/locking/git:/ssh:/git@git.zx2c4.com | |
| parent | arm64/sysreg: Replace TCR_EL1 field macros (diff) | |
| download | linux-rng-0aab5772a53dd006c13ba629e8dc8816b7cd213d.tar.xz linux-rng-0aab5772a53dd006c13ba629e8dc8816b7cd213d.zip | |
arm64/sysreg: Fix checks for incomplete sysreg definitions
The checks for incomplete sysreg definitions were checking if the
next_bit was greater than 0, which is incorrect and missed occasions
where bit 0 hasn't been defined for a sysreg. The reason is that
next_bit is -1 when all bits have been processed (LSB - 1).
Change the checks to use >= 0, instead. Also, set next_bit in Mapping
to -1 instead of 0 to match these new checks.
There are no changes to the generated sysreg definitons as part of
this change, and conveniently no definitions lack definitions for bit
0.
Signed-off-by: Sascha Bischoff <sascha.bischoff@arm.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'kernel/locking/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
