summaryrefslogtreecommitdiffstats
path: root/include/trace/trace_events.h
diff options
context:
space:
mode:
authorHuacai Chen <chenhuacai@loongson.cn>2022-07-11 09:17:38 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-08-21 15:16:22 +0200
commit35508b60b54a7ed8733e9d9a53875d311f34c9bc (patch)
tree2e54a51d3b7cf12250291102a9d29dfa8cd68e52 /include/trace/trace_events.h
parent0e48eaf75d18e70fed6c0f35388b484bcae1e31e (diff)
downloadlinux-stable-35508b60b54a7ed8733e9d9a53875d311f34c9bc.tar.gz
linux-stable-35508b60b54a7ed8733e9d9a53875d311f34c9bc.tar.bz2
linux-stable-35508b60b54a7ed8733e9d9a53875d311f34c9bc.zip
tpm: eventlog: Fix section mismatch for DEBUG_SECTION_MISMATCH
commit bed4593645366ad7362a3aa7bc0d100d8d8236a8 upstream. If DEBUG_SECTION_MISMATCH enabled, __calc_tpm2_event_size() will not be inlined, this cause section mismatch like this: WARNING: modpost: vmlinux.o(.text.unlikely+0xe30c): Section mismatch in reference from the variable L0 to the function .init.text:early_ioremap() The function L0() references the function __init early_memremap(). This is often because L0 lacks a __init annotation or the annotation of early_ioremap is wrong. Fix it by using __always_inline instead of inline for the called-once function __calc_tpm2_event_size(). Fixes: 44038bc514a2 ("tpm: Abstract crypto agile event size calculations") Cc: stable@vger.kernel.org # v5.3 Reported-by: WANG Xuerui <git@xen0n.name> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn> Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/trace/trace_events.h')
0 files changed, 0 insertions, 0 deletions