fio: remove compile time assertion
authorVincent Fu <vincent.fu@samsung.com>
Wed, 17 Apr 2024 17:45:05 +0000 (17:45 +0000)
committerVincent Fu <vincent.fu@samsung.com>
Thu, 18 Apr 2024 16:36:01 +0000 (12:36 -0400)
TD_NR is the number of fio run states. It's not related to the number of
bits we need to shift ioengine flags in order to store them in
td->flags. Testing this assertion doesn't make sense.

Fixes: 9b87f09b ("fio: inherit IO engine flags to 'td'")
Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
fio.c

diff --git a/fio.c b/fio.c
index f19db1be6f024b0a0420f8a298eca863851a01e4..3d6ce59703743c9d2313045162a2a0e3b2e20d80 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -27,8 +27,6 @@ int main(int argc, char *argv[], char *envp[])
 {
        int ret = 1;
 
-       compiletime_assert(TD_NR <= TD_ENG_FLAG_SHIFT, "TD_ENG_FLAG_SHIFT");
-
        if (initialize_fio(envp))
                return 1;