diff options
author | John Garry <[email protected]> | 2024-07-19 11:29:06 +0000 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2024-07-19 09:32:49 -0600 |
commit | 23827310cce7eff3477aeaeb59ea3718f5c9c633 (patch) | |
tree | f6e24c466ec0215c3f3fcd5293b10ed201bdbcf9 /scripts/rustdoc_test_builder.rs | |
parent | cce496de061d09794825b7c7c7d57faca4772d82 (diff) |
block: Catch possible entries missing from hctx_state_name[]
Add a build-time assert that we are not missing entries from
hctx_state_name[]. For this, create a separate enum for state flags and add
a "max" entry for BLK_MQ_S_x flags.
The numbering for those enum values is as default, so don't explicitly
number.
Signed-off-by: John Garry <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/rustdoc_test_builder.rs')
0 files changed, 0 insertions, 0 deletions