diff options
author | Yang Li <yang.lee@linux.alibaba.com> | 2022-01-07 03:52:28 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-01-09 20:36:51 +0300 |
commit | 292c33c95defd0b814fec1fc8cd60d16556cf7b8 (patch) | |
tree | 99e70149edf13c6b903e2e7d29d58285dacab9f1 /include/linux | |
parent | 6bfec7992ec79b63fb07330ae97f3fb43120aa37 (diff) | |
download | linux-292c33c95defd0b814fec1fc8cd60d16556cf7b8.tar.xz |
block: fix old-style declaration
Move the 'inline' keyword to the front of 'void'.
Remove a warning found by clang(make W=1 LLVM=1)
./include/linux/blk-mq.h:259:1: warning: ‘inline’ is not at beginning of
declaration
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Link: https://lore.kernel.org/r/20220107005228.103927-1-yang.lee@linux.alibaba.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/blk-mq.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h index f40a05ecca4a..d319ffa59354 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h @@ -256,7 +256,7 @@ static inline unsigned short req_get_ioprio(struct request *req) * @rq: The request to move * @prev: The request preceding @rq in @src (NULL if @rq is the head) */ -static void inline rq_list_move(struct request **src, struct request **dst, +static inline void rq_list_move(struct request **src, struct request **dst, struct request *rq, struct request *prev) { if (prev) |