aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata-transport.c
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2012-04-16 21:04:41 -0400
committerJeff Garzik <jgarzik@redhat.com>2012-07-25 15:14:55 -0400
commitb0e73af78a1ceeeabf2bb30e798ecf55243edba8 (patch)
tree3c0283e5fb294cb7ecbb9a386aefd88ea86a04fd /drivers/ata/libata-transport.c
parent3a8b788f61a5b85f3a3a4630dc5f4c13b91e1bba (diff)
libata-transport.c: local functions should not be exposed globally
Functions not referenced outside of a source file should be marked static to prevent it from being exposed globally. This quiets the sparse warnings: warning: symbol 'ata_is_port' was not declared. Should it be static? warning: symbol 'ata_is_link' was not declared. Should it be static? warning: symbol 'ata_is_ata_dev' 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-transport.c')
-rw-r--r--drivers/ata/libata-transport.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ata/libata-transport.c b/drivers/ata/libata-transport.c
index c34190485377..c04d393d20c1 100644
--- a/drivers/ata/libata-transport.c
+++ b/drivers/ata/libata-transport.c
@@ -232,7 +232,7 @@ static void ata_tport_release(struct device *dev)
232 * Returns: 232 * Returns:
233 * %1 if the device represents a ATA Port, %0 else 233 * %1 if the device represents a ATA Port, %0 else
234 */ 234 */
235int ata_is_port(const struct device *dev) 235static int ata_is_port(const struct device *dev)
236{ 236{
237 return dev->release == ata_tport_release; 237 return dev->release == ata_tport_release;
238} 238}
@@ -355,7 +355,7 @@ static void ata_tlink_release(struct device *dev)
355 * Returns: 355 * Returns:
356 * %1 if the device represents a ATA link, %0 else 356 * %1 if the device represents a ATA link, %0 else
357 */ 357 */
358int ata_is_link(const struct device *dev) 358static int ata_is_link(const struct device *dev)
359{ 359{
360 return dev->release == ata_tlink_release; 360 return dev->release == ata_tlink_release;
361} 361}
@@ -572,7 +572,7 @@ static void ata_tdev_release(struct device *dev)
572 * Returns: 572 * Returns:
573 * %1 if the device represents a ATA device, %0 else 573 * %1 if the device represents a ATA device, %0 else
574 */ 574 */
575int ata_is_ata_dev(const struct device *dev) 575static int ata_is_ata_dev(const struct device *dev)
576{ 576{
577 return dev->release == ata_tdev_release; 577 return dev->release == ata_tdev_release;
578} 578}