The branch main has been updated by bz:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=7c0c69d1a0f3735e315a48436bffbd482f956270

commit 7c0c69d1a0f3735e315a48436bffbd482f956270
Author:     Bjoern A. Zeeb <[email protected]>
AuthorDate: 2023-05-17 22:22:13 +0000
Commit:     Bjoern A. Zeeb <[email protected]>
CommitDate: 2023-06-08 18:00:57 +0000

    LinuxKPI: add struct_group(...)
    
    Add a struct_group() macro needed by a wireless driver.
    
    Sponsored by:   The FreeBSD Foundation
    MFC after:      10 days
    Reviewed by:    hselasky
    Differential Revision: https://reviews.freebsd.org/D40138
---
 sys/compat/linuxkpi/common/include/linux/stddef.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/stddef.h 
b/sys/compat/linuxkpi/common/include/linux/stddef.h
index 8a10a679ef06..a3bc6b13765e 100644
--- a/sys/compat/linuxkpi/common/include/linux/stddef.h
+++ b/sys/compat/linuxkpi/common/include/linux/stddef.h
@@ -5,5 +5,11 @@
 
 #include <sys/stddef.h>
 
+#define        struct_group(NAME, ...)                                         
\
+    union {                                                            \
+       struct { __VA_ARGS__ };                                         \
+       struct { __VA_ARGS__ } NAME;                                    \
+    }
+
 #endif /* _LINUXKPI_LINUX_STDDEF_H_ */
 

Reply via email to