diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-02-26 14:51:19 +0000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-03-09 22:45:34 +0800 |
commit | cf03868711f701f83ca3c28aa086c7eacf6c010e (patch) | |
tree | 3fa91c697e9c78a57aab024528f3e6f6498dfcbe /drivers/char/hw_random/cavium-rng.c | |
parent | 4dc5475ae0375ea4f9283dfd9b2ddc91b20d4c4b (diff) | |
download | linux-cf03868711f701f83ca3c28aa086c7eacf6c010e.tar.gz linux-cf03868711f701f83ca3c28aa086c7eacf6c010e.tar.bz2 linux-cf03868711f701f83ca3c28aa086c7eacf6c010e.zip |
hwrng: cavium - make two functions static
Functions cavium_rng_remove and cavium_rng_remove_vf are local to the
source and do not need to be in global scope, so make them static.
Cleans up sparse warnings:
drivers/char/hw_random/cavium-rng-vf.c:80:7: warning: symbol
'cavium_rng_remove_vf' was not declared. Should it be static?
drivers/char/hw_random/cavium-rng.c:65:7: warning: symbol
'cavium_rng_remove' was not declared. Should it be static?
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/char/hw_random/cavium-rng.c')
-rw-r--r-- | drivers/char/hw_random/cavium-rng.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/hw_random/cavium-rng.c b/drivers/char/hw_random/cavium-rng.c index a944e0a47f42..63d6e68c24d2 100644 --- a/drivers/char/hw_random/cavium-rng.c +++ b/drivers/char/hw_random/cavium-rng.c @@ -62,7 +62,7 @@ static int cavium_rng_probe(struct pci_dev *pdev, } /* Disable VF and RNG Hardware */ -void cavium_rng_remove(struct pci_dev *pdev) +static void cavium_rng_remove(struct pci_dev *pdev) { struct cavium_rng_pf *rng; |