drivers/scsi/qla2xxx/: make some functions static
Subsystems (2)
PATCH 7/17 drivers/scsi/qla2xxx/: make some functions static
From: Adrian Bunk <[email protected]>
This patch makes some needlessly global functions static.
Signed-off-by Adrian Bunk <[email protected]>
Cc James Bottomley <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/scsi/qla2xxx/qla_os.c | 12 ++++++------ drivers/scsi/qla2xxx/qla_sup.c | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-)
drivers/scsi/qla2xxx/qla_os.c renamed from drivers/scsi/qla2xxx/qla_os.c~drivers-scsi-qla2xxx-make-some-functions-static +6 -6
@@ -274,7 +274,7 @@ qla24xx_pci_info_str(struct scsi_qla_hosreturn str; } -char * +static char *qla2x00_fw_version_str (struct scsi_qla_host *ha,char *str) {char un_str[10 ];
@@ -312,7 +312,7 @@ qla2x00_fw_version_str(struct scsi_qla_hreturn (str); } -char * +static char *qla24xx_fw_version_str (struct scsi_qla_host *ha,char *str) { sprintf(str, "%d.%02d.%02d ", ha->fw_major_version,
@@ -600,7 +600,7 @@ qla2x00_wait_for_loop_ready(scsi_qla_hos* * Note: **************************************************************************/ -int +static int qla2xxx_eh_abort (struct scsi_cmnd *cmd) {scsi_qla_host_t *ha =to_qla_host (cmd->device->host);
@@ -734,7 +734,7 @@ qla2x00_eh_wait_for_pending_target_comma* SUCCESS/FAILURE (defined as macro in scsi.h). * **************************************************************************/ -int +static int qla2xxx_eh_device_reset (struct scsi_cmnd *cmd) {scsi_qla_host_t *ha =to_qla_host (cmd->device->host);
@@ -865,7 +865,7 @@ qla2x00_eh_wait_for_pending_commands(scs* SUCCESS/FAILURE (defined as macro in scsi.h). * **************************************************************************/ -int +static int qla2xxx_eh_bus_reset (struct scsi_cmnd *cmd) {scsi_qla_host_t *ha =to_qla_host (cmd->device->host);
@@ -926,7 +926,7 @@ eh_bus_reset_done:* * Note: **************************************************************************/ -int +static int qla2xxx_eh_host_reset (struct scsi_cmnd *cmd) {scsi_qla_host_t *ha =to_qla_host (cmd->device->host);
drivers/scsi/qla2xxx/qla_sup.c renamed from drivers/scsi/qla2xxx/qla_sup.c~drivers-scsi-qla2xxx-make-some-functions-static +4 -4
@@ -428,7 +428,7 @@ nvram_data_to_access_addr(uint32_t naddrreturn FARX_ACCESS_NVRAM_DATA | naddr; } -uint32_t +static uint32_t qla24xx_read_flash_dword (scsi_qla_host_t *ha,uint32_t addr) {int rval;
@@ -469,7 +469,7 @@ qla24xx_read_flash_data(scsi_qla_host_treturn dwptr; } -int +static int qla24xx_write_flash_dword (scsi_qla_host_t *ha,uint32_t addr,uint32_t data) {int rval;
@@ -491,7 +491,7 @@ qla24xx_write_flash_dword(scsi_qla_host_return rval; } -void +static void qla24xx_get_flash_manufacturer (scsi_qla_host_t *ha,uint8_t *man_id,uint8_t *flash_id) {
@@ -502,7 +502,7 @@ qla24xx_get_flash_manufacturer(scsi_qla_ *flash_id =MSB (ids); } -int +static int qla24xx_write_flash_data (scsi_qla_host_t *ha,uint32_t *dwptr,uint32_t faddr,uint32_t dwords) {
_