Skip to contentSkip to conversation

block: fix old-style declaration

PATCH Applied Yang Li 2 participants 2 messages Jan 7, 2022 – Jan 9, 2022 Block layer

lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 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

---
 include/linux/blk-mq.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/blk-mq.h +1 -1
index f40a05ecca4a..d319ffa59354 100644
@@ -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)
Signature · 1 line
2.20.1.7.g153144c
maintainer Applied
#1 lore raw
Quoted 8 lines · Yang Li

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

[...]

Applied, thanks!

[1/1] block: fix old-style declaration

      commit: 292c33c95defd0b814fec1fc8cd60d16556cf7b8

Best regards,

Signature · 1 line
Jens Axboe