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>
16 lines
253 B
C
16 lines
253 B
C
#include <linux/types.h>
|
|
#include <linux/errno.h>
|
|
#include <asm/uaccess.h>
|
|
|
|
int
|
|
stfiwx(u32 *frS, void *ea)
|
|
{
|
|
#ifdef DEBUG
|
|
printk("%s: %p %p\n", __func__, frS, ea);
|
|
#endif
|
|
|
|
if (copy_to_user(ea, &frS[1], sizeof(frS[1])))
|
|
return -EFAULT;
|
|
|
|
return 0;
|
|
}
|