mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-22 20:23:57 +08:00
[SCSI] qla2xxx: make some functions static
This patch makes some needlessly global functions static. Signed-off-by: Adrian Bunk <bunk@stusta.de> Acked-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
parent
db3a8815fb
commit
e5f82ab834
@ -274,7 +274,7 @@ qla24xx_pci_info_str(struct scsi_qla_host *ha, char *str)
|
|||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *
|
static char *
|
||||||
qla2x00_fw_version_str(struct scsi_qla_host *ha, char *str)
|
qla2x00_fw_version_str(struct scsi_qla_host *ha, char *str)
|
||||||
{
|
{
|
||||||
char un_str[10];
|
char un_str[10];
|
||||||
@ -312,7 +312,7 @@ qla2x00_fw_version_str(struct scsi_qla_host *ha, char *str)
|
|||||||
return (str);
|
return (str);
|
||||||
}
|
}
|
||||||
|
|
||||||
char *
|
static char *
|
||||||
qla24xx_fw_version_str(struct scsi_qla_host *ha, char *str)
|
qla24xx_fw_version_str(struct scsi_qla_host *ha, char *str)
|
||||||
{
|
{
|
||||||
sprintf(str, "%d.%02d.%02d ", ha->fw_major_version,
|
sprintf(str, "%d.%02d.%02d ", ha->fw_major_version,
|
||||||
@ -621,7 +621,7 @@ qla2x00_block_error_handler(struct scsi_cmnd *cmnd)
|
|||||||
* Note:
|
* Note:
|
||||||
* Only return FAILED if command not returned by firmware.
|
* Only return FAILED if command not returned by firmware.
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
int
|
static int
|
||||||
qla2xxx_eh_abort(struct scsi_cmnd *cmd)
|
qla2xxx_eh_abort(struct scsi_cmnd *cmd)
|
||||||
{
|
{
|
||||||
scsi_qla_host_t *ha = to_qla_host(cmd->device->host);
|
scsi_qla_host_t *ha = to_qla_host(cmd->device->host);
|
||||||
@ -758,7 +758,7 @@ qla2x00_eh_wait_for_pending_target_commands(scsi_qla_host_t *ha, unsigned int t)
|
|||||||
* SUCCESS/FAILURE (defined as macro in scsi.h).
|
* SUCCESS/FAILURE (defined as macro in scsi.h).
|
||||||
*
|
*
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
int
|
static int
|
||||||
qla2xxx_eh_device_reset(struct scsi_cmnd *cmd)
|
qla2xxx_eh_device_reset(struct scsi_cmnd *cmd)
|
||||||
{
|
{
|
||||||
scsi_qla_host_t *ha = to_qla_host(cmd->device->host);
|
scsi_qla_host_t *ha = to_qla_host(cmd->device->host);
|
||||||
@ -889,7 +889,7 @@ qla2x00_eh_wait_for_pending_commands(scsi_qla_host_t *ha)
|
|||||||
* SUCCESS/FAILURE (defined as macro in scsi.h).
|
* SUCCESS/FAILURE (defined as macro in scsi.h).
|
||||||
*
|
*
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
int
|
static int
|
||||||
qla2xxx_eh_bus_reset(struct scsi_cmnd *cmd)
|
qla2xxx_eh_bus_reset(struct scsi_cmnd *cmd)
|
||||||
{
|
{
|
||||||
scsi_qla_host_t *ha = to_qla_host(cmd->device->host);
|
scsi_qla_host_t *ha = to_qla_host(cmd->device->host);
|
||||||
@ -950,7 +950,7 @@ eh_bus_reset_done:
|
|||||||
*
|
*
|
||||||
* Note:
|
* Note:
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
int
|
static int
|
||||||
qla2xxx_eh_host_reset(struct scsi_cmnd *cmd)
|
qla2xxx_eh_host_reset(struct scsi_cmnd *cmd)
|
||||||
{
|
{
|
||||||
scsi_qla_host_t *ha = to_qla_host(cmd->device->host);
|
scsi_qla_host_t *ha = to_qla_host(cmd->device->host);
|
||||||
|
@ -449,7 +449,7 @@ nvram_data_to_access_addr(uint32_t naddr)
|
|||||||
return FARX_ACCESS_NVRAM_DATA | naddr;
|
return FARX_ACCESS_NVRAM_DATA | naddr;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t
|
static uint32_t
|
||||||
qla24xx_read_flash_dword(scsi_qla_host_t *ha, uint32_t addr)
|
qla24xx_read_flash_dword(scsi_qla_host_t *ha, uint32_t addr)
|
||||||
{
|
{
|
||||||
int rval;
|
int rval;
|
||||||
@ -490,7 +490,7 @@ qla24xx_read_flash_data(scsi_qla_host_t *ha, uint32_t *dwptr, uint32_t faddr,
|
|||||||
return dwptr;
|
return dwptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
static int
|
||||||
qla24xx_write_flash_dword(scsi_qla_host_t *ha, uint32_t addr, uint32_t data)
|
qla24xx_write_flash_dword(scsi_qla_host_t *ha, uint32_t addr, uint32_t data)
|
||||||
{
|
{
|
||||||
int rval;
|
int rval;
|
||||||
@ -512,7 +512,7 @@ qla24xx_write_flash_dword(scsi_qla_host_t *ha, uint32_t addr, uint32_t data)
|
|||||||
return rval;
|
return rval;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
qla24xx_get_flash_manufacturer(scsi_qla_host_t *ha, uint8_t *man_id,
|
qla24xx_get_flash_manufacturer(scsi_qla_host_t *ha, uint8_t *man_id,
|
||||||
uint8_t *flash_id)
|
uint8_t *flash_id)
|
||||||
{
|
{
|
||||||
@ -537,7 +537,7 @@ qla24xx_get_flash_manufacturer(scsi_qla_host_t *ha, uint8_t *man_id,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
static int
|
||||||
qla24xx_write_flash_data(scsi_qla_host_t *ha, uint32_t *dwptr, uint32_t faddr,
|
qla24xx_write_flash_data(scsi_qla_host_t *ha, uint32_t *dwptr, uint32_t faddr,
|
||||||
uint32_t dwords)
|
uint32_t dwords)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user