Huacai Chen
9e7dab7eda
tpm: eventlog: Fix section mismatch for DEBUG_SECTION_MISMATCH
...
[ Upstream commit bed4593645366ad7362a3aa7bc0d100d8d8236a8 ]
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:24:28 +02:00
..
2022-04-08 14:23:57 +02:00
2022-05-25 09:57:28 +02:00
2022-06-09 10:23:07 +02:00
2022-08-17 14:23:55 +02:00
2022-08-17 14:22:47 +02:00
2022-08-17 14:24:09 +02:00
2022-06-14 18:36:12 +02:00
2022-06-09 10:23:25 +02:00
2022-04-27 14:39:01 +02:00
2022-06-09 10:23:06 +02:00
2022-07-12 16:34:53 +02:00
2022-08-17 14:23:01 +02:00
2022-04-20 09:34:04 +02:00
2022-08-17 14:23:48 +02:00
2022-05-18 10:26:56 +02:00
2022-08-17 14:22:58 +02:00
2022-08-17 14:23:11 +02:00
2022-08-17 14:23:11 +02:00
2022-03-11 12:22:34 +01:00
2022-06-22 14:22:02 +02:00
2022-04-08 14:24:17 +02:00
2022-07-29 17:25:25 +02:00
2022-07-12 16:34:57 +02:00
2022-04-08 14:22:59 +02:00
2022-08-17 14:24:24 +02:00
2022-05-01 17:22:24 +02:00
2022-07-12 16:34:54 +02:00
2022-08-17 14:22:46 +02:00
2022-07-21 21:24:13 +02:00
2022-06-09 10:22:48 +02:00
2022-07-12 16:35:01 +02:00
2022-07-12 16:35:01 +02:00
2022-07-12 16:35:01 +02:00
2022-02-23 12:03:17 +01:00
2022-04-08 14:24:18 +02:00
2022-07-23 12:54:02 +02:00
2022-05-30 09:29:09 +02:00
2022-07-07 17:53:26 +02:00
2022-04-08 14:24:13 +02:00
2022-06-09 10:22:47 +02:00
2022-04-27 14:38:50 +02:00
2022-03-08 19:12:39 +01:00
2022-06-14 18:36:06 +02:00
2022-06-14 18:36:21 +02:00
2022-04-08 14:22:59 +02:00
2022-07-12 16:35:09 +02:00
2022-03-08 19:12:40 +01:00
2022-07-02 16:41:17 +02:00
2022-02-01 17:27:15 +01:00
2022-06-09 10:22:47 +02:00
2022-03-16 14:23:46 +01:00
2022-06-09 10:23:20 +02:00
2022-07-12 16:35:06 +02:00
2022-05-30 09:29:09 +02:00
2022-08-17 14:23:29 +02:00
2022-03-23 09:16:42 +01:00
2022-05-01 17:22:32 +02:00
2022-05-25 09:57:22 +02:00
2022-08-11 13:07:50 +02:00
2022-04-13 20:59:03 +02:00
2022-03-08 19:12:32 +01:00
2022-06-14 18:36:23 +02:00
2022-03-08 19:12:38 +01:00
2022-05-09 09:14:30 +02:00
2022-07-21 21:24:29 +02:00
2022-04-27 14:38:51 +02:00
2022-08-17 14:24:08 +02:00
2022-07-23 12:53:57 +02:00
2022-07-12 16:35:08 +02:00
2022-08-17 14:23:08 +02:00
2022-06-09 10:23:12 +02:00
2022-08-17 14:22:57 +02:00
2022-05-25 09:57:26 +02:00
2022-04-27 14:38:57 +02:00
2022-07-12 16:35:10 +02:00
2022-08-17 14:23:43 +02:00
2022-07-12 16:35:17 +02:00
2022-04-13 20:59:28 +02:00
2022-07-02 16:41:16 +02:00
2022-06-09 10:23:32 +02:00
2022-05-18 10:26:47 +02:00
2022-07-07 17:53:32 +02:00
2022-06-09 10:23:17 +02:00
2022-06-09 10:23:17 +02:00
2022-02-16 12:56:09 +01:00
2022-06-14 18:36:24 +02:00
2022-04-08 14:24:09 +02:00
2022-03-02 11:48:06 +01:00
2022-07-23 12:54:08 +02:00
2022-03-08 19:12:42 +01:00
2022-08-17 14:23:14 +02:00
2022-05-01 17:22:29 +02:00
2022-03-16 14:23:46 +01:00
2022-08-17 14:22:57 +02:00
2022-04-08 14:23:37 +02:00
2022-02-01 17:27:10 +01:00
2022-02-08 18:34:05 +01:00
2022-07-07 17:53:24 +02:00
2022-08-17 14:22:51 +02:00
2022-07-12 16:35:09 +02:00
2022-07-02 16:41:17 +02:00
2022-05-30 09:29:15 +02:00
2022-02-01 17:27:01 +01:00
2022-02-01 17:27:15 +01:00
2022-04-08 14:23:01 +02:00
2022-06-09 10:23:01 +02:00
2022-06-09 10:22:29 +02:00
2022-06-14 18:36:27 +02:00
2022-04-08 14:23:06 +02:00
2022-06-29 09:03:17 +02:00
2022-07-21 21:24:15 +02:00
2022-07-12 16:35:17 +02:00
2022-08-17 14:24:14 +02:00
2022-05-25 09:57:37 +02:00
2022-07-12 16:35:08 +02:00
2022-07-21 21:24:43 +02:00
2022-05-30 09:29:15 +02:00
2022-07-29 17:25:16 +02:00
2022-04-08 14:23:40 +02:00
2022-04-13 20:59:28 +02:00
2022-04-13 20:59:28 +02:00
2022-04-13 20:59:28 +02:00
2022-07-12 16:35:03 +02:00
2022-05-12 12:30:05 +02:00
2022-02-16 12:56:19 +01:00
2022-04-08 14:24:17 +02:00
2022-07-29 17:25:11 +02:00
2022-07-21 21:24:35 +02:00
2022-03-02 11:47:51 +01:00
2022-05-30 09:29:13 +02:00
2022-08-17 14:23:22 +02:00
2022-08-17 14:24:28 +02:00
2022-07-29 17:25:32 +02:00
2022-05-01 17:22:33 +02:00
2022-04-20 09:34:13 +02:00
2022-03-16 14:23:43 +01:00
2022-03-16 14:23:43 +01:00
2022-07-12 16:35:01 +02:00
2022-08-17 14:23:01 +02:00
2022-03-16 14:23:44 +01:00