ata: libahci: make ahci_pmp_retry_softreset() as static
authorDaeseok Youn <daeseok.youn@gmail.com>
Wed, 19 Feb 2014 23:34:27 +0000 (08:34 +0900)
committerTejun Heo <tj@kernel.org>
Thu, 20 Feb 2014 00:07:29 +0000 (19:07 -0500)
sparse says:

drivers/ata/libahci.c:1390:5: warning:
 symbol 'ahci_pmp_retry_softreset' was not declared. Should it be static?

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/libahci.c

index cba1b483d1a9c931bf540552bbd9bf232a1ff78d..0cff1167c83cf3569c33e1f2e1c82eaff83e4603 100644 (file)
@@ -1386,8 +1386,8 @@ static int ahci_bad_pmp_check_ready(struct ata_link *link)
        return ata_check_ready(status);
 }
 
-int ahci_pmp_retry_softreset(struct ata_link *link, unsigned int *class,
-                               unsigned long deadline)
+static int ahci_pmp_retry_softreset(struct ata_link *link, unsigned int *class,
+                                   unsigned long deadline)
 {
        struct ata_port *ap = link->ap;
        void __iomem *port_mmio = ahci_port_base(ap);