diff options
author | John Garry <john.g.garry@oracle.com> | 2024-07-19 11:29:09 +0000 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-07-19 09:32:49 -0600 |
commit | 6fa99325ec86bcd442363d77561a1babd8d9a427 (patch) | |
tree | af8a3228220d1147048c5eaa156f7286de4c3075 /include | |
parent | 26d3bdb57ec3fa56eaf8d2e74b5d488e55f43013 (diff) |
block: Catch possible entries missing from cmd_flag_name[]
Add a BUILD_BUG_ON() call to ensure that we are not missing entries in
cmd_flag_name[].
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: John Garry <john.g.garry@oracle.com>
Link: https://lore.kernel.org/r/20240719112912.3830443-13-john.g.garry@oracle.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/blk_types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h index 632edd71f8c6..36ed96133217 100644 --- a/include/linux/blk_types.h +++ b/include/linux/blk_types.h @@ -354,6 +354,7 @@ enum req_op { REQ_OP_LAST = (__force blk_opf_t)36, }; +/* Keep cmd_flag_name[] in sync with the definitions below */ enum req_flag_bits { __REQ_FAILFAST_DEV = /* no driver retries of device errors */ REQ_OP_BITS, |