diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2024-02-14 15:29:03 +0300 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2024-02-16 15:42:33 +0300 |
commit | 82ca151da7d54d7571c5d511d016b7780d5d559f (patch) | |
tree | ab4be6edcd82700b567b10f9d177da0bf9edf7c3 /tools/perf/scripts/python | |
parent | 293d865f0af58e6ff2ff0ba0e890674e00d036b1 (diff) | |
download | linux-82ca151da7d54d7571c5d511d016b7780d5d559f.tar.xz |
arm64: mmu: Make __cpu_replace_ttbr1() out of line
__cpu_replace_ttbr1() is a static inline, and so it gets instantiated
wherever it is used. This is not really necessary, as it is never called
on a hot path. It also has the unfortunate side effect that the symbol
idmap_cpu_replace_ttbr1 may never be referenced from kCFI enabled C
code, and this means the type id symbol may not exist either. This will
result in a build error once we start referring to this symbol from asm
code as well. (Note that this problem only occurs when CnP, KAsan and
suspend/resume are all disabled in the Kconfig but that is a valid
config, if unusual).
So let's just move it out of line so all callers will share the same
implementation, which will reference idmap_cpu_replace_ttbr1
unconditionally.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20240214122845.2033971-62-ardb+git@google.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions