vfs: Make __vfs_write() static
[linux/fpc-iii.git] / arch / powerpc / math-emu / lfd.c
blob3a6b03d999ab6eb77375af7bbbdbeb5642381bc6
1 // SPDX-License-Identifier: GPL-2.0
2 #include <linux/types.h>
3 #include <linux/errno.h>
4 #include <linux/uaccess.h>
6 #include <asm/sfp-machine.h>
7 #include <math-emu/double.h>
9 int
10 lfd(void *frD, void *ea)
12 if (copy_from_user(frD, ea, sizeof(double)))
13 return -EFAULT;
14 #ifdef DEBUG
15 printk("%s: D %p, ea %p: ", __func__, frD, ea);
16 dump_double(frD);
17 printk("\n");
18 #endif
19 return 0;