summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aacraid
diff options
context:
space:
mode:
authorBaoyou Xie <baoyou.xie@linaro.org>2016-09-04 14:47:10 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2016-09-09 07:08:38 -0400
commita44199eee7fdd2791b39da88938e6de6f5058632 (patch)
tree7371f62c46ad74083c01684e89c802aaa2c021f6 /drivers/scsi/aacraid
parent393c8019e9ce1884f232e2d37761c61796e22095 (diff)
downloadtalos-op-linux-a44199eee7fdd2791b39da88938e6de6f5058632.tar.gz
talos-op-linux-a44199eee7fdd2791b39da88938e6de6f5058632.zip
scsi: aacraid: mark aac_src_select_comm() static
We get 1 warning when building kernel with W=1: drivers/scsi/aacraid/src.c:616:5: warning: no previous prototype for 'aac_src_select_comm' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made static. so this patch marks this function with 'static'. Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Dave Carroll <david.carroll@microsemi.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/aacraid')
-rw-r--r--drivers/scsi/aacraid/src.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/aacraid/src.c b/drivers/scsi/aacraid/src.c
index 28f8b8a1b8a4..0c453880f214 100644
--- a/drivers/scsi/aacraid/src.c
+++ b/drivers/scsi/aacraid/src.c
@@ -613,7 +613,7 @@ static int aac_src_restart_adapter(struct aac_dev *dev, int bled)
* @dev: Adapter
* @comm: communications method
*/
-int aac_src_select_comm(struct aac_dev *dev, int comm)
+static int aac_src_select_comm(struct aac_dev *dev, int comm)
{
switch (comm) {
case AAC_COMM_MESSAGE:
OpenPOWER on IntegriCloud