scsi: aacraid: mark aac_src_select_comm() static
authorBaoyou Xie <baoyou.xie@linaro.org>
Sun, 4 Sep 2016 06:47:10 +0000 (14:47 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 9 Sep 2016 11:08:38 +0000 (07:08 -0400)
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>
drivers/scsi/aacraid/src.c

index 28f8b8a1b8a4a1ee481531374afd92ed524d8e62..0c453880f214bd46dd1580b5a07b45305446c186 100644 (file)
@@ -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: