]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
libata-sff: kill unused prototype and make ata_dev_select() static
authorTejun Heo <tj@kernel.org>
Mon, 10 May 2010 19:41:29 +0000 (21:41 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Sat, 15 May 2010 02:38:46 +0000 (22:38 -0400)
ata_irq_on() was renamed to ata_sff_irq_on() and exported a while ago
but prototype for the original function lingered in
drivers/ata/libata.h.  Kill it.  Also, ata_dev_select() is only used
inside drivers/ata/libata-sff.c.  Make it static.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-sff.c
drivers/ata/libata.h

index a4700af43d103237628ea07b55be7c6120555b74..d5dd88d6dea00ef39fa6ee61bbb464b81ae11284 100644 (file)
@@ -511,7 +511,7 @@ EXPORT_SYMBOL_GPL(ata_sff_dev_select);
  *     LOCKING:
  *     caller.
  */
-void ata_dev_select(struct ata_port *ap, unsigned int device,
+static void ata_dev_select(struct ata_port *ap, unsigned int device,
                           unsigned int wait, unsigned int can_sleep)
 {
        if (ata_msg_probe(ap))
index 823e630963627f75e807a3af793457c8cbf84d6f..132da80aa23af84d5dc80e6e641963a2d79b6b22 100644 (file)
@@ -202,9 +202,6 @@ static inline int sata_pmp_attach(struct ata_device *dev)
 
 /* libata-sff.c */
 #ifdef CONFIG_ATA_SFF
-extern void ata_dev_select(struct ata_port *ap, unsigned int device,
-                           unsigned int wait, unsigned int can_sleep);
-extern u8 ata_irq_on(struct ata_port *ap);
 extern void ata_pio_task(struct work_struct *work);
 #endif /* CONFIG_ATA_SFF */