]> git.ipfire.org Git - thirdparty/kernel/linux.git/blame - arch/powerpc/math-emu/stfiwx.c
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[thirdparty/kernel/linux.git] / arch / powerpc / math-emu / stfiwx.c
CommitLineData
b2441318 1// SPDX-License-Identifier: GPL-2.0
1da177e4
LT
2#include <linux/types.h>
3#include <linux/errno.h>
7c0f6ba6 4#include <linux/uaccess.h>
1da177e4
LT
5
6int
7stfiwx(u32 *frS, void *ea)
8{
9#ifdef DEBUG
e48b1b45 10 printk("%s: %p %p\n", __func__, frS, ea);
1da177e4
LT
11#endif
12
13 if (copy_to_user(ea, &frS[1], sizeof(frS[1])))
14 return -EFAULT;
15
16 return 0;
17}