drivers: ata: Mark the function ahci_init_interrupts() as static in ahci.c
authorRashika Kheria <rashika.kheria@gmail.com>
Sat, 14 Dec 2013 14:08:08 +0000 (19:38 +0530)
committerTejun Heo <tj@kernel.org>
Sat, 14 Dec 2013 21:21:18 +0000 (16:21 -0500)
This patch marks the function ahci_init_interrupts() as static in ahci.c
because it is not used outside this file.

Thus, it also eliminates the following warning in ahci.c:
drivers/ata/ahci.c:1099:5: warning: no previous prototype for ‘ahci_init_interrupts’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
drivers/ata/ahci.c

index ef8642e12a7627e364b92ff4002a7ed632d209db..ea5b5a33a8b81ded425b90590e769f04a87a89e7 100644 (file)
@@ -1145,7 +1145,7 @@ static inline void ahci_gtf_filter_workaround(struct ata_host *host)
 {}
 #endif
 
-int ahci_init_interrupts(struct pci_dev *pdev, struct ahci_host_priv *hpriv)
+static int ahci_init_interrupts(struct pci_dev *pdev, struct ahci_host_priv *hpriv)
 {
        int rc;
        unsigned int maxvec;