The branch main has been updated by jhb:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=82b293ea6987ebcadf1142acd2218f50ab5e3fc8

commit 82b293ea6987ebcadf1142acd2218f50ab5e3fc8
Author:     John Baldwin <[email protected]>
AuthorDate: 2026-02-24 20:26:55 +0000
Commit:     John Baldwin <[email protected]>
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)
 

Reply via email to