diff options
| -rw-r--r-- | arch/riscv/Kconfig | 1 | ||||
| -rw-r--r-- | arch/riscv/include/uapi/asm/unistd.h | 5 | ||||
| -rw-r--r-- | arch/riscv/kernel/vdso/Makefile | 2 |
3 files changed, 3 insertions, 5 deletions
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 09fa3a87bf30..feeeaa60697c 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig | |||
| @@ -11,7 +11,6 @@ config 32BIT | |||
| 11 | 11 | ||
| 12 | config RISCV | 12 | config RISCV |
| 13 | def_bool y | 13 | def_bool y |
| 14 | select ARCH_32BIT_OFF_T if !64BIT | ||
| 15 | # even on 32-bit, physical (and DMA) addresses are > 32-bits | 14 | # even on 32-bit, physical (and DMA) addresses are > 32-bits |
| 16 | select PHYS_ADDR_T_64BIT | 15 | select PHYS_ADDR_T_64BIT |
| 17 | select OF | 16 | select OF |
diff --git a/arch/riscv/include/uapi/asm/unistd.h b/arch/riscv/include/uapi/asm/unistd.h index 486a288b454c..0e2eeeb1fd27 100644 --- a/arch/riscv/include/uapi/asm/unistd.h +++ b/arch/riscv/include/uapi/asm/unistd.h | |||
| @@ -17,11 +17,8 @@ | |||
| 17 | 17 | ||
| 18 | #ifdef __LP64__ | 18 | #ifdef __LP64__ |
| 19 | #define __ARCH_WANT_NEW_STAT | 19 | #define __ARCH_WANT_NEW_STAT |
| 20 | #endif /* __LP64__ */ | ||
| 21 | #define __ARCH_WANT_SET_GET_RLIMIT | 20 | #define __ARCH_WANT_SET_GET_RLIMIT |
| 22 | #ifndef __LP64__ | 21 | #endif /* __LP64__ */ |
| 23 | #define __ARCH_WANT_TIME32_SYSCALLS | ||
| 24 | #endif | ||
| 25 | 22 | ||
| 26 | #include <asm-generic/unistd.h> | 23 | #include <asm-generic/unistd.h> |
| 27 | 24 | ||
diff --git a/arch/riscv/kernel/vdso/Makefile b/arch/riscv/kernel/vdso/Makefile index eed1c137f618..fec62b24df89 100644 --- a/arch/riscv/kernel/vdso/Makefile +++ b/arch/riscv/kernel/vdso/Makefile | |||
| @@ -2,9 +2,11 @@ | |||
| 2 | 2 | ||
| 3 | # Symbols present in the vdso | 3 | # Symbols present in the vdso |
| 4 | vdso-syms = rt_sigreturn | 4 | vdso-syms = rt_sigreturn |
| 5 | ifdef CONFIG_64BIT | ||
| 5 | vdso-syms += gettimeofday | 6 | vdso-syms += gettimeofday |
| 6 | vdso-syms += clock_gettime | 7 | vdso-syms += clock_gettime |
| 7 | vdso-syms += clock_getres | 8 | vdso-syms += clock_getres |
| 9 | endif | ||
| 8 | vdso-syms += getcpu | 10 | vdso-syms += getcpu |
| 9 | vdso-syms += flush_icache | 11 | vdso-syms += flush_icache |
| 10 | 12 | ||
