tpm_tis: make ilb_base_addr static
Subsystems (2)
PATCH 1/1 tpm_tis: make ilb_base_addr static
From: Colin Ian King <[email protected]>
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 <[email protected]>
--- drivers/char/tpm/tpm_tis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/tpm/tpm_tis.c +1 -1
@@ -138,7 +138,7 @@ static int check_acpi_tpm2(struct device *dev)#define LPC_CNTRL_REG_OFFSET 0x84#define LPC_CLKRUN_EN (1 << 2) -void __iomem *ilb_base_addr; +static void __iomem *ilb_base_addr;static inline bool is_bsw (void ) {
Signature · 1 line
2.11.0
Quoted 9 lines · Colin King
From: Colin Ian King <[email protected]>
The pointer
ilb_base_addrdoes 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 <[email protected]>
Thanks Colin.
Reviewed-by Jarkko Sakkinen <[email protected]>
/Jarkko
Quoted 20 lines
--- drivers/char/tpm/tpm_tis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/char/tpm/tpm_tis.c +1
-1@@ -138,7 +138,7 @@ static int check_acpi_tpm2(struct device *dev)#define LPC_CNTRL_REG_OFFSET 0x84#define LPC_CLKRUN_EN (1 << 2) -void __iomem *ilb_base_addr; +static void __iomem *ilb_base_addr;static inline bool is_bsw (void ) {Signature · 1 line
2.11.0