When in kernel, map ctl_scsi_zero_io() to ctl_zero_io().

MFC after:	1 week
This commit is contained in:
mav 2017-01-15 13:51:44 +00:00
parent da0af25f70
commit 67e366bb58
2 changed files with 4 additions and 4 deletions

View File

@ -697,7 +697,6 @@ ctl_scsi_free_io(union ctl_io *io)
free(io);
}
#endif /* !_KERNEL */
void
ctl_scsi_zero_io(union ctl_io *io)
{
@ -707,11 +706,10 @@ ctl_scsi_zero_io(union ctl_io *io)
return;
pool_ref = io->io_hdr.pool;
memset(io, 0, sizeof(*io));
io->io_hdr.pool = pool_ref;
}
#endif /* !_KERNEL */
const char *
ctl_scsi_task_string(struct ctl_taskio *taskio)

View File

@ -96,8 +96,10 @@ void ctl_scsi_maintenance_in(union ctl_io *io, uint8_t *data_ptr,
#ifndef _KERNEL
union ctl_io *ctl_scsi_alloc_io(uint32_t initid);
void ctl_scsi_free_io(union ctl_io *io);
#endif /* !_KERNEL */
void ctl_scsi_zero_io(union ctl_io *io);
#else
#define ctl_scsi_zero_io(io) ctl_zero_io(io)
#endif /* !_KERNEL */
const char *ctl_scsi_task_string(struct ctl_taskio *taskio);
void ctl_io_sbuf(union ctl_io *io, struct sbuf *sb);
void ctl_io_error_sbuf(union ctl_io *io,