mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	klp_mutex is shared between core.c and transition.c, and as such would rather be properly located in a header so that we don't have to play 'extern' games from .c sources. This also silences sparse warning (wrongly) suggesting that klp_mutex should be defined static. Acked-by: Miroslav Benes <mbenes@suse.cz> Acked-by: Josh Poimboeuf <jpoimboe@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
		
			
				
	
	
		
			6 lines
		
	
	
	
		
			116 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
	
		
			116 B
		
	
	
	
		
			C
		
	
	
	
	
	
#ifndef _LIVEPATCH_CORE_H
 | 
						|
#define _LIVEPATCH_CORE_H
 | 
						|
 | 
						|
extern struct mutex klp_mutex;
 | 
						|
 | 
						|
#endif /* _LIVEPATCH_CORE_H */
 |