xref: /linux/arch/powerpc/mm/maccess.c (revision ed5c2f5fd10dda07263f79f338a512c0f49f76f5)
1 // SPDX-License-Identifier: GPL-2.0-only
2 
3 #include <linux/uaccess.h>
4 #include <linux/kernel.h>
5 
6 #include <asm/disassemble.h>
7 #include <asm/inst.h>
8 #include <asm/ppc-opcode.h>
9 
10 bool copy_from_kernel_nofault_allowed(const void *unsafe_src, size_t size)
11 {
12 	return is_kernel_addr((unsigned long)unsafe_src);
13 }
14