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

tpm_tis: make ilb_base_addr static

The pointer ilb_base_addr does not need to be in global scope, so make
it static.

Cleans up sparse warning:
"symbol 'ilb_base_addr' was not declared. Should it be static?"

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>

authored by

Colin Ian King and committed by
James Morris
bc397085 19cbe4f6

+1 -1
+1 -1
drivers/char/tpm/tpm_tis.c
··· 138 138 #define LPC_CNTRL_REG_OFFSET 0x84 139 139 #define LPC_CLKRUN_EN (1 << 2) 140 140 141 - void __iomem *ilb_base_addr; 141 + static void __iomem *ilb_base_addr; 142 142 143 143 static inline bool is_bsw(void) 144 144 {