summaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata-eh.c
diff options
context:
space:
mode:
authorH Hartley Sweeten2012-04-13 00:40:37 +0200
committerJeff Garzik2012-07-25 21:17:32 +0200
commit604284071ab09df80fc9872c84c3b4b914ce0f95 (patch)
tree27d909e116ad79fc6717b5a459478a911872351e /drivers/ata/libata-eh.c
parentlibata-transport.c: local functions should not be exposed globally (diff)
downloadkernel-qcow2-linux-604284071ab09df80fc9872c84c3b4b914ce0f95.tar.gz
kernel-qcow2-linux-604284071ab09df80fc9872c84c3b4b914ce0f95.tar.xz
kernel-qcow2-linux-604284071ab09df80fc9872c84c3b4b914ce0f95.zip
libata-eh.c: local functions should not be exposed globally
The function ata_ering_clear_cb is only referenced in this file and should be marked static to prevent it from being exposed globally. This quiets the sparse warning: warning: symbol 'ata_ering_clear_cb' was not declared. Should it be static? Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/libata-eh.c')
-rw-r--r--drivers/ata/libata-eh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c
index 6d53cf9b3b6e..938b6996c38f 100644
--- a/drivers/ata/libata-eh.c
+++ b/drivers/ata/libata-eh.c
@@ -419,7 +419,7 @@ int ata_ering_map(struct ata_ering *ering,
return rc;
}
-int ata_ering_clear_cb(struct ata_ering_entry *ent, void *void_arg)
+static int ata_ering_clear_cb(struct ata_ering_entry *ent, void *void_arg)
{
ent->eflags |= ATA_EFLAG_OLD_ER;
return 0;