]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - include/linux/kernel.h
bcachefs-tools: Guard the __struct_group() #define in kernel.h
[bcachefs-tools-debian] / include / linux / kernel.h
index 6315e53abcf7089dcd33a535099a952af82a756a..6f56748966cfaf8a89708cbcee0c056acd41a1c2 100644 (file)
        (type *)((char *)__mptr - offsetof(type, member)); })
 #endif
 
+#ifndef __struct_group
 #define __struct_group(TAG, NAME, ATTRS, MEMBERS...) \
        union { \
                struct { MEMBERS } ATTRS; \
                struct TAG { MEMBERS } ATTRS NAME; \
        }
+#endif
+
 #define struct_group(NAME, MEMBERS...) \
        __struct_group(/* no tag */, NAME, /* no attrs */, MEMBERS)