summaryrefslogtreecommitdiff
path: root/include/asm-generic
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2021-07-01 17:53:26 -0400
committerTom Rini <[email protected]>2021-07-01 17:53:26 -0400
commit03b61ffe5a780d6e8301df16e4e60b3dcd1d0b66 (patch)
treebd64c71036641c1ff8ad2d770f2f84469765f0ab /include/asm-generic
parent6b69f15fd6386770b6fe782a4a8b4ce9243e2327 (diff)
parentee3a46a437315cbbbc746890c2cf8eea5dd7f1e7 (diff)
Merge branch '2021-07-01-buildtime-gd-sanity-check' into next
- Merge build-time sanity checks to ensure the size of gd doesn't change. This can happen during cleanups due to not all symbols being implemented in Kconfig.
Diffstat (limited to 'include/asm-generic')
-rw-r--r--include/asm-generic/global_data.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h
index e278d4c9413..5fed4db23f1 100644
--- a/include/asm-generic/global_data.h
+++ b/include/asm-generic/global_data.h
@@ -23,6 +23,8 @@
#include <fdtdec.h>
#include <membuff.h>
#include <linux/list.h>
+#include <linux/build_bug.h>
+#include <asm-offsets.h>
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