Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tpm: Make tcpci_pm_ops variable static const

File-scope 'tcpci_pm_ops' is not used outside of this unit and is not
modified anywhere, so make it static const to silence sparse warning:

tcpci.c:1002:1: warning: symbol 'tcpci_pm_ops' was not declared. Should it be static?

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Jarkko Sakkinen
e6ffe094 faeab166

+1 -1
+1 -1
drivers/char/tpm/tpm2-cmd.c
··· 21 21 module_param(disable_pcr_integrity, bool, 0444); 22 22 MODULE_PARM_DESC(disable_pcr_integrity, "Disable integrity protection of TPM2_PCR_Extend"); 23 23 24 - struct tpm2_hash tpm2_hash_map[] = { 24 + static const struct tpm2_hash tpm2_hash_map[] = { 25 25 {HASH_ALGO_SHA1, TPM_ALG_SHA1}, 26 26 {HASH_ALGO_SHA256, TPM_ALG_SHA256}, 27 27 {HASH_ALGO_SHA384, TPM_ALG_SHA384},