Skip to content

Commit 0604cf1

Browse files
Dr. David Alan Gilbertmartinkpetersen
authored andcommitted
scsi: bfa: Remove unused bfa_svc code
These functions aren't called anywhere, remove them. Build tested only. Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org> Link: https://lore.kernel.org/r/20240915125633.25036-3-linux@treblig.org Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent f3845d7 commit 0604cf1

3 files changed

Lines changed: 0 additions & 78 deletions

File tree

drivers/scsi/bfa/bfa_modules.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ void bfa_sgpg_meminfo(struct bfa_iocfc_cfg_s *, struct bfa_meminfo_s *,
113113
struct bfa_s *);
114114
void bfa_sgpg_attach(struct bfa_s *, void *bfad, struct bfa_iocfc_cfg_s *,
115115
struct bfa_pcidev_s *);
116-
void bfa_uf_iocdisable(struct bfa_s *);
117116
void bfa_uf_meminfo(struct bfa_iocfc_cfg_s *, struct bfa_meminfo_s *,
118117
struct bfa_s *);
119118
void bfa_uf_attach(struct bfa_s *, void *, struct bfa_iocfc_cfg_s *,

drivers/scsi/bfa/bfa_svc.c

Lines changed: 0 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -913,14 +913,6 @@ bfa_fcxp_get_reqbuf(struct bfa_fcxp_s *fcxp)
913913
return reqbuf;
914914
}
915915

916-
u32
917-
bfa_fcxp_get_reqbufsz(struct bfa_fcxp_s *fcxp)
918-
{
919-
struct bfa_fcxp_mod_s *mod = fcxp->fcxp_mod;
920-
921-
return mod->req_pld_sz;
922-
}
923-
924916
/*
925917
* Get the internal response buffer pointer
926918
*
@@ -1023,21 +1015,6 @@ bfa_fcxp_send(struct bfa_fcxp_s *fcxp, struct bfa_rport_s *rport,
10231015
bfa_fcxp_queue(fcxp, send_req);
10241016
}
10251017

1026-
/*
1027-
* Abort a BFA FCXP
1028-
*
1029-
* @param[in] fcxp BFA fcxp pointer
1030-
*
1031-
* @return void
1032-
*/
1033-
bfa_status_t
1034-
bfa_fcxp_abort(struct bfa_fcxp_s *fcxp)
1035-
{
1036-
bfa_trc(fcxp->fcxp_mod->bfa, fcxp->fcxp_tag);
1037-
WARN_ON(1);
1038-
return BFA_STATUS_OK;
1039-
}
1040-
10411018
void
10421019
bfa_fcxp_req_rsp_alloc_wait(struct bfa_s *bfa, struct bfa_fcxp_wqe_s *wqe,
10431020
bfa_fcxp_alloc_cbfn_t alloc_cbfn, void *alloc_cbarg,
@@ -3857,15 +3834,6 @@ bfa_fcport_clr_hardalpa(struct bfa_s *bfa)
38573834
return BFA_STATUS_OK;
38583835
}
38593836

3860-
bfa_boolean_t
3861-
bfa_fcport_get_hardalpa(struct bfa_s *bfa, u8 *alpa)
3862-
{
3863-
struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
3864-
3865-
*alpa = fcport->cfg.hardalpa;
3866-
return fcport->cfg.cfg_hardalpa;
3867-
}
3868-
38693837
u8
38703838
bfa_fcport_get_myalpa(struct bfa_s *bfa)
38713839
{
@@ -3923,17 +3891,6 @@ bfa_fcport_set_tx_bbcredit(struct bfa_s *bfa, u16 tx_bbcredit)
39233891
/*
39243892
* Get port attributes.
39253893
*/
3926-
3927-
wwn_t
3928-
bfa_fcport_get_wwn(struct bfa_s *bfa, bfa_boolean_t node)
3929-
{
3930-
struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
3931-
if (node)
3932-
return fcport->nwwn;
3933-
else
3934-
return fcport->pwwn;
3935-
}
3936-
39373894
void
39383895
bfa_fcport_get_attr(struct bfa_s *bfa, struct bfa_port_attr_s *attr)
39393896
{
@@ -4105,18 +4062,6 @@ bfa_fcport_is_ratelim(struct bfa_s *bfa)
41054062

41064063
}
41074064

4108-
/*
4109-
* Enable/Disable FAA feature in port config
4110-
*/
4111-
void
4112-
bfa_fcport_cfg_faa(struct bfa_s *bfa, u8 state)
4113-
{
4114-
struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
4115-
4116-
bfa_trc(bfa, state);
4117-
fcport->cfg.faa_state = state;
4118-
}
4119-
41204065
/*
41214066
* Get default minimum ratelim speed
41224067
*/
@@ -5528,23 +5473,6 @@ uf_recv(struct bfa_s *bfa, struct bfi_uf_frm_rcvd_s *m)
55285473
bfa_cb_queue(bfa, &uf->hcb_qe, __bfa_cb_uf_recv, uf);
55295474
}
55305475

5531-
void
5532-
bfa_uf_iocdisable(struct bfa_s *bfa)
5533-
{
5534-
struct bfa_uf_mod_s *ufm = BFA_UF_MOD(bfa);
5535-
struct bfa_uf_s *uf;
5536-
struct list_head *qe, *qen;
5537-
5538-
/* Enqueue unused uf resources to free_q */
5539-
list_splice_tail_init(&ufm->uf_unused_q, &ufm->uf_free_q);
5540-
5541-
list_for_each_safe(qe, qen, &ufm->uf_posted_q) {
5542-
uf = (struct bfa_uf_s *) qe;
5543-
list_del(&uf->qe);
5544-
bfa_uf_put(ufm, uf);
5545-
}
5546-
}
5547-
55485476
void
55495477
bfa_uf_start(struct bfa_s *bfa)
55505478
{

drivers/scsi/bfa/bfa_svc.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -587,14 +587,12 @@ bfa_status_t bfa_fcport_cfg_topology(struct bfa_s *bfa,
587587
enum bfa_port_topology bfa_fcport_get_topology(struct bfa_s *bfa);
588588
enum bfa_port_topology bfa_fcport_get_cfg_topology(struct bfa_s *bfa);
589589
bfa_status_t bfa_fcport_cfg_hardalpa(struct bfa_s *bfa, u8 alpa);
590-
bfa_boolean_t bfa_fcport_get_hardalpa(struct bfa_s *bfa, u8 *alpa);
591590
u8 bfa_fcport_get_myalpa(struct bfa_s *bfa);
592591
bfa_status_t bfa_fcport_clr_hardalpa(struct bfa_s *bfa);
593592
bfa_status_t bfa_fcport_cfg_maxfrsize(struct bfa_s *bfa, u16 maxsize);
594593
u16 bfa_fcport_get_maxfrsize(struct bfa_s *bfa);
595594
u8 bfa_fcport_get_rx_bbcredit(struct bfa_s *bfa);
596595
void bfa_fcport_get_attr(struct bfa_s *bfa, struct bfa_port_attr_s *attr);
597-
wwn_t bfa_fcport_get_wwn(struct bfa_s *bfa, bfa_boolean_t node);
598596
void bfa_fcport_event_register(struct bfa_s *bfa,
599597
void (*event_cbfn) (void *cbarg,
600598
enum bfa_port_linkstate event), void *event_cbarg);
@@ -619,7 +617,6 @@ bfa_boolean_t bfa_fcport_is_trunk_enabled(struct bfa_s *bfa);
619617
void bfa_fcport_dportenable(struct bfa_s *bfa);
620618
void bfa_fcport_dportdisable(struct bfa_s *bfa);
621619
bfa_status_t bfa_fcport_is_pbcdisabled(struct bfa_s *bfa);
622-
void bfa_fcport_cfg_faa(struct bfa_s *bfa, u8 state);
623620
bfa_status_t bfa_fcport_cfg_bbcr(struct bfa_s *bfa,
624621
bfa_boolean_t on_off, u8 bb_scn);
625622
bfa_status_t bfa_fcport_get_bbcr_attr(struct bfa_s *bfa,
@@ -687,8 +684,6 @@ void bfa_fcxp_send(struct bfa_fcxp_s *fcxp, struct bfa_rport_s *rport,
687684
bfa_cb_fcxp_send_t cbfn,
688685
void *cbarg,
689686
u32 rsp_maxlen, u8 rsp_timeout);
690-
bfa_status_t bfa_fcxp_abort(struct bfa_fcxp_s *fcxp);
691-
u32 bfa_fcxp_get_reqbufsz(struct bfa_fcxp_s *fcxp);
692687
u32 bfa_fcxp_get_maxrsp(struct bfa_s *bfa);
693688
void bfa_fcxp_res_recfg(struct bfa_s *bfa, u16 num_fcxp_fw);
694689

0 commit comments

Comments
 (0)