diff options
| author | John Garry <[email protected]> | 2024-07-19 11:29:12 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2024-07-19 09:32:49 -0600 |
| commit | 8a47e33f50dd779f94bc277c6d3de81672463c5e (patch) | |
| tree | 9ef36c0d0a592d300751ce7b84d8144f9cd16980 /include/linux | |
| parent | 2d61a6c2ca7aadce3771f81a3624848f97dcc39e (diff) | |
block: Catch possible entries missing from rqf_name[]
Add a BUILD_BUG_ON() call to ensure that we are not missing entries in
rqf_name[].
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]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/blk-mq.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h index af52ec6a1ed5..8d304b1d16b1 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h @@ -27,6 +27,7 @@ typedef enum rq_end_io_ret (rq_end_io_fn)(struct request *, blk_status_t); * request flags */ typedef __u32 __bitwise req_flags_t; +/* Keep rqf_name[] in sync with the definitions below */ enum { /* drive already may have started this one */ __RQF_STARTED, |