Skip to content

Commit 2d61a6c

Browse files
johnpgarryaxboe
authored andcommitted
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 <[email protected]> Signed-off-by: John Garry <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 5f89154 commit 2d61a6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

block/blk-mq-debugfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ static const char *const cmd_flag_name[] = {
240240
};
241241
#undef CMD_FLAG_NAME
242242

243-
#define RQF_NAME(name) [ilog2((__force u32)RQF_##name)] = #name
243+
#define RQF_NAME(name) [__RQF_##name] = #name
244244
static const char *const rqf_name[] = {
245245
RQF_NAME(STARTED),
246246
RQF_NAME(FLUSH_SEQ),

0 commit comments

Comments
 (0)