diff options
author | Mark Rutland <[email protected]> | 2022-09-12 17:22:07 +0100 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2022-09-16 17:15:03 +0100 |
commit | b723edf3a12a2604cdc0dfcd7cc93d210a815e0c (patch) | |
tree | 9fbb8ebdd9678cc497b25cf6e1a0890b7e765f49 /net/lapb/lapb_timer.c | |
parent | c5ba03260c7afad6977654d6bc7fcabbcd35c379 (diff) |
arm64: alternatives: make alt_region const
We never alter a struct alt_region after creation, and we open-code the
bounds of the kernel alternatives region in two functions. The
duplication is a bit unfortunate for clarity (and in future we're likely
to have more functions altering alternative regions), and to avoid
accidents it would be good to make the structure const.
This patch adds a shared struct `kernel_alternatives` alt_region for the
main kernel image, and marks the alt_regions as const to prevent
unintentional modification.
There should be no functional change as a result of this patch.
Signed-off-by: Mark Rutland <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: James Morse <[email protected]>
Cc: Joey Gouly <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Will Deacon <[email protected]>
Reviewed-by: Ard Biesheuvel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions