Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 52f94b6f authored by Maggie's avatar Maggie Committed by James Bottomley
Browse files

[SCSI] bfa: fix regular sparse check warnings.



Fix all sparse check warnings from make C=2.

Signed-off-by: default avatarMaggie <xmzhang@brocade.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent 3db86353
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2103,7 +2103,7 @@ bfa_fcs_lport_fdmi_timeout(void *arg)
	bfa_sm_send_event(fdmi, FDMISM_EVENT_TIMEOUT);
}

void
static void
bfa_fcs_fdmi_get_hbaattr(struct bfa_fcs_lport_fdmi_s *fdmi,
			 struct bfa_fcs_fdmi_hba_attr_s *hba_attr)
{
@@ -2147,7 +2147,7 @@ bfa_fcs_fdmi_get_hbaattr(struct bfa_fcs_lport_fdmi_s *fdmi,
	hba_attr->max_ct_pyld = cpu_to_be32(FC_MAX_PDUSZ);
}

void
static void
bfa_fcs_fdmi_get_portattr(struct bfa_fcs_lport_fdmi_s *fdmi,
			  struct bfa_fcs_fdmi_port_attr_s *port_attr)
{
@@ -4150,7 +4150,7 @@ bfa_fcs_lport_ns_query(struct bfa_fcs_lport_s *port)
	bfa_sm_send_event(ns, NSSM_EVENT_NS_QUERY);
}

void
static void
bfa_fcs_lport_ns_boot_target_disc(bfa_fcs_lport_t *port)
{

+0 −8
Original line number Diff line number Diff line
@@ -2359,14 +2359,6 @@ bfa_fcs_rport_itnim_ack(struct bfa_fcs_rport_s *rport)
	bfa_sm_send_event(rport, RPSM_EVENT_FC4_OFFLINE);
}

/*
 *	Called by fcptm to notify that the ITN cleanup is done.
 */
void
bfa_fcs_rport_tin_ack(struct bfa_fcs_rport_s *rport)
{
	bfa_sm_send_event(rport, RPSM_EVENT_FC4_OFFLINE);
}

/*
 *	brief
+1 −1
Original line number Diff line number Diff line
@@ -421,7 +421,7 @@ bfa_cb_image_get_chunk(int type, u32 off)
		return bfi_image_ct_cna_get_chunk(off);	break;
	case BFI_IMAGE_CB_FC:
		return bfi_image_cb_fc_get_chunk(off);	break;
	default: return 0;
	default: return NULL;
	}
}

+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ static void bfa_ioc_cb_isr_mode_set(struct bfa_ioc_s *ioc, bfa_boolean_t msix);
static void bfa_ioc_cb_notify_hbfail(struct bfa_ioc_s *ioc);
static void bfa_ioc_cb_ownership_reset(struct bfa_ioc_s *ioc);

struct bfa_ioc_hwif_s hwif_cb;
static struct bfa_ioc_hwif_s hwif_cb;

/*
 * Called from bfa_ioc_attach() to map asic specific calls.
+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ static void bfa_ioc_ct_isr_mode_set(struct bfa_ioc_s *ioc, bfa_boolean_t msix);
static void bfa_ioc_ct_notify_hbfail(struct bfa_ioc_s *ioc);
static void bfa_ioc_ct_ownership_reset(struct bfa_ioc_s *ioc);

struct bfa_ioc_hwif_s hwif_ct;
static struct bfa_ioc_hwif_s hwif_ct;

/*
 * Called from bfa_ioc_attach() to map asic specific calls.
Loading