Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151972337
D50156.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
625 B
Referenced Files
None
Subscribers
None
D50156.diff
View Options
diff --git a/sys/dev/bnxt/bnxt_en/bnxt_dcb.h b/sys/dev/bnxt/bnxt_en/bnxt_dcb.h
--- a/sys/dev/bnxt/bnxt_en/bnxt_dcb.h
+++ b/sys/dev/bnxt/bnxt_en/bnxt_dcb.h
@@ -40,13 +40,17 @@
#define BNXT_DCB_CAP_DCBX_VER_IEEE 0x08
#define BNXT_DCB_CAP_DCBX_STATIC 0x10
+#ifndef __struct_group
#define __struct_group(TAG, NAME, ATTRS, MEMBERS...) \
union { \
struct { MEMBERS } ATTRS; \
struct TAG { MEMBERS } ATTRS NAME; \
}
+#endif
+#ifndef struct_group_attr
#define struct_group_attr(NAME, ATTRS, MEMBERS...) \
__struct_group(/* no tag */, NAME, ATTRS, MEMBERS)
+#endif
struct bnxt_cos2bw_cfg {
uint8_t pad[3];
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 12, 8:57 PM (10 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31371153
Default Alt Text
D50156.diff (625 B)
Attached To
Mode
D50156: bnxt: add guards around struct_group macros
Attached
Detach File
Event Timeline
Log In to Comment