Messages in this thread Patch in this message | | | Date | Sat, 29 Mar 2014 23:58:28 +0530 | From | Rashika Kheria <> | Subject | [PATCH 39/55] scsi: Mark functions as static in qla2xxx/qla_iocb.c |
| |
Mark functions as static in qla2xxx/qla_iocb.c because they are not used outside this file.
This eliminates the following warning in qla2xxx/qla_iocb.c: drivers/scsi/qla2xxx/qla_iocb.c:714:1: warning: no previous prototype for ‘qla24xx_calc_dsd_lists’ [-Wmissing-prototypes] drivers/scsi/qla2xxx/qla_iocb.c:734:1: warning: no previous prototype for ‘qla24xx_build_scsi_iocbs’ [-Wmissing-prototypes]
Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> --- drivers/scsi/qla2xxx/qla_iocb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/scsi/qla2xxx/qla_iocb.c b/drivers/scsi/qla2xxx/qla_iocb.c index 46b9307..2629477 100644 --- a/drivers/scsi/qla2xxx/qla_iocb.c +++ b/drivers/scsi/qla2xxx/qla_iocb.c @@ -710,7 +710,7 @@ qla24xx_build_scsi_type_6_iocbs(srb_t *sp, struct cmd_type_6 *cmd_pkt, * * Returns the number of dsd list needed to store @dsds. */ -inline uint16_t +static inline uint16_t qla24xx_calc_dsd_lists(uint16_t dsds) { uint16_t dsd_lists = 0; @@ -730,7 +730,7 @@ qla24xx_calc_dsd_lists(uint16_t dsds) * @cmd_pkt: Command type 3 IOCB * @tot_dsds: Total number of segments to transfer */ -inline void +static inline void qla24xx_build_scsi_iocbs(srb_t *sp, struct cmd_type_7 *cmd_pkt, uint16_t tot_dsds) { -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |