Removed deprecated ABI and fixed compiler warning.
This commit is contained in:
parent
e150186d7a
commit
cb7cb946e7
@ -1,4 +1,4 @@
|
||||
obj-$(CONFIG_SCSI_FC_HIFC) += hifc.o
|
||||
obj-m += hifc.o
|
||||
|
||||
hifc-objs += hifc_utils.o
|
||||
hifc-objs += hifc_hba.o
|
||||
@ -39,3 +39,11 @@ hifc-objs += hifc_cmdq.o
|
||||
hifc-objs += hifc_hwdev.o
|
||||
hifc-objs += hifc_cqm_main.o
|
||||
hifc-objs += hifc_cqm_object.o
|
||||
|
||||
all:
|
||||
make -j6 -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
|
||||
clean:
|
||||
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
|
||||
install:
|
||||
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules_install
|
||||
depmod -a
|
||||
41
hifc/Makefile.kernel
Normal file
41
hifc/Makefile.kernel
Normal file
@ -0,0 +1,41 @@
|
||||
obj-$(CONFIG_SCSI_FC_HIFC) += hifc.o
|
||||
|
||||
hifc-objs += hifc_utils.o
|
||||
hifc-objs += hifc_hba.o
|
||||
hifc-objs += hifc_portmng.o
|
||||
|
||||
hifc-objs += hifc_module.o
|
||||
hifc-objs += hifc_chipitf.o
|
||||
hifc-objs += hifc_io.o
|
||||
hifc-objs += hifc_queue.o
|
||||
hifc-objs += hifc_service.o
|
||||
hifc-objs += hifc_wqe.o
|
||||
hifc-objs += hifc_cfg.o
|
||||
hifc-objs += hifc_lld.o
|
||||
|
||||
hifc-objs += unf_io.o
|
||||
hifc-objs += unf_io_abnormal.o
|
||||
hifc-objs += unf_scsi.o
|
||||
hifc-objs += unf_init.o
|
||||
hifc-objs += unf_event.o
|
||||
hifc-objs += unf_exchg.o
|
||||
hifc-objs += unf_lport.o
|
||||
hifc-objs += unf_disc.o
|
||||
hifc-objs += unf_rport.o
|
||||
hifc-objs += unf_service.o
|
||||
hifc-objs += unf_portman.o
|
||||
hifc-objs += unf_npiv.o
|
||||
hifc-objs += hifc_sml.o
|
||||
hifc-objs += hifc_tool.o
|
||||
hifc-objs += hifc_tool_hw.o
|
||||
hifc-objs += hifc_dbgtool_knl.o
|
||||
|
||||
hifc-objs += hifc_hwif.o
|
||||
hifc-objs += hifc_eqs.o
|
||||
hifc-objs += hifc_api_cmd.o
|
||||
hifc-objs += hifc_mgmt.o
|
||||
hifc-objs += hifc_wq.o
|
||||
hifc-objs += hifc_cmdq.o
|
||||
hifc-objs += hifc_hwdev.o
|
||||
hifc-objs += hifc_cqm_main.o
|
||||
hifc-objs += hifc_cqm_object.o
|
||||
@ -4136,7 +4136,7 @@ static int unf_cm_set_vport(struct unf_lport_s *v_lport,
|
||||
/* create vport with wwpn */
|
||||
low32 = buff_in->arg[1];
|
||||
port_name = ((unsigned long)high32 << 32) | low32;
|
||||
|
||||
fallthrough;
|
||||
//lint -fallthrough
|
||||
case 3:
|
||||
/* create vport and autogeneration wwpn */
|
||||
|
||||
@ -608,7 +608,7 @@ int unf_alloc_scsi_host(unf_scsi_host_s **v_scsi_host,
|
||||
scsi_host->max_channel = v_host_param->max_channel;
|
||||
scsi_host->max_lun = v_host_param->max_lun;
|
||||
scsi_host->max_cmd_len = v_host_param->max_cmnd_len;
|
||||
scsi_host->unchecked_isa_dma = 0;
|
||||
// scsi_host->unchecked_isa_dma = 0;
|
||||
scsi_host->hostdata[0] = (unsigned long)lport; /* save L_Port to scsi */
|
||||
scsi_host->unique_id = scsi_host->host_no;
|
||||
scsi_host->max_id = v_host_param->max_id;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user