diff --git a/qla2x00t-32gbit/qla_bsg.c b/qla2x00t-32gbit/qla_bsg.c index aa991c86c..b3199d79a 100644 --- a/qla2x00t-32gbit/qla_bsg.c +++ b/qla2x00t-32gbit/qla_bsg.c @@ -43,11 +43,7 @@ static void qla2xxx_free_fcport_work(struct work_struct *work) /* BSG support for ELS/CT pass through */ void qla2x00_bsg_job_done(srb_t *sp, int res) { -#ifndef NEW_LIBFC_API - struct fc_bsg_job *bsg_job = sp->u.bsg_job; -#else - struct bsg_job *bsg_job = sp->u.bsg_job; -#endif + BSG_JOB_TYPE *bsg_job = sp->u.bsg_job; struct fc_bsg_reply *bsg_reply = bsg_job->reply; sp->free(sp); @@ -60,11 +56,7 @@ void qla2x00_bsg_job_done(srb_t *sp, int res) void qla2x00_bsg_sp_free(srb_t *sp) { struct qla_hw_data *ha = sp->vha->hw; -#ifndef NEW_LIBFC_API - struct fc_bsg_job *bsg_job = sp->u.bsg_job; -#else - struct bsg_job *bsg_job = sp->u.bsg_job; -#endif + BSG_JOB_TYPE *bsg_job = sp->u.bsg_job; struct fc_bsg_request *bsg_request = bsg_job->request; struct qla_mt_iocb_rqst_fx00 *piocb_rqst; @@ -154,11 +146,7 @@ qla24xx_fcp_prio_cfg_valid(scsi_qla_host_t *vha, } static int -#ifndef NEW_LIBFC_API -qla24xx_proc_fcp_prio_cfg_cmd(struct fc_bsg_job *bsg_job) -#else -qla24xx_proc_fcp_prio_cfg_cmd(struct bsg_job *bsg_job) -#endif +qla24xx_proc_fcp_prio_cfg_cmd(BSG_JOB_TYPE *bsg_job) { struct Scsi_Host *host = fc_bsg_to_shost(bsg_job); struct fc_bsg_request *bsg_request = bsg_job->request; @@ -286,11 +274,7 @@ exit_fcp_prio_cfg: } static int -#ifndef NEW_LIBFC_API -qla2x00_process_els(struct fc_bsg_job *bsg_job) -#else -qla2x00_process_els(struct bsg_job *bsg_job) -#endif +qla2x00_process_els(BSG_JOB_TYPE *bsg_job) { struct fc_bsg_request *bsg_request = bsg_job->request; struct fc_rport *rport; @@ -473,11 +457,7 @@ qla24xx_calc_ct_iocbs(uint16_t dsds) } static int -#ifndef NEW_LIBFC_API -qla2x00_process_ct(struct fc_bsg_job *bsg_job) -#else -qla2x00_process_ct(struct bsg_job *bsg_job) -#endif +qla2x00_process_ct(BSG_JOB_TYPE *bsg_job) { srb_t *sp; struct fc_bsg_request *bsg_request = bsg_job->request; @@ -755,11 +735,7 @@ done_set_internal: } static int -#ifndef NEW_LIBFC_API -qla2x00_process_loopback(struct fc_bsg_job *bsg_job) -#else -qla2x00_process_loopback(struct bsg_job *bsg_job) -#endif +qla2x00_process_loopback(BSG_JOB_TYPE *bsg_job) { struct fc_bsg_request *bsg_request = bsg_job->request; struct fc_bsg_reply *bsg_reply = bsg_job->reply; @@ -1002,11 +978,7 @@ done_unmap_req_sg: } static int -#ifndef NEW_LIBFC_API -qla84xx_reset(struct fc_bsg_job *bsg_job) -#else -qla84xx_reset(struct bsg_job *bsg_job) -#endif +qla84xx_reset(BSG_JOB_TYPE *bsg_job) { struct fc_bsg_request *bsg_request = bsg_job->request; struct Scsi_Host *host = fc_bsg_to_shost(bsg_job); @@ -1042,11 +1014,7 @@ qla84xx_reset(struct bsg_job *bsg_job) } static int -#ifndef NEW_LIBFC_API -qla84xx_updatefw(struct fc_bsg_job *bsg_job) -#else -qla84xx_updatefw(struct bsg_job *bsg_job) -#endif +qla84xx_updatefw(BSG_JOB_TYPE *bsg_job) { struct fc_bsg_request *bsg_request = bsg_job->request; struct fc_bsg_reply *bsg_reply = bsg_job->reply; @@ -1156,11 +1124,7 @@ done_unmap_sg: } static int -#ifndef NEW_LIBFC_API -qla84xx_mgmt_cmd(struct fc_bsg_job *bsg_job) -#else -qla84xx_mgmt_cmd(struct bsg_job *bsg_job) -#endif +qla84xx_mgmt_cmd(BSG_JOB_TYPE *bsg_job) { struct fc_bsg_request *bsg_request = bsg_job->request; struct fc_bsg_reply *bsg_reply = bsg_job->reply; @@ -1356,11 +1320,7 @@ exit_mgmt: } static int -#ifndef NEW_LIBFC_API -qla24xx_iidma(struct fc_bsg_job *bsg_job) -#else -qla24xx_iidma(struct bsg_job *bsg_job) -#endif +qla24xx_iidma(BSG_JOB_TYPE *bsg_job) { struct fc_bsg_request *bsg_request = bsg_job->request; struct fc_bsg_reply *bsg_reply = bsg_job->reply; @@ -1449,13 +1409,8 @@ qla24xx_iidma(struct bsg_job *bsg_job) } static int -#ifndef NEW_LIBFC_API -qla2x00_optrom_setup(struct fc_bsg_job *bsg_job, scsi_qla_host_t *vha, +qla2x00_optrom_setup(BSG_JOB_TYPE *bsg_job, scsi_qla_host_t *vha, uint8_t is_update) -#else -qla2x00_optrom_setup(struct bsg_job *bsg_job, scsi_qla_host_t *vha, - uint8_t is_update) -#endif { struct fc_bsg_request *bsg_request = bsg_job->request; uint32_t start = 0; @@ -1524,11 +1479,7 @@ qla2x00_optrom_setup(struct bsg_job *bsg_job, scsi_qla_host_t *vha, } static int -#ifndef NEW_LIBFC_API -qla2x00_read_optrom(struct fc_bsg_job *bsg_job) -#else -qla2x00_read_optrom(struct bsg_job *bsg_job) -#endif +qla2x00_read_optrom(BSG_JOB_TYPE *bsg_job) { struct fc_bsg_reply *bsg_reply = bsg_job->reply; struct Scsi_Host *host = fc_bsg_to_shost(bsg_job); @@ -1565,11 +1516,7 @@ qla2x00_read_optrom(struct bsg_job *bsg_job) } static int -#ifndef NEW_LIBFC_API -qla2x00_update_optrom(struct fc_bsg_job *bsg_job) -#else -qla2x00_update_optrom(struct bsg_job *bsg_job) -#endif +qla2x00_update_optrom(BSG_JOB_TYPE *bsg_job) { struct fc_bsg_reply *bsg_reply = bsg_job->reply; struct Scsi_Host *host = fc_bsg_to_shost(bsg_job); @@ -1610,11 +1557,7 @@ qla2x00_update_optrom(struct bsg_job *bsg_job) } static int -#ifndef NEW_LIBFC_API -qla2x00_update_fru_versions(struct fc_bsg_job *bsg_job) -#else -qla2x00_update_fru_versions(struct bsg_job *bsg_job) -#endif +qla2x00_update_fru_versions(BSG_JOB_TYPE *bsg_job) { struct fc_bsg_reply *bsg_reply = bsg_job->reply; struct Scsi_Host *host = fc_bsg_to_shost(bsg_job); @@ -1667,11 +1610,7 @@ done: } static int -#ifndef NEW_LIBFC_API -qla2x00_read_fru_status(struct fc_bsg_job *bsg_job) -#else -qla2x00_read_fru_status(struct bsg_job *bsg_job) -#endif +qla2x00_read_fru_status(BSG_JOB_TYPE *bsg_job) { struct fc_bsg_reply *bsg_reply = bsg_job->reply; struct Scsi_Host *host = fc_bsg_to_shost(bsg_job); @@ -1722,11 +1661,7 @@ done: } static int -#ifndef NEW_LIBFC_API -qla2x00_write_fru_status(struct fc_bsg_job *bsg_job) -#else -qla2x00_write_fru_status(struct bsg_job *bsg_job) -#endif +qla2x00_write_fru_status(BSG_JOB_TYPE *bsg_job) { struct fc_bsg_reply *bsg_reply = bsg_job->reply; struct Scsi_Host *host = fc_bsg_to_shost(bsg_job); @@ -1773,11 +1708,7 @@ done: } static int -#ifndef NEW_LIBFC_API -qla2x00_write_i2c(struct fc_bsg_job *bsg_job) -#else -qla2x00_write_i2c(struct bsg_job *bsg_job) -#endif +qla2x00_write_i2c(BSG_JOB_TYPE *bsg_job) { struct fc_bsg_reply *bsg_reply = bsg_job->reply; struct Scsi_Host *host = fc_bsg_to_shost(bsg_job); @@ -1823,11 +1754,7 @@ done: } static int -#ifndef NEW_LIBFC_API -qla2x00_read_i2c(struct fc_bsg_job *bsg_job) -#else -qla2x00_read_i2c(struct bsg_job *bsg_job) -#endif +qla2x00_read_i2c(BSG_JOB_TYPE *bsg_job) { struct fc_bsg_reply *bsg_reply = bsg_job->reply; struct Scsi_Host *host = fc_bsg_to_shost(bsg_job); @@ -1877,11 +1804,7 @@ done: } static int -#ifndef NEW_LIBFC_API -qla24xx_process_bidir_cmd(struct fc_bsg_job *bsg_job) -#else -qla24xx_process_bidir_cmd(struct bsg_job *bsg_job) -#endif +qla24xx_process_bidir_cmd(BSG_JOB_TYPE *bsg_job) { struct fc_bsg_reply *bsg_reply = bsg_job->reply; struct Scsi_Host *host = fc_bsg_to_shost(bsg_job); @@ -2059,11 +1982,7 @@ done: } static int -#ifndef NEW_LIBFC_API -qlafx00_mgmt_cmd(struct fc_bsg_job *bsg_job) -#else -qlafx00_mgmt_cmd(struct bsg_job *bsg_job) -#endif +qlafx00_mgmt_cmd(BSG_JOB_TYPE *bsg_job) { struct fc_bsg_request *bsg_request = bsg_job->request; struct Scsi_Host *host = fc_bsg_to_shost(bsg_job); @@ -2186,11 +2105,7 @@ done: } static int -#ifndef NEW_LIBFC_API -qla26xx_serdes_op(struct fc_bsg_job *bsg_job) -#else -qla26xx_serdes_op(struct bsg_job *bsg_job) -#endif +qla26xx_serdes_op(BSG_JOB_TYPE *bsg_job) { struct fc_bsg_reply *bsg_reply = bsg_job->reply; struct Scsi_Host *host = fc_bsg_to_shost(bsg_job); @@ -2232,11 +2147,7 @@ qla26xx_serdes_op(struct bsg_job *bsg_job) } static int -#ifndef NEW_LIBFC_API -qla8044_serdes_op(struct fc_bsg_job *bsg_job) -#else -qla8044_serdes_op(struct bsg_job *bsg_job) -#endif +qla8044_serdes_op(BSG_JOB_TYPE *bsg_job) { struct fc_bsg_reply *bsg_reply = bsg_job->reply; struct Scsi_Host *host = fc_bsg_to_shost(bsg_job); @@ -2278,11 +2189,7 @@ qla8044_serdes_op(struct bsg_job *bsg_job) } static int -#ifndef NEW_LIBFC_API -qla27xx_get_flash_upd_cap(struct fc_bsg_job *bsg_job) -#else -qla27xx_get_flash_upd_cap(struct bsg_job *bsg_job) -#endif +qla27xx_get_flash_upd_cap(BSG_JOB_TYPE *bsg_job) { struct fc_bsg_reply *bsg_reply = bsg_job->reply; struct Scsi_Host *host = fc_bsg_to_shost(bsg_job); @@ -2314,11 +2221,7 @@ qla27xx_get_flash_upd_cap(struct bsg_job *bsg_job) } static int -#ifndef NEW_LIBFC_API -qla27xx_set_flash_upd_cap(struct fc_bsg_job *bsg_job) -#else -qla27xx_set_flash_upd_cap(struct bsg_job *bsg_job) -#endif +qla27xx_set_flash_upd_cap(BSG_JOB_TYPE *bsg_job) { struct fc_bsg_reply *bsg_reply = bsg_job->reply; struct Scsi_Host *host = fc_bsg_to_shost(bsg_job); @@ -2364,11 +2267,7 @@ qla27xx_set_flash_upd_cap(struct bsg_job *bsg_job) } static int -#ifndef NEW_LIBFC_API -qla27xx_get_bbcr_data(struct fc_bsg_job *bsg_job) -#else -qla27xx_get_bbcr_data(struct bsg_job *bsg_job) -#endif +qla27xx_get_bbcr_data(BSG_JOB_TYPE *bsg_job) { struct fc_bsg_reply *bsg_reply = bsg_job->reply; struct Scsi_Host *host = fc_bsg_to_shost(bsg_job); @@ -2427,11 +2326,7 @@ done: } static int -#ifndef NEW_LIBFC_API -qla2x00_get_priv_stats(struct fc_bsg_job *bsg_job) -#else -qla2x00_get_priv_stats(struct bsg_job *bsg_job) -#endif +qla2x00_get_priv_stats(BSG_JOB_TYPE *bsg_job) { struct fc_bsg_request *bsg_request = bsg_job->request; struct fc_bsg_reply *bsg_reply = bsg_job->reply; @@ -2490,11 +2385,7 @@ qla2x00_get_priv_stats(struct bsg_job *bsg_job) } static int -#ifndef NEW_LIBFC_API -qla2x00_do_dport_diagnostics(struct fc_bsg_job *bsg_job) -#else -qla2x00_do_dport_diagnostics(struct bsg_job *bsg_job) -#endif +qla2x00_do_dport_diagnostics(BSG_JOB_TYPE *bsg_job) { struct fc_bsg_reply *bsg_reply = bsg_job->reply; struct Scsi_Host *host = fc_bsg_to_shost(bsg_job); @@ -2538,11 +2429,7 @@ qla2x00_do_dport_diagnostics(struct bsg_job *bsg_job) } static int -#ifndef NEW_LIBFC_API -qla2x00_get_flash_image_status(struct fc_bsg_job *bsg_job) -#else -qla2x00_get_flash_image_status(struct bsg_job *bsg_job) -#endif +qla2x00_get_flash_image_status(BSG_JOB_TYPE *bsg_job) { scsi_qla_host_t *vha = shost_priv(fc_bsg_to_shost(bsg_job)); struct fc_bsg_reply *bsg_reply = bsg_job->reply; @@ -2581,11 +2468,7 @@ qla2x00_get_flash_image_status(struct bsg_job *bsg_job) } static int -#ifndef NEW_LIBFC_API -qla2x00_manage_host_stats(struct fc_bsg_job *bsg_job) -#else -qla2x00_manage_host_stats(struct bsg_job *bsg_job) -#endif +qla2x00_manage_host_stats(BSG_JOB_TYPE *bsg_job) { scsi_qla_host_t *vha = shost_priv(fc_bsg_to_shost(bsg_job)); struct fc_bsg_reply *bsg_reply = bsg_job->reply; @@ -2654,11 +2537,7 @@ qla2x00_manage_host_stats(struct bsg_job *bsg_job) } static int -#ifndef NEW_LIBFC_API -qla2x00_get_host_stats(struct fc_bsg_job *bsg_job) -#else -qla2x00_get_host_stats(struct bsg_job *bsg_job) -#endif +qla2x00_get_host_stats(BSG_JOB_TYPE *bsg_job) { scsi_qla_host_t *vha = shost_priv(fc_bsg_to_shost(bsg_job)); struct fc_bsg_reply *bsg_reply = bsg_job->reply; @@ -2763,11 +2642,7 @@ qla2xxx_find_rport(scsi_qla_host_t *vha, uint32_t tgt_num) } static int -#ifndef NEW_LIBFC_API -qla2x00_get_tgt_stats(struct fc_bsg_job *bsg_job) -#else -qla2x00_get_tgt_stats(struct bsg_job *bsg_job) -#endif +qla2x00_get_tgt_stats(BSG_JOB_TYPE *bsg_job) { scsi_qla_host_t *vha = shost_priv(fc_bsg_to_shost(bsg_job)); struct fc_bsg_reply *bsg_reply = bsg_job->reply; @@ -2856,11 +2731,7 @@ tgt_stat_out: } static int -#ifndef NEW_LIBFC_API -qla2x00_manage_host_port(struct fc_bsg_job *bsg_job) -#else -qla2x00_manage_host_port(struct bsg_job *bsg_job) -#endif +qla2x00_manage_host_port(BSG_JOB_TYPE *bsg_job) { scsi_qla_host_t *vha = shost_priv(fc_bsg_to_shost(bsg_job)); struct fc_bsg_reply *bsg_reply = bsg_job->reply; @@ -2918,11 +2789,7 @@ qla2x00_manage_host_port(struct bsg_job *bsg_job) } static int -#ifndef NEW_LIBFC_API -qla2x00_process_vendor_specific(struct fc_bsg_job *bsg_job) -#else -qla2x00_process_vendor_specific(struct bsg_job *bsg_job) -#endif +qla2x00_process_vendor_specific(BSG_JOB_TYPE *bsg_job) { struct fc_bsg_request *bsg_request = bsg_job->request; @@ -3015,11 +2882,7 @@ qla2x00_process_vendor_specific(struct bsg_job *bsg_job) } int -#ifndef NEW_LIBFC_API -qla24xx_bsg_request(struct fc_bsg_job *bsg_job) -#else -qla24xx_bsg_request(struct bsg_job *bsg_job) -#endif +qla24xx_bsg_request(BSG_JOB_TYPE *bsg_job) { struct fc_bsg_request *bsg_request = bsg_job->request; struct fc_bsg_reply *bsg_reply = bsg_job->reply; @@ -3084,11 +2947,7 @@ skip_chip_chk: } int -#ifndef NEW_LIBFC_API -qla24xx_bsg_timeout(struct fc_bsg_job *bsg_job) -#else -qla24xx_bsg_timeout(struct bsg_job *bsg_job) -#endif +qla24xx_bsg_timeout(BSG_JOB_TYPE *bsg_job) { struct fc_bsg_reply *bsg_reply = bsg_job->reply; scsi_qla_host_t *vha = shost_priv(fc_bsg_to_shost(bsg_job)); diff --git a/qla2x00t-32gbit/qla_def.h b/qla2x00t-32gbit/qla_def.h index edd938e54..29d588ead 100644 --- a/qla2x00t-32gbit/qla_def.h +++ b/qla2x00t-32gbit/qla_def.h @@ -45,6 +45,9 @@ defined(CONFIG_SUSE_KERNEL) && \ LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0) #define NEW_LIBFC_API +#define BSG_JOB_TYPE struct bsg_job +#else +#define BSG_JOB_TYPE struct fc_bsg_job #endif #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 15, 0) && \ diff --git a/qla2x00t-32gbit/qla_gbl.h b/qla2x00t-32gbit/qla_gbl.h index b56753ced..03d062582 100644 --- a/qla2x00t-32gbit/qla_gbl.h +++ b/qla2x00t-32gbit/qla_gbl.h @@ -879,13 +879,8 @@ extern int qla2x00_read_sfp_dev(struct scsi_qla_host *, char *, int); extern int ql26xx_led_config(scsi_qla_host_t *, uint16_t, uint16_t *); /* BSG related functions */ -#ifndef NEW_LIBFC_API -extern int qla24xx_bsg_request(struct fc_bsg_job *); -extern int qla24xx_bsg_timeout(struct fc_bsg_job *); -#else -extern int qla24xx_bsg_request(struct bsg_job *); -extern int qla24xx_bsg_timeout(struct bsg_job *); -#endif +extern int qla24xx_bsg_request(BSG_JOB_TYPE *); +extern int qla24xx_bsg_timeout(BSG_JOB_TYPE *); extern int qla84xx_reset_chip(scsi_qla_host_t *, uint16_t); extern int qla2x00_issue_iocb_timeout(scsi_qla_host_t *, void *, dma_addr_t, size_t, uint32_t); diff --git a/qla2x00t-32gbit/qla_iocb.c b/qla2x00t-32gbit/qla_iocb.c index a6e0e8fb4..136775adf 100644 --- a/qla2x00t-32gbit/qla_iocb.c +++ b/qla2x00t-32gbit/qla_iocb.c @@ -3111,11 +3111,7 @@ done: static void qla24xx_els_iocb(srb_t *sp, struct els_entry_24xx *els_iocb) { -#ifndef NEW_LIBFC_API - struct fc_bsg_job *bsg_job = sp->u.bsg_job; -#else - struct bsg_job *bsg_job = sp->u.bsg_job; -#endif + BSG_JOB_TYPE *bsg_job = sp->u.bsg_job; struct fc_bsg_request *bsg_request = bsg_job->request; els_iocb->entry_type = ELS_IOCB_TYPE; @@ -3165,11 +3161,7 @@ qla2x00_ct_iocb(srb_t *sp, ms_iocb_entry_t *ct_iocb) uint16_t tot_dsds; scsi_qla_host_t *vha = sp->vha; struct qla_hw_data *ha = vha->hw; -#ifndef NEW_LIBFC_API - struct fc_bsg_job *bsg_job = sp->u.bsg_job; -#else - struct bsg_job *bsg_job = sp->u.bsg_job; -#endif + BSG_JOB_TYPE *bsg_job = sp->u.bsg_job; int entry_count = 1; memset(ct_iocb, 0, sizeof(ms_iocb_entry_t)); @@ -3236,11 +3228,7 @@ qla24xx_ct_iocb(srb_t *sp, struct ct_entry_24xx *ct_iocb) uint16_t cmd_dsds, rsp_dsds; scsi_qla_host_t *vha = sp->vha; struct qla_hw_data *ha = vha->hw; -#ifndef NEW_LIBFC_API - struct fc_bsg_job *bsg_job = sp->u.bsg_job; -#else - struct bsg_job *bsg_job = sp->u.bsg_job; -#endif + BSG_JOB_TYPE *bsg_job = sp->u.bsg_job; int entry_count = 1; cont_a64_entry_t *cont_pkt = NULL; @@ -3890,11 +3878,7 @@ qla25xx_build_bidir_iocb(srb_t *sp, struct scsi_qla_host *vha, struct scatterlist *sg; int index; int entry_count = 1; -#ifndef NEW_LIBFC_API - struct fc_bsg_job *bsg_job = sp->u.bsg_job; -#else - struct bsg_job *bsg_job = sp->u.bsg_job; -#endif + BSG_JOB_TYPE *bsg_job = sp->u.bsg_job; /*Update entry type to indicate bidir command */ put_unaligned_le32(COMMAND_BIDIRECTIONAL, &cmd_pkt->entry_type); diff --git a/qla2x00t-32gbit/qla_isr.c b/qla2x00t-32gbit/qla_isr.c index 443ed5bed..2e7dc7b69 100644 --- a/qla2x00t-32gbit/qla_isr.c +++ b/qla2x00t-32gbit/qla_isr.c @@ -1917,11 +1917,7 @@ qla2x00_ct_entry(scsi_qla_host_t *vha, struct req_que *req, const char func[] = "CT_IOCB"; const char *type; srb_t *sp; -#ifndef NEW_LIBFC_API - struct fc_bsg_job *bsg_job; -#else - struct bsg_job *bsg_job; -#endif + BSG_JOB_TYPE *bsg_job; struct fc_bsg_reply *bsg_reply; uint16_t comp_status; int res = 0; @@ -1994,11 +1990,7 @@ qla24xx_els_ct_entry(scsi_qla_host_t *vha, struct req_que *req, const char func[] = "ELS_CT_IOCB"; const char *type; srb_t *sp; -#ifndef NEW_LIBFC_API - struct fc_bsg_job *bsg_job; -#else - struct bsg_job *bsg_job; -#endif + BSG_JOB_TYPE *bsg_job; struct fc_bsg_reply *bsg_reply; uint16_t comp_status; uint32_t fw_status[3]; @@ -2766,11 +2758,7 @@ qla25xx_process_bidir_status_iocb(scsi_qla_host_t *vha, void *pkt, uint16_t scsi_status; uint16_t thread_id; uint32_t rval = EXT_STATUS_OK; -#ifndef NEW_LIBFC_API - struct fc_bsg_job *bsg_job = NULL; -#else - struct bsg_job *bsg_job = NULL; -#endif + BSG_JOB_TYPE *bsg_job = NULL; struct fc_bsg_request *bsg_request; struct fc_bsg_reply *bsg_reply; sts_entry_t *sts = pkt; diff --git a/qla2x00t-32gbit/qla_mr.c b/qla2x00t-32gbit/qla_mr.c index 16d00e3e3..0174d7e8e 100644 --- a/qla2x00t-32gbit/qla_mr.c +++ b/qla2x00t-32gbit/qla_mr.c @@ -2215,11 +2215,7 @@ qlafx00_ioctl_iosb_entry(scsi_qla_host_t *vha, struct req_que *req, { const char func[] = "IOSB_IOCB"; srb_t *sp; -#ifndef NEW_LIBFC_API - struct fc_bsg_job *bsg_job; -#else - struct bsg_job *bsg_job; -#endif + BSG_JOB_TYPE *bsg_job; struct fc_bsg_reply *bsg_reply; struct srb_iocb *iocb_job; int res = 0; @@ -3257,11 +3253,7 @@ qlafx00_fxdisc_iocb(srb_t *sp, struct fxdisc_entry_fx00 *pfxiocb) { struct srb_iocb *fxio = &sp->u.iocb_cmd; struct qla_mt_iocb_rqst_fx00 *piocb_rqst; -#ifndef NEW_LIBFC_API - struct fc_bsg_job *bsg_job; -#else - struct bsg_job *bsg_job; -#endif + BSG_JOB_TYPE *bsg_job; struct fc_bsg_request *bsg_request; struct fxdisc_entry_fx00 fx_iocb; uint8_t entry_cnt = 1;