]> git.baikalelectronics.ru Git - kernel.git/commit
libata-transport.c: local functions should not be exposed globally
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 17 Apr 2012 01:04:41 +0000 (18:04 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 25 Jul 2012 19:14:55 +0000 (15:14 -0400)
commitcb986bee5e2fe99217f1f59f5629e02316e2e21d
tree3c0283e5fb294cb7ecbb9a386aefd88ea86a04fd
parent0fce31b1e9f9e07b9db0768929b703cdd256e3fd
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>
drivers/ata/libata-transport.c