]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
hwrng: cavium - make two functions static
authorColin Ian King <colin.king@canonical.com>
Mon, 26 Feb 2018 14:51:19 +0000 (14:51 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 9 Mar 2018 14:45:34 +0000 (22:45 +0800)
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>
drivers/char/hw_random/cavium-rng-vf.c
drivers/char/hw_random/cavium-rng.c

index dd1007aecb10ee674f0c6c6dbfd2ba452c5dbe40..2d1352b67168b96fb70fe13729f8dfb84262828e 100644 (file)
@@ -77,7 +77,7 @@ static int cavium_rng_probe_vf(struct pci_dev         *pdev,
 }
 
 /* Remove the VF */
-void  cavium_rng_remove_vf(struct pci_dev *pdev)
+static void  cavium_rng_remove_vf(struct pci_dev *pdev)
 {
        struct cavium_rng *rng;
 
index a944e0a47f429cb55c4ccaaabf5353db6474f1d9..63d6e68c24d2fc979f54345c2f71ad2e58b36236 100644 (file)
@@ -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;