Commit 60428407 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Jeff Garzik

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: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent b0e73af7
...@@ -419,7 +419,7 @@ int ata_ering_map(struct ata_ering *ering, ...@@ -419,7 +419,7 @@ int ata_ering_map(struct ata_ering *ering,
return rc; 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; ent->eflags |= ATA_EFLAG_OLD_ER;
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment