Re: [PATCH] [SCSI] mvsas: mark symbols static where possible

From: Martin K. Petersen
Date: Mon Sep 26 2016 - 21:17:24 EST


>>>>> "Baoyou" == Baoyou Xie <baoyou.xie@xxxxxxxxxx> writes:

Baoyou> We get a few warnings when building kernel with W=1:
Baoyou> drivers/scsi/mvsas/mv_sas.c:77:18: warning: no previous
Baoyou> prototype for 'mvs_find_dev_mvi' [-Wmissing-prototypes]
Baoyou> drivers/scsi/mvsas/mv_sas.c:105:5: warning: no previous
Baoyou> prototype for 'mvs_find_dev_phyno' [-Wmissing-prototypes]
Baoyou> drivers/scsi/mvsas/mv_sas.c:1161:20: warning: no previous
Baoyou> prototype for 'mvs_alloc_dev' [-Wmissing-prototypes]
Baoyou> drivers/scsi/mvsas/mv_sas.c:1178:6: warning: no previous
Baoyou> prototype for 'mvs_free_dev' [-Wmissing-prototypes]
Baoyou> drivers/scsi/mvsas/mv_sas.c:1188:5: warning: no previous
Baoyou> prototype for 'mvs_dev_found_notify' [-Wmissing-prototypes]
Baoyou> drivers/scsi/mvsas/mv_sas.c:1244:6: warning: no previous
Baoyou> prototype for 'mvs_dev_gone_notify' [-Wmissing-prototypes]
Baoyou> drivers/scsi/mvsas/mv_sas.c:1614:6: warning: no previous
Baoyou> prototype for 'mvs_set_sense' [-Wmissing-prototypes]
Baoyou> drivers/scsi/mvsas/mv_sas.c:1653:6: warning: no previous
Baoyou> prototype for 'mvs_fill_ssp_resp_iu' [-Wmissing-prototypes]
Baoyou> drivers/scsi/mvsas/mv_64xx.c:139:6: warning: no previous
Baoyou> prototype for 'mvs_64xx_clear_srs_irq' [-Wmissing-prototypes]
Baoyou> drivers/scsi/mvsas/mv_64xx.c:566:6: warning: no previous
Baoyou> prototype for 'mvs_64xx_make_prd' [-Wmissing-prototypes] ....

Applied to 4.9/scsi-queue.

--
Martin K. Petersen Oracle Linux Engineering