diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h index e278d4c9413c0d86e3668d1b6f980462ab6f10e0..5fed4db23f1ba22d3a9371199ab556f020204bdc 100644 --- a/include/asm-generic/global_data.h +++ b/include/asm-generic/global_data.h @@ -23,6 +23,8 @@ #include #include #include +#include +#include struct acpi_ctx; struct driver_rt; @@ -464,6 +466,9 @@ struct global_data { char *smbios_version; #endif }; +#ifndef DO_DEPS_ONLY +static_assert(sizeof(struct global_data) == GD_SIZE); +#endif /** * gd_board_type() - retrieve board type