diff options
Diffstat (limited to 'sys/cam/scsi')
| -rw-r--r-- | sys/cam/scsi/scsi_all.c | 6 | ||||
| -rw-r--r-- | sys/cam/scsi/scsi_da.c | 4 | ||||
| -rw-r--r-- | sys/cam/scsi/scsi_enc.c | 2 | ||||
| -rw-r--r-- | sys/cam/scsi/scsi_enc_ses.c | 8 | ||||
| -rw-r--r-- | sys/cam/scsi/scsi_pass.c | 3 | ||||
| -rw-r--r-- | sys/cam/scsi/scsi_target.c | 1 | 
6 files changed, 13 insertions, 11 deletions
diff --git a/sys/cam/scsi/scsi_all.c b/sys/cam/scsi/scsi_all.c index b518f84454ad..fd128e69f1f1 100644 --- a/sys/cam/scsi/scsi_all.c +++ b/sys/cam/scsi/scsi_all.c @@ -112,7 +112,7 @@ static void	fetchtableentries(int sense_key, int asc, int ascq,  				  const struct asc_table_entry **);  #ifdef _KERNEL -static void	init_scsi_delay(void); +static void	init_scsi_delay(void *);  static int	sysctl_scsi_delay(SYSCTL_HANDLER_ARGS);  static int	set_scsi_delay(int delay);  #endif @@ -686,7 +686,7 @@ scsi_op_desc(uint16_t opcode, struct scsi_inquiry_data *inq_data)  	opmask = 1 << pd_type;  	for (j = 0; j < num_tables; j++) { -		for (i = 0;i < num_ops[j] && table[j][i].opcode <= opcode; i++){ +		for (i = 0; i < num_ops[j] && table[j][i].opcode <= opcode; i++) {  			if ((table[j][i].opcode == opcode)  			 && ((table[j][i].opmask & opmask) != 0))  				return(table[j][i].desc); @@ -9379,7 +9379,7 @@ scsi_vpd_supported_page(struct cam_periph *periph, uint8_t page_id)  }  static void -init_scsi_delay(void) +init_scsi_delay(void *dummy __unused)  {  	int delay; diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c index fc8c0413448d..c0c0be12856b 100644 --- a/sys/cam/scsi/scsi_da.c +++ b/sys/cam/scsi/scsi_da.c @@ -2408,11 +2408,11 @@ dasysctlinit(void *context, int pending)  	SYSCTL_ADD_PROC(&softc->sysctl_ctx, SYSCTL_CHILDREN(softc->sysctl_tree),  	    OID_AUTO, "rotating", CTLTYPE_INT | CTLFLAG_RD | CTLFLAG_MPSAFE,  	    &softc->flags, (u_int)DA_FLAG_ROTATING, dabitsysctl, "I", -	    "Rotating media *DEPRECATED* gone in FreeBSD 15"); +	    "Rotating media *DEPRECATED* gone in FreeBSD 16");  	SYSCTL_ADD_PROC(&softc->sysctl_ctx, SYSCTL_CHILDREN(softc->sysctl_tree),  	    OID_AUTO, "unmapped_io", CTLTYPE_INT | CTLFLAG_RD | CTLFLAG_MPSAFE,  	    &softc->flags, (u_int)DA_FLAG_UNMAPPEDIO, dabitsysctl, "I", -	    "Unmapped I/O support *DEPRECATED* gone in FreeBSD 15"); +	    "Unmapped I/O support *DEPRECATED* gone in FreeBSD 16");  #ifdef CAM_TEST_FAILURE  	SYSCTL_ADD_PROC(&softc->sysctl_ctx, SYSCTL_CHILDREN(softc->sysctl_tree), diff --git a/sys/cam/scsi/scsi_enc.c b/sys/cam/scsi/scsi_enc.c index 9705a0b890b4..65df32ead371 100644 --- a/sys/cam/scsi/scsi_enc.c +++ b/sys/cam/scsi/scsi_enc.c @@ -732,7 +732,7 @@ enc_update_request(enc_softc_t *enc, uint32_t action)  {  	if ((enc->pending_actions & (0x1 << action)) == 0) {  		enc->pending_actions |= (0x1 << action); -		ENC_DLOG(enc, "%s: queing requested action %d\n", +		ENC_DLOG(enc, "%s: queueing requested action %d\n",  		    __func__, action);  		if (enc->current_action == ENC_UPDATE_NONE)  			wakeup(enc->enc_daemon); diff --git a/sys/cam/scsi/scsi_enc_ses.c b/sys/cam/scsi/scsi_enc_ses.c index 435874a9874a..838eecf78ad6 100644 --- a/sys/cam/scsi/scsi_enc_ses.c +++ b/sys/cam/scsi/scsi_enc_ses.c @@ -1623,7 +1623,7 @@ ses_process_status(enc_softc_t *enc, struct enc_fsm_state *state,  	} else {  		if (cur_stat <= last_stat)  			ENC_VLOG(enc, "Status page, exhausted objects before " -				"exhausing page\n"); +				"exhausting page\n");  		enc_update_request(enc, SES_PUBLISH_CACHE);  		err = 0;  	} @@ -2302,7 +2302,7 @@ ses_print_addl_data_sas_type0(char *sesname, struct sbuf *sbp,  	sbuf_putc(sbp, '\n');  	if (addl->proto_data.sasdev_phys == NULL)  		return; -	for (i = 0;i < addl->proto_hdr.sas->base_hdr.num_phys;i++) { +	for (i = 0; i < addl->proto_hdr.sas->base_hdr.num_phys; i++) {  		phy = &addl->proto_data.sasdev_phys[i];  		sbuf_printf(sbp, "%s:  phy %d:", sesname, i);  		if (ses_elm_sas_dev_phy_sata_dev(phy)) @@ -2349,7 +2349,7 @@ ses_print_addl_data_sas_type1(char *sesname, struct sbuf *sbp,  		sbuf_printf(sbp, "Expander: %d phys", num_phys);  		if (addl->proto_data.sasexp_phys == NULL)  			return; -		for (i = 0;i < num_phys;i++) { +		for (i = 0; i < num_phys; i++) {  			exp_phy = &addl->proto_data.sasexp_phys[i];  			sbuf_printf(sbp, "%s:  phy %d: connector %d other %d\n",  			    sesname, i, exp_phy->connector_index, @@ -2360,7 +2360,7 @@ ses_print_addl_data_sas_type1(char *sesname, struct sbuf *sbp,  		sbuf_printf(sbp, "Port: %d phys", num_phys);  		if (addl->proto_data.sasport_phys == NULL)  			return; -		for (i = 0;i < num_phys;i++) { +		for (i = 0; i < num_phys; i++) {  			port_phy = &addl->proto_data.sasport_phys[i];  			sbuf_printf(sbp,  			    "%s:  phy %d: id %d connector %d other %d\n", diff --git a/sys/cam/scsi/scsi_pass.c b/sys/cam/scsi/scsi_pass.c index c3587421c176..b44ab866dfe7 100644 --- a/sys/cam/scsi/scsi_pass.c +++ b/sys/cam/scsi/scsi_pass.c @@ -206,7 +206,8 @@ static struct cdevsw pass_cdevsw = {  static const struct filterops passread_filtops = {  	.f_isfd	=	1,  	.f_detach =	passreadfiltdetach, -	.f_event =	passreadfilt +	.f_event =	passreadfilt, +	.f_copy =	knote_triv_copy,  };  static MALLOC_DEFINE(M_SCSIPASS, "scsi_pass", "scsi passthrough buffers"); diff --git a/sys/cam/scsi/scsi_target.c b/sys/cam/scsi/scsi_target.c index 21c78e35dadc..39ce2bcea8f4 100644 --- a/sys/cam/scsi/scsi_target.c +++ b/sys/cam/scsi/scsi_target.c @@ -108,6 +108,7 @@ static const struct filterops targread_filtops = {  	.f_isfd = 1,  	.f_detach = targreadfiltdetach,  	.f_event = targreadfilt, +	.f_copy = knote_triv_copy,  };  static struct cdevsw targ_cdevsw = {  | 
