mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-17 00:16:40 +07:00
7c0f6ba682
This was entirely automated, using the script by Al: PATT='^[[:blank:]]*#[[:blank:]]*include[[:blank:]]*<asm/uaccess.h>' sed -i -e "s!$PATT!#include <linux/uaccess.h>!" \ $(git grep -l "$PATT"|grep -v ^include/linux/uaccess.h) to do the replacement at the end of the merge window. Requested-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
20 lines
348 B
C
20 lines
348 B
C
#include <linux/types.h>
|
|
#include <linux/errno.h>
|
|
#include <linux/uaccess.h>
|
|
|
|
#include <asm/sfp-machine.h>
|
|
#include <math-emu/double.h>
|
|
|
|
int
|
|
lfd(void *frD, void *ea)
|
|
{
|
|
if (copy_from_user(frD, ea, sizeof(double)))
|
|
return -EFAULT;
|
|
#ifdef DEBUG
|
|
printk("%s: D %p, ea %p: ", __func__, frD, ea);
|
|
dump_double(frD);
|
|
printk("\n");
|
|
#endif
|
|
return 0;
|
|
}
|