ocxl: Make ocxl_remove() static
authorYueHaibing <yuehaibing@huawei.com>
Sat, 4 May 2019 10:27:20 +0000 (18:27 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 28 May 2019 02:08:11 +0000 (12:08 +1000)
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>
drivers/misc/ocxl/pci.c

index f2a3ef4..cb920aa 100644 (file)
@@ -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;