svn commit: r315840 - stable/11/sys/dev/aacraid
Andriy Gapon
avg at FreeBSD.org
Thu Mar 23 08:10:27 UTC 2017
Author: avg
Date: Thu Mar 23 08:10:25 2017
New Revision: 315840
URL: https://svnweb.freebsd.org/changeset/base/315840
Log:
MFC r315083: aacraid: fix build with AACRAID_DEBUG=2
Modified:
stable/11/sys/dev/aacraid/aacraid_cam.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/dev/aacraid/aacraid_cam.c
==============================================================================
--- stable/11/sys/dev/aacraid/aacraid_cam.c Thu Mar 23 08:08:39 2017 (r315839)
+++ stable/11/sys/dev/aacraid/aacraid_cam.c Thu Mar 23 08:10:25 2017 (r315840)
@@ -243,10 +243,12 @@ static int
aac_cam_probe(device_t dev)
{
struct aac_cam *camsc;
+ struct aac_softc *sc;
camsc = (struct aac_cam *)device_get_softc(dev);
if (!camsc->inf)
return (0);
+ sc = camsc->inf->aac_sc;
fwprintf(sc, HBA_FLAGS_DBG_FUNCTION_ENTRY_B, "");
return (0);
}
@@ -1134,15 +1136,17 @@ static void
aac_container_complete(struct aac_command *cm)
{
union ccb *ccb;
+ struct aac_softc *sc;
u_int32_t status;
+ sc = cm->cm_sc;
fwprintf(sc, HBA_FLAGS_DBG_FUNCTION_ENTRY_B, "");
ccb = cm->cm_ccb;
status = ((u_int32_t *)cm->cm_fib->data)[0];
if (cm->cm_flags & AAC_CMD_RESET) {
ccb->ccb_h.status = CAM_SCSI_BUS_RESET;
- } else if (status == ST_OK) {
+ } else if (status == ST_OK) {
ccb->ccb_h.status = CAM_REQ_CMP;
} else if (status == ST_NOT_READY) {
ccb->ccb_h.status = CAM_BUSY;
More information about the svn-src-stable-11
mailing list