projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f89154
)
block: Simplify definition of RQF_NAME()
author
John Garry
<john.g.garry@oracle.com>
Fri, 19 Jul 2024 11:29:11 +0000
(11:29 +0000)
committer
Jens Axboe
<axboe@kernel.dk>
Fri, 19 Jul 2024 15:32:49 +0000
(09:32 -0600)
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>
block/blk-mq-debugfs.c
patch
|
blob
|
blame
|
history
diff --git
a/block/blk-mq-debugfs.c
b/block/blk-mq-debugfs.c
index a4accd79c225e9e1946df1045800fbad7373563e..34ed099c34291f135ca1ad00ddf83967f44552a5 100644
(file)
--- 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),