diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 6315e53a..6f567489 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -99,11 +99,14 @@ (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)