Date: Tue, 24 Feb 2026 20:33:25 +0000 From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 82b293ea6987 - main - sdiob: Forward-declare struct sdio_func Message-ID: <699e0b15.24ce3.15a2d099@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=82b293ea6987ebcadf1142acd2218f50ab5e3fc8 commit 82b293ea6987ebcadf1142acd2218f50ab5e3fc8 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2026-02-24 20:26:55 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2026-02-24 20:26:55 +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 --- 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 f356cca42588..3875ced43731 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?699e0b15.24ce3.15a2d099>
