Same as on x86 and sparc, besides the fact that enabling the option will just emit compile time warnings instead of errors. Keeps allyesconfig kernels compiling. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
		
			
				
	
	
		
			8 lines
		
	
	
	
		
			170 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
	
		
			170 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
#include <linux/module.h>
 | 
						|
#include <linux/bug.h>
 | 
						|
 | 
						|
void copy_from_user_overflow(void)
 | 
						|
{
 | 
						|
	WARN(1, "Buffer overflow detected!\n");
 | 
						|
}
 | 
						|
EXPORT_SYMBOL(copy_from_user_overflow);
 |