summaryrefslogtreecommitdiffstats
path: root/drivers/ata/ahci.c
diff options
context:
space:
mode:
authorRashika Kheria <rashika.kheria@gmail.com>2013-12-14 15:08:08 +0100
committerTejun Heo <tj@kernel.org>2013-12-14 22:21:18 +0100
commitd934145139664daa1ae918d3f0a7f3f47225ff33 (patch)
tree734fad08661a088844ae0358ec68b4f3ee92e56f /drivers/ata/ahci.c
parentahci: imx: fix the error handling in imx_ahci_probe() (diff)
downloadlinux-d934145139664daa1ae918d3f0a7f3f47225ff33.tar.xz
linux-d934145139664daa1ae918d3f0a7f3f47225ff33.zip
drivers: ata: Mark the function ahci_init_interrupts() as static in ahci.c
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>
Diffstat (limited to '')
-rw-r--r--drivers/ata/ahci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index ef8642e12a76..ea5b5a33a8b8 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -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;