mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	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>
This commit is contained in:
		
							parent
							
								
									6bfec7992e
								
							
						
					
					
						commit
						292c33c95d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -256,7 +256,7 @@ static inline unsigned short req_get_ioprio(struct request *req)
 | 
				
			||||||
 * @rq: The request to move
 | 
					 * @rq: The request to move
 | 
				
			||||||
 * @prev: The request preceding @rq in @src (NULL if @rq is the head)
 | 
					 * @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)
 | 
									struct request *rq, struct request *prev)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	if (prev)
 | 
						if (prev)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue