summaryrefslogtreecommitdiffstats
path: root/drivers/misc/ocxl
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-05-04 18:27:20 +0800
committerMichael Ellerman <mpe@ellerman.id.au>2019-05-28 12:08:11 +1000
commit00b0cdbbc87fb4b531a0d75f4004ed3d89999b80 (patch)
treedf197bf8efa84a62bcc60b44d6806505a242a012 /drivers/misc/ocxl
parentd667edc01bedcd23988ef69f851e7cc26cc3c67f (diff)
downloadlinux-00b0cdbbc87fb4b531a0d75f4004ed3d89999b80.tar.bz2
ocxl: Make ocxl_remove() static
Fix sparse warning: drivers/misc/ocxl/pci.c:44:6: warning: symbol 'ocxl_remove' was not declared. Should it be static? Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: YueHaibing <yuehaibing@huawei.com> Acked-by: Andrew Donnellan <ajd@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/misc/ocxl')
-rw-r--r--drivers/misc/ocxl/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/ocxl/pci.c b/drivers/misc/ocxl/pci.c
index f2a3ef4b9bdd..cb920aa88d3a 100644
--- a/drivers/misc/ocxl/pci.c
+++ b/drivers/misc/ocxl/pci.c
@@ -41,7 +41,7 @@ static int ocxl_probe(struct pci_dev *dev, const struct pci_device_id *id)
return 0;
}
-void ocxl_remove(struct pci_dev *dev)
+static void ocxl_remove(struct pci_dev *dev)
{
struct ocxl_fn *fn;
struct ocxl_afu *afu;