Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / arch / mips / mm / maccess.c
blob58173842c6bebd5048cda593707cb326009f8305
1 // SPDX-License-Identifier: GPL-2.0-only
3 #include <linux/uaccess.h>
4 #include <linux/kernel.h>
6 bool copy_from_kernel_nofault_allowed(const void *unsafe_src, size_t size)
8 /* highest bit set means kernel space */
9 return (unsigned long)unsafe_src >> (BITS_PER_LONG - 1);