aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2026-02-24 20:26:55 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2026-02-24 20:26:55 +0000
commit82b293ea6987ebcadf1142acd2218f50ab5e3fc8 (patch)
tree281c34bcfb702c36244c2e229cd59ab955d39e19
parent8d3f41dbcb2a949b52660501d7efc6bb12850b09 (diff)
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
-rw-r--r--sys/dev/sdio/sdiob.h2
1 files changed, 2 insertions, 0 deletions
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)