Date: Fri, 24 Apr 2026 17:56:05 +0000 From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 249c230d7546 - stable/15 - sdiob: Forward-declare struct sdio_func Message-ID: <69ebaeb5.1d5b8.6c947b1e@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch stable/15 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=249c230d754660747f5658111592209c181f3a49 commit 249c230d754660747f5658111592209c181f3a49 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2026-02-24 20:26:55 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2026-04-24 15:43:17 +0000 sdiob: Forward-declare struct sdio_func Currently this happens as a side effect of the return type of sdio_get_function() in the expansion of __BUS_ACCESSOR, but this is fragile and can break if __BUS_ACCESSOR changes to define other functions first. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D55351 (cherry picked from commit 82b293ea6987ebcadf1142acd2218f50ab5e3fc8) --- sys/dev/sdio/sdiob.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/sdio/sdiob.h b/sys/dev/sdio/sdiob.h index 316a23b86103..841a3a969879 100644 --- a/sys/dev/sdio/sdiob.h +++ b/sys/dev/sdio/sdiob.h @@ -73,6 +73,8 @@ enum sdiob_dev_enum { SDIOB_IVAR_DRVDATA, }; +struct sdio_func; + #define SDIOB_ACCESSOR(var, ivar, type) \ __BUS_ACCESSOR(sdio, var, SDIOB, ivar, type)home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69ebaeb5.1d5b8.6c947b1e>
