Date: Wed, 24 Nov 2021 09:39:21 GMT From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 1bc9ca3b35d2 - main - cam: Unbreak CAM_IO_STATS build Message-ID: <202111240939.1AO9dLMs068544@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=1bc9ca3b35d280cdb0dbefa69bebf687970d1ef6 commit 1bc9ca3b35d280cdb0dbefa69bebf687970d1ef6 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2021-11-24 09:10:53 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2021-11-24 09:36:48 +0000 cam: Unbreak CAM_IO_STATS build Fixes: 6637b7460066 Sponsored by: Netflix --- sys/cam/nvme/nvme_da.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/cam/nvme/nvme_da.c b/sys/cam/nvme/nvme_da.c index f1c9a9ec9fea..7a489afdb993 100644 --- a/sys/cam/nvme/nvme_da.c +++ b/sys/cam/nvme/nvme_da.c @@ -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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111240939.1AO9dLMs068544>