diff options
author | Simon Glass <sjg@chromium.org> | 2019-12-28 10:45:08 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-01-17 17:53:52 -0500 |
commit | 825faebbdfc9bcd3e6e6ac3d8f7b321deb43a94e (patch) | |
tree | 20bc20f02d4b8949a4b551d07c9161e1d3047fe5 /include/common.h | |
parent | db41d65a97f335167e1fbc0400a83333b5157703 (diff) | |
download | u-boot-825faebbdfc9bcd3e6e6ac3d8f7b321deb43a94e.tar.gz u-boot-825faebbdfc9bcd3e6e6ac3d8f7b321deb43a94e.tar.bz2 u-boot-825faebbdfc9bcd3e6e6ac3d8f7b321deb43a94e.zip |
common: Move check_member() to kernel.h
The kernel.h file has a number of useful macros including a few related
to structures. Move check_member() there too.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/include/common.h b/include/common.h index ca08db0467..4110f75a93 100644 --- a/include/common.h +++ b/include/common.h @@ -73,17 +73,6 @@ #define ROUND(a,b) (((a) + (b) - 1) & ~((b) - 1)) -/* - * check_member() - Check the offset of a structure member - * - * @structure: Name of structure (e.g. global_data) - * @member: Name of member (e.g. baudrate) - * @offset: Expected offset in bytes - */ -#define check_member(structure, member, offset) _Static_assert( \ - offsetof(struct structure, member) == offset, \ - "`struct " #structure "` offset for `" #member "` is not " #offset) - /* Pull in stuff for the build system */ #ifdef DO_DEPS_ONLY # include <env_internal.h> |