Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jun 2023 18:01:31 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 7c0c69d1a0f3 - main - LinuxKPI: add struct_group(...)
Message-ID:  <202306081801.358I1V1M015094@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bz:

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

commit 7c0c69d1a0f3735e315a48436bffbd482f956270
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2023-05-17 22:22:13 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
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_ */
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306081801.358I1V1M015094>