forked from mirrors/linux
		
	device.h: Add __cold to dev_<level> logging functions
Add __cold to the dev_<level> logging functions similar to the use of __cold in the generic printk function. Using __cold moves all the dev_<level> logging functions out-of-line possibly improving code locality and runtime performance. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
		
							parent
							
								
									7cbc2b421e
								
							
						
					
					
						commit
						79a4e91d1b
					
				
					 1 changed files with 10 additions and 10 deletions
				
			
		| 
						 | 
					@ -1384,28 +1384,28 @@ void device_link_remove(void *consumer, struct device *supplier);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef CONFIG_PRINTK
 | 
					#ifdef CONFIG_PRINTK
 | 
				
			||||||
 | 
					
 | 
				
			||||||
__printf(3, 0)
 | 
					__printf(3, 0) __cold
 | 
				
			||||||
int dev_vprintk_emit(int level, const struct device *dev,
 | 
					int dev_vprintk_emit(int level, const struct device *dev,
 | 
				
			||||||
		     const char *fmt, va_list args);
 | 
							     const char *fmt, va_list args);
 | 
				
			||||||
__printf(3, 4)
 | 
					__printf(3, 4) __cold
 | 
				
			||||||
int dev_printk_emit(int level, const struct device *dev, const char *fmt, ...);
 | 
					int dev_printk_emit(int level, const struct device *dev, const char *fmt, ...);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
__printf(3, 4)
 | 
					__printf(3, 4) __cold
 | 
				
			||||||
void dev_printk(const char *level, const struct device *dev,
 | 
					void dev_printk(const char *level, const struct device *dev,
 | 
				
			||||||
		const char *fmt, ...);
 | 
							const char *fmt, ...);
 | 
				
			||||||
__printf(2, 3)
 | 
					__printf(2, 3) __cold
 | 
				
			||||||
void _dev_emerg(const struct device *dev, const char *fmt, ...);
 | 
					void _dev_emerg(const struct device *dev, const char *fmt, ...);
 | 
				
			||||||
__printf(2, 3)
 | 
					__printf(2, 3) __cold
 | 
				
			||||||
void _dev_alert(const struct device *dev, const char *fmt, ...);
 | 
					void _dev_alert(const struct device *dev, const char *fmt, ...);
 | 
				
			||||||
__printf(2, 3)
 | 
					__printf(2, 3) __cold
 | 
				
			||||||
void _dev_crit(const struct device *dev, const char *fmt, ...);
 | 
					void _dev_crit(const struct device *dev, const char *fmt, ...);
 | 
				
			||||||
__printf(2, 3)
 | 
					__printf(2, 3) __cold
 | 
				
			||||||
void _dev_err(const struct device *dev, const char *fmt, ...);
 | 
					void _dev_err(const struct device *dev, const char *fmt, ...);
 | 
				
			||||||
__printf(2, 3)
 | 
					__printf(2, 3) __cold
 | 
				
			||||||
void _dev_warn(const struct device *dev, const char *fmt, ...);
 | 
					void _dev_warn(const struct device *dev, const char *fmt, ...);
 | 
				
			||||||
__printf(2, 3)
 | 
					__printf(2, 3) __cold
 | 
				
			||||||
void _dev_notice(const struct device *dev, const char *fmt, ...);
 | 
					void _dev_notice(const struct device *dev, const char *fmt, ...);
 | 
				
			||||||
__printf(2, 3)
 | 
					__printf(2, 3) __cold
 | 
				
			||||||
void _dev_info(const struct device *dev, const char *fmt, ...);
 | 
					void _dev_info(const struct device *dev, const char *fmt, ...);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue