Skip to content

Commit 684c6bd

Browse files
stefanbergerJarkko Sakkinen
authored andcommitted
tpm: Export tpm2_get_cc_attrs_tbl for ibmvtpm driver as module
This patch fixes the following problem when the ibmvtpm driver is built as a module: ERROR: modpost: "tpm2_get_cc_attrs_tbl" [drivers/char/tpm/tpm_ibmvtpm.ko] undefined! make[1]: *** [scripts/Makefile.modpost:94: __modpost] Error 1 make: *** [Makefile:1298: modules] Error 2 Fixes: 18b3670 ("tpm: ibmvtpm: Add support for TPM2") Signed-off-by: Stefan Berger <[email protected]> Reported-by: Sachin Sant <[email protected]> Tested-by: Sachin Sant <[email protected]> Reviewed-by: Jarkko Sakkinen <[email protected]> Signed-off-by: Jarkko Sakkinen <[email protected]>
1 parent ae83d0b commit 684c6bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/char/tpm/tpm2-cmd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,7 @@ int tpm2_get_cc_attrs_tbl(struct tpm_chip *chip)
681681
rc = -ENODEV;
682682
return rc;
683683
}
684+
EXPORT_SYMBOL_GPL(tpm2_get_cc_attrs_tbl);
684685

685686
/**
686687
* tpm2_startup - turn on the TPM

0 commit comments

Comments
 (0)