Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
2 | #ifndef ___ASM_SPARC_UACCESS_H | ||||
3 | #define ___ASM_SPARC_UACCESS_H | ||||
4 | #if defined(__sparc__) && defined(__arch64__) | ||||
5 | #include <asm/uaccess_64.h> | ||||
6 | #else | ||||
7 | #include <asm/uaccess_32.h> | ||||
8 | #endif | ||||
9 | |||||
10 | #define user_addr_max() \ | ||||
11 | (uaccess_kernel() ? ~0UL : TASK_SIZE) | ||||
12 | |||||
13 | long strncpy_from_user(char *dest, const char __user *src, long count); | ||||
14 | |||||
15 | #endif |