summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-08-14 15:16:09 -0600
committerJens Axboe <axboe@kernel.dk>2019-08-14 15:16:09 -0600
commitdc54b6ca3209c2da3df30e96d097f6de29d56d24 (patch)
treefbb0a7560c18156bb6609c67ea0ffab0193692e0
parent36d108a47d4f97927b3acccab6cb79f75af5f88b (diff)
eta: use struct jobs_eta_packed
I think this is why the build fails for some, which is odd. Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--eta.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/eta.c b/eta.c
index 286b45e..9950ef3 100644
--- a/eta.c
+++ b/eta.c
@@ -733,8 +733,9 @@ void print_thread_status(void)
void print_status_init(int thr_number)
{
- compiletime_assert(sizeof(struct jobs_eta) ==
- sizeof(struct jobs_eta_packed), "jobs_eta");
+ struct jobs_eta_packed jep;
+
+ compiletime_assert(sizeof(struct jobs_eta) == sizeof(jep), "jobs_eta");
DRD_IGNORE_VAR(__run_str);
__run_str[thr_number] = 'P';