block: fix old-style declaration
authorYang Li <yang.lee@linux.alibaba.com>
Fri, 7 Jan 2022 00:52:28 +0000 (08:52 +0800)
committerJens Axboe <axboe@kernel.dk>
Sun, 9 Jan 2022 17:36:51 +0000 (10:36 -0700)
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>
include/linux/blk-mq.h

index f40a05ecca4aea9fb1121ece16c07f605ccbb71b..d319ffa59354a1d943dbb70a92eed1619162ee00 100644 (file)
@@ -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)