Skip to content

Commit

Permalink
libata-eh.c: local functions should not be exposed globally
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
H Hartley Sweeten authored and Jeff Garzik committed Jul 25, 2012
1 parent b0e73af commit 6042840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ata/libata-eh.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6042840

Please sign in to comment.