crypto: inside-secure - Made locally used safexcel_pci_remove() static
authorPascal van Leeuwen <pascalvanl@gmail.com>
Thu, 17 Oct 2019 15:49:09 +0000 (17:49 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 23 Oct 2019 08:47:01 +0000 (19:47 +1100)
safexcel_pci_remove() is only used locally in the module and not exported,
so added a static function specifier.
This fixes a sparse issue reported by Ben Dooks.

Fixes: 625f269a5a7a ("crypto: inside-secure - add support for...")
Signed-off-by: Pascal van Leeuwen <pvanleeuwen@verimatrix.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/inside-secure/safexcel.c

index 5342ba61b02ee483ae178a6f5da65910505fb051..e5f2bd703c2f05b66c0af94177e84be02bbd00c0 100644 (file)
@@ -1880,7 +1880,7 @@ static int safexcel_pci_probe(struct pci_dev *pdev,
        return rc;
 }
 
-void safexcel_pci_remove(struct pci_dev *pdev)
+static void safexcel_pci_remove(struct pci_dev *pdev)
 {
        struct safexcel_crypto_priv *priv = pci_get_drvdata(pdev);
        int i;