Message ID | 20171221133316.19466-6-u.kleine-koenig@pengutronix.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/mmc.h b/mmc.h index d01a55f18805..285c1f1c9423 100644 --- a/mmc.h +++ b/mmc.h @@ -19,10 +19,6 @@ #include <linux/mmc/ioctl.h> -#ifndef offsetof -#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) -#endif - /* From kernel linux/major.h */ #define MMC_BLOCK_MAJOR 179 diff --git a/mmc_cmds.c b/mmc_cmds.c index f1c70fb5fe55..cec947da1d4a 100644 --- a/mmc_cmds.c +++ b/mmc_cmds.c @@ -38,6 +38,10 @@ #include "mmc_cmds.h" #include "3rdparty/hmac_sha/hmac_sha2.h" +#ifndef offsetof +#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) +#endif + #define WP_BLKS_PER_QUERY 32 #define USER_WP_PERM_PSWD_DIS 0x80