diff options
author | Alejandro Colomar <alx.manpages@gmail.com> | 2021-11-19 18:20:46 +0100 |
---|---|---|
committer | Alejandro Colomar <alx.manpages@gmail.com> | 2021-11-20 17:04:28 +0100 |
commit | 8521d362eb08d2975b921857acc42b4cb91a968b (patch) | |
tree | bf527331cf1814b94a2a2f1f983f9ea1157fddd6 | |
parent | 145e2e5979c0bbd74481da583f9917971406549f (diff) |
scripts/kconfig/: Don't redefine offsetof()
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
-rw-r--r-- | scripts/kconfig/list.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/kconfig/list.h b/scripts/kconfig/list.h index 45cb237ab7ef..40100b9a388e 100644 --- a/scripts/kconfig/list.h +++ b/scripts/kconfig/list.h @@ -2,13 +2,14 @@ #ifndef LIST_H #define LIST_H + +#include <linux/offsetof.h> + + /* * Copied from include/linux/... */ -#undef offsetof -#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) - /** * container_of - cast a member of a structure out to the containing structure * @ptr: the pointer to the member. |