diff options
author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2012-09-03 08:01:12 -0400 |
---|---|---|
committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2012-12-06 22:20:27 -0500 |
commit | 93e9d420554ed60cb3fa9fa47d3e97b33556b276 (patch) | |
tree | 63c8a246f182ceff0c1b67f170835025a148aa8b /include | |
parent | 3445e102f16ef5ef0ae0a1c78c16a98ce3d2e5b0 (diff) |
Add control page offset checksstaging
Make sure the kernel and userspace compilers have the same idea of the
layout of the control page.
Diffstat (limited to 'include')
-rw-r--r-- | include/internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/internal.h b/include/internal.h index 747f095..035440b 100644 --- a/include/internal.h +++ b/include/internal.h | |||
@@ -23,6 +23,8 @@ int __launch_rt_task(rt_fn_t rt_prog, void *rt_arg, | |||
23 | #define likely(x) __builtin_expect((x), 1) | 23 | #define likely(x) __builtin_expect((x), 1) |
24 | #define unlikely(x) __builtin_expect((x), 0) | 24 | #define unlikely(x) __builtin_expect((x), 0) |
25 | 25 | ||
26 | #define offsetof(s, x) __builtin_offsetof(s, x) | ||
27 | |||
26 | #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); })) | 28 | #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); })) |
27 | #define BUILD_BUG_ON(condition) ((void)BUILD_BUG_ON_ZERO(condition)) | 29 | #define BUILD_BUG_ON(condition) ((void)BUILD_BUG_ON_ZERO(condition)) |
28 | 30 | ||