diff options
author | John Garry <john.g.garry@oracle.com> | 2024-07-19 14:29:11 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-07-19 18:32:49 +0300 |
commit | 2d61a6c2ca7aadce3771f81a3624848f97dcc39e (patch) | |
tree | ef9d54d46d8c18d12618ab04529c45acce725095 /block | |
parent | 5f89154e8e9e3445f9b592e58a7045e06153b822 (diff) | |
download | linux-2d61a6c2ca7aadce3771f81a3624848f97dcc39e.tar.xz |
block: Simplify definition of RQF_NAME()
Now that we have a bit index for RQF_x in __RQF_x, use __RQF_x to simplify
the definition of RQF_NAME() by not using ilog2((__force u32()).
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-15-john.g.garry@oracle.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-mq-debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-mq-debugfs.c b/block/blk-mq-debugfs.c index a4accd79c225..34ed099c3429 100644 --- a/block/blk-mq-debugfs.c +++ b/block/blk-mq-debugfs.c @@ -240,7 +240,7 @@ static const char *const cmd_flag_name[] = { }; #undef CMD_FLAG_NAME -#define RQF_NAME(name) [ilog2((__force u32)RQF_##name)] = #name +#define RQF_NAME(name) [__RQF_##name] = #name static const char *const rqf_name[] = { RQF_NAME(STARTED), RQF_NAME(FLUSH_SEQ), |