mirror of
				https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
				synced 2025-10-31 01:24:43 +00:00 
			
		
		
		
	 e48b1b452f
			
		
	
	
		e48b1b452f
		
	
	
	
	
		
			
			__FUNCTION__ is gcc-specific, use __func__ Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
		
			
				
	
	
		
			21 lines
		
	
	
		
			301 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			301 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #include <linux/types.h>
 | |
| #include <linux/errno.h>
 | |
| #include <asm/uaccess.h>
 | |
| 
 | |
| int
 | |
| stfd(void *frS, void *ea)
 | |
| {
 | |
| #if 0
 | |
| #ifdef DEBUG
 | |
| 	printk("%s: S %p, ea %p: ", __func__, frS, ea);
 | |
| 	dump_double(frS);
 | |
| 	printk("\n");
 | |
| #endif
 | |
| #endif
 | |
| 
 | |
| 	if (copy_to_user(ea, frS, sizeof(double)))
 | |
| 		return -EFAULT;
 | |
| 
 | |
| 	return 0;
 | |
| }
 |