mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
cam: Unbreak CAM_IO_STATS build
Fixes: 6637b74600
Sponsored by: Netflix
This commit is contained in:
parent
26d6547567
commit
1bc9ca3b35
1 changed files with 7 additions and 0 deletions
|
|
@ -1267,6 +1267,13 @@ ndadone(struct cam_periph *periph, union ccb *done_ccb)
|
|||
static int
|
||||
ndaerror(union ccb *ccb, u_int32_t cam_flags, u_int32_t sense_flags)
|
||||
{
|
||||
#ifdef CAM_IO_STATS
|
||||
struct nda_softc *softc;
|
||||
struct cam_periph *periph;
|
||||
|
||||
periph = xpt_path_periph(ccb->ccb_h.path);
|
||||
softc = (struct nda_softc *)periph->softc;
|
||||
#endif
|
||||
|
||||
switch (ccb->ccb_h.status & CAM_STATUS_MASK) {
|
||||
case CAM_CMD_TIMEOUT:
|
||||
|
|
|
|||
Loading…
Reference in a new issue