]> err.no Git - linux-2.6/commitdiff
libata: functions with definition should not be extern
authorHarvey Harrison <harvey.harrison@gmail.com>
Fri, 25 Apr 2008 01:37:34 +0000 (18:37 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 25 Apr 2008 03:42:26 +0000 (23:42 -0400)
Noticed by sparse
drivers/ata/libata-core.c:3380:12: warning: function 'ata_wait_after_reset' with external linkage has definition

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-core.c

index b0b00af90d0e18314782fec05cdd136cbd41eff1..fe5c88ba977ef378b383c79ad7e83327189c0690 100644 (file)
@@ -3377,7 +3377,7 @@ int ata_wait_ready(struct ata_link *link, unsigned long deadline,
  *     RETURNS:
  *     0 if @linke is ready before @deadline; otherwise, -errno.
  */
-extern int ata_wait_after_reset(struct ata_link *link, unsigned long deadline,
+int ata_wait_after_reset(struct ata_link *link, unsigned long deadline,
                                int (*check_ready)(struct ata_link *link))
 {
        msleep(ATA_WAIT_AFTER_RESET_MSECS);