The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=1599fc904d35cfa8eecad92818d1f4b55de6818f
commit 1599fc904d35cfa8eecad92818d1f4b55de6818f Author: Warner Losh <i...@freebsd.org> AuthorDate: 2022-05-01 22:53:13 +0000 Commit: Warner Losh <i...@freebsd.org> CommitDate: 2022-05-01 22:54:15 +0000 iosched: Move bio_next() inside of the CAM_IOSCHED_DYNAMIC ifdef bio_next() is only used by the dynamic scheduler, so move it under that ifdef. Sponsored by: Netflix --- sys/cam/cam_iosched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/cam/cam_iosched.c b/sys/cam/cam_iosched.c index c1e11419856b..89e8a2f58212 100644 --- a/sys/cam/cam_iosched.c +++ b/sys/cam/cam_iosched.c @@ -1505,6 +1505,7 @@ cam_iosched_get_trim(struct cam_iosched_softc *isc) } +#ifdef CAM_IOSCHED_DYNAMIC static struct bio * bio_next(struct bio *bp) { @@ -1518,7 +1519,6 @@ bio_next(struct bio *bp) return bp; } -#ifdef CAM_IOSCHED_DYNAMIC static bool cam_iosched_rate_limited(struct iop_stats *ios) {