]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
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)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 27 Feb 2017 06:21:08 +0000 (22:21 -0800)
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>
(cherry picked from commit a44199eee7fdd2791b39da88938e6de6f5058632)

Orabug: 25505509
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/scsi/aacraid/src.c

index 8c2fe86103d78962ef432a398418bddf572096f0..8b000d6fe8f6cbf9c1edb3779124c2460478e1f6 100644 (file)
@@ -629,7 +629,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: