linux-stable/include
Huacai Chen ca631f184f tpm: eventlog: Fix section mismatch for DEBUG_SECTION_MISMATCH
[ Upstream commit bed4593645 ]

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: 44038bc514 ("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: Sasha Levin <sashal@kernel.org>
2022-08-17 14:42:32 +02:00
..
acpi ACPI: CPPC: Do not prevent CPPC from working in the future 2022-08-17 14:42:28 +02:00
asm-generic
clocksource
crypto crypto: blake2s - remove shash module 2022-08-17 14:42:20 +02:00
drm
dt-bindings clk: qcom: gcc-msm8939: Add missing SYSTEM_MM_NOC_BFDCD_CLK_SRC 2022-08-17 14:41:40 +02:00
keys
kunit
kvm
linux tpm: eventlog: Fix section mismatch for DEBUG_SECTION_MISMATCH 2022-08-17 14:42:32 +02:00
math-emu
media media: uapi: HEVC: Change pic_order_cnt definition in v4l2_hevc_dpb_entry 2022-08-17 14:41:06 +02:00
memory
misc
net 9p: Add client parameter to p9_req_put() 2022-08-17 14:42:06 +02:00
pcmcia
ras
rdma
scsi scsi: iscsi: Fix session removal on shutdown 2022-08-17 14:41:38 +02:00
soc net: dsa: felix: keep reference on entire tc-taprio config 2022-08-17 14:40:58 +02:00
sound
target
trace tracing: Use a struct alignof to determine trace event field alignment 2022-08-17 14:42:29 +02:00
uapi netfilter: xtables: Bring SPDX identifier back 2022-08-17 14:41:21 +02:00
vdso
video
xen