forked from mirrors/linux
		
	 c96b817552
			
		
	
	
		c96b817552
		
	
	
	
	
		
			
			The function blk_set_runtime_active() is called only from blk_post_runtime_resume(), so there is no need for that function to be exported. Open-code this function directly in blk_post_runtime_resume() and remove it. Signed-off-by: Damien Le Moal <dlemoal@kernel.org> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Link: https://lore.kernel.org/r/20231120070611.33951-1-dlemoal@kernel.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			647 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			647 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: GPL-2.0 */
 | |
| 
 | |
| #ifndef _BLK_PM_H_
 | |
| #define _BLK_PM_H_
 | |
| 
 | |
| struct device;
 | |
| struct request_queue;
 | |
| 
 | |
| /*
 | |
|  * block layer runtime pm functions
 | |
|  */
 | |
| #ifdef CONFIG_PM
 | |
| extern void blk_pm_runtime_init(struct request_queue *q, struct device *dev);
 | |
| extern int blk_pre_runtime_suspend(struct request_queue *q);
 | |
| extern void blk_post_runtime_suspend(struct request_queue *q, int err);
 | |
| extern void blk_pre_runtime_resume(struct request_queue *q);
 | |
| extern void blk_post_runtime_resume(struct request_queue *q);
 | |
| #else
 | |
| static inline void blk_pm_runtime_init(struct request_queue *q,
 | |
| 				       struct device *dev) {}
 | |
| #endif
 | |
| 
 | |
| #endif /* _BLK_PM_H_ */
 |