]> www.infradead.org Git - users/willy/xarray.git/commit
block: Catch possible entries missing from cmd_flag_name[]
authorJohn Garry <john.g.garry@oracle.com>
Fri, 19 Jul 2024 11:29:09 +0000 (11:29 +0000)
committerJens Axboe <axboe@kernel.dk>
Fri, 19 Jul 2024 15:32:49 +0000 (09:32 -0600)
commit6fa99325ec86bcd442363d77561a1babd8d9a427
treeaf8a3228220d1147048c5eaa156f7286de4c3075
parent26d3bdb57ec3fa56eaf8d2e74b5d488e55f43013
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>
block/blk-mq-debugfs.c
include/linux/blk_types.h