linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] drivers: ata: Mark the function ahci_init_interrupts() as static in ahci.c
@ 2013-12-14 14:08 Rashika Kheria
  2013-12-14 14:10 ` [PATCH 2/2] drivers: ata: Mark the function as static in libahci.c Rashika Kheria
  2013-12-14 20:47 ` [PATCH 1/2] drivers: ata: Mark the function ahci_init_interrupts() as static in ahci.c Josh Triplett
  0 siblings, 2 replies; 5+ messages in thread
From: Rashika Kheria @ 2013-12-14 14:08 UTC (permalink / raw)
  To: linux-kernel; +Cc: Tejun Heo, linux-ide, josh

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>
---
 drivers/ata/ahci.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index 14f1e95..4ab1d41 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -1097,7 +1097,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;
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-12-14 21:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-14 14:08 [PATCH 1/2] drivers: ata: Mark the function ahci_init_interrupts() as static in ahci.c Rashika Kheria
2013-12-14 14:10 ` [PATCH 2/2] drivers: ata: Mark the function as static in libahci.c Rashika Kheria
2013-12-14 20:47   ` Josh Triplett
2013-12-14 21:23   ` Tejun Heo
2013-12-14 20:47 ` [PATCH 1/2] drivers: ata: Mark the function ahci_init_interrupts() as static in ahci.c Josh Triplett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).