eta: use struct jobs_eta_packed
authorJens Axboe <axboe@kernel.dk>
Wed, 14 Aug 2019 21:16:09 +0000 (15:16 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 14 Aug 2019 21:16:09 +0000 (15:16 -0600)
I think this is why the build fails for some, which is odd.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
eta.c

diff --git a/eta.c b/eta.c
index 286b45e..9950ef3 100644 (file)
--- 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';