Skip to content

Commit f168c00

Browse files
KexyBiscuitjarkkojs
authored andcommitted
tpm: export tpm2_sessions_init() to fix ibmvtpm building
Commit 08d08e2 ("tpm: ibmvtpm: Call tpm2_sessions_init() to initialize session support") adds call to tpm2_sessions_init() in ibmvtpm, which could be built as a module. However, tpm2_sessions_init() wasn't exported, causing libmvtpm to fail to build as a module: ERROR: modpost: "tpm2_sessions_init" [drivers/char/tpm/tpm_ibmvtpm.ko] undefined! Export tpm2_sessions_init() to resolve the issue. Cc: [email protected] # v6.10+ Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Fixes: 08d08e2 ("tpm: ibmvtpm: Call tpm2_sessions_init() to initialize session support") Signed-off-by: Kexy Biscuit <[email protected]> Signed-off-by: Mingcong Bai <[email protected]> Reviewed-by: Stefan Berger <[email protected]> Reviewed-by: Jarkko Sakkinen <[email protected]> Signed-off-by: Jarkko Sakkinen <[email protected]>
1 parent e5d76ae commit f168c00

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/char/tpm/tpm2-sessions.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1362,4 +1362,5 @@ int tpm2_sessions_init(struct tpm_chip *chip)
13621362

13631363
return rc;
13641364
}
1365+
EXPORT_SYMBOL(tpm2_sessions_init);
13651366
#endif /* CONFIG_TCG_TPM2_HMAC */

0 commit comments

Comments
 (0)