]> git.ipfire.org Git - thirdparty/linux.git/commit
riscv: Annotate unaligned access init functions
authorAndrew Jones <ajones@ventanamicro.com>
Tue, 4 Mar 2025 12:00:16 +0000 (13:00 +0100)
committerAlexandre Ghiti <alexghiti@rivosinc.com>
Wed, 19 Mar 2025 14:23:28 +0000 (14:23 +0000)
commita00e022be5315c5a1f47521a1cc6d3b71c8e9c44
tree94b766699144e3cc9e24bfdc1af4c982fb18a8fd
parent4701f33a10702d5fc577c32434eb62adde0a1ae1
riscv: Annotate unaligned access init functions

Several functions used in unaligned access probing are only run at
init time. Annotate them appropriately.

Fixes: f413aae96cda ("riscv: Set unaligned access speed at compile time")
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://lore.kernel.org/r/20250304120014.143628-11-ajones@ventanamicro.com
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
arch/riscv/include/asm/cpufeature.h
arch/riscv/kernel/traps_misaligned.c
arch/riscv/kernel/unaligned_access_speed.c