diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-06-20 11:22:02 +0100 |
---|---|---|
committer | James Morris <james.l.morris@oracle.com> | 2017-07-07 09:49:25 +1000 |
commit | bc397085ca975d685c7a0b3a2984932eea4f6af0 (patch) | |
tree | 7d10e1561cd8760f2578343c1296a406c76d09e0 /drivers/char/tpm/tpm_tis.c | |
parent | 19cbe4f680b48f950246815b891a66eeb67f7410 (diff) | |
download | linux-stable-bc397085ca975d685c7a0b3a2984932eea4f6af0.tar.gz linux-stable-bc397085ca975d685c7a0b3a2984932eea4f6af0.tar.bz2 linux-stable-bc397085ca975d685c7a0b3a2984932eea4f6af0.zip |
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>
Diffstat (limited to 'drivers/char/tpm/tpm_tis.c')
-rw-r--r-- | drivers/char/tpm/tpm_tis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c index d97ce22267fb..7e55aa9ce680 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) { |