tpm: fix some doc warnings in tpm1-cmd.c
Subsystems (2)
PATCH 1/1 tpm: fix some doc warnings in tpm1-cmd.c
Fix the following make W=1 warnings:
drivers/char/tpm/tpm1-cmd.c:325: warning: expecting prototype for tpm_startup(). Prototype was for tpm1_startup() instead drivers/char/tpm/tpm1-cmd.c:621: warning: expecting prototype for tpm_continue_selftest(). Prototype was for tpm1_continue_selftest() instead
Signed-off-by Yang Yingliang <[email protected]>
--- drivers/char/tpm/tpm1-cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/char/tpm/tpm1-cmd.c +2 -2
@@ -312,7 +312,7 @@ unsigned long tpm1_calc_ordinal_duration(struct tpm_chip *chip, u32 ordinal)#define TPM_ST_CLEAR 1/** -* tpm_startup() - turn on the TPM +* tpm1_startup() - turn on the TPM * @chip: TPM chip to use * * Normally the firmware should start the TPM. This function is provided as a
@@ -611,7 +611,7 @@ int tpm1_pcr_read(struct tpm_chip *chip, u32 pcr_idx, u8 *res_buf)#define TPM_ORD_CONTINUE_SELFTEST 83/** -* tpm_continue_selftest() - run TPM's selftest +* tpm1_continue_selftest() - run TPM's selftest * @chip: TPM chip to use * * Returns 0 on success, < 0 in case of fatal error or a value > 0 representing
Signature · 1 line
2.25.1
Quoted 6 lines · Yang Yingliang
Fix the following make W=1 warnings:
drivers/char/tpm/tpm1-cmd.c:325: warning: expecting prototype fortpm_startup(). Prototype was fortpm1_startup()insteaddrivers/char/tpm/tpm1-cmd.c:621: warning: expecting prototype fortpm_continue_selftest(). Prototype was fortpm1_continue_selftest()insteadSigned-off-by Yang Yingliang <[email protected]>
Reviewed-by Jarkko Sakkinen <[email protected]>
/Jarkko
Quoted 30 lines
--- drivers/char/tpm/tpm1-cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/char/tpm/tpm1-cmd.c +2
-2@@ -312,7 +312,7 @@ unsigned long tpm1_calc_ordinal_duration(struct tpm_chip *chip, u32 ordinal)#define TPM_ST_CLEAR 1/** -* tpm_startup() - turn on the TPM +* tpm1_startup() - turn on the TPM * @chip: TPM chip to use * * Normally the firmware should start the TPM. This function is provided as a @@ -611,7 +611,7 @@ int tpm1_pcr_read(struct tpm_chip *chip, u32 pcr_idx, u8 *res_buf)#define TPM_ORD_CONTINUE_SELFTEST 83/** -* tpm_continue_selftest() - run TPM's selftest +* tpm1_continue_selftest() - run TPM's selftest * @chip: TPM chip to use * * Returns 0 on success, < 0 in case of fatal error or a value > 0 representing Signature · 1 line
2.25.1