forbid asm/bitops.h direct inclusion
forbid asm/bitops.h direct inclusion Because of compile errors that may occur after bit changes if asm/bitops.h is included directly without e.g. linux/kernel.h which includes linux/bitops.h, forbid direct inclusion of asm/bitops.h. Thanks to Adrian Bunk. Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Cc: Adrian Bunk <bunk@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
		
				
					committed by
					
						
						Linus Torvalds
					
				
			
			
				
	
			
			
			
						parent
						
							1977f03272
						
					
				
				
					commit
					0624517d80
				
			@@ -2,6 +2,11 @@
 | 
			
		||||
#define __ASM_SH_BITOPS_H
 | 
			
		||||
 | 
			
		||||
#ifdef __KERNEL__
 | 
			
		||||
 | 
			
		||||
#ifndef _LINUX_BITOPS_H
 | 
			
		||||
#error only <linux/bitops.h> can be included directly
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include <asm/system.h>
 | 
			
		||||
/* For __swab32 */
 | 
			
		||||
#include <asm/byteorder.h>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user