From: Colin Ian King Date: Tue, 20 Jun 2017 10:22:02 +0000 (+0100) Subject: tpm_tis: make ilb_base_addr static X-Git-Tag: v4.14-rc1~544^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bc397085ca975d685c7a0b3a2984932eea4f6af0;p=platform%2Fkernel%2Flinux-rpi.git 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 Reviewed-by: Jarkko Sakkinen Signed-off-by: Jarkko Sakkinen Signed-off-by: James Morris --- diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c index d97ce22..7e55aa9 100644 --- a/drivers/char/tpm/tpm_tis.c +++ b/drivers/char/tpm/tpm_tis.c @@ -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) {