diff options
author | Arnd Bergmann <arnd@arndb.de> | 2022-02-11 17:26:42 +0100 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2022-02-25 09:36:06 +0100 |
commit | 75d4d29549e54c61466d60336b1c6e3a5d28797c (patch) | |
tree | 48442ed7077e34e60c9bc34438c11a804800d9fe /arch/sh/include/asm/uaccess.h | |
parent | a5ad837843b63d4f0d90b5cd74dc8bc25a291cfd (diff) | |
download | linux-75d4d29549e54c61466d60336b1c6e3a5d28797c.tar.gz |
sh: remove CONFIG_SET_FS support
sh uses set_fs/get_fs only in one file, to handle address
errors in both user and kernel memory.
It already has an abstraction to differentiate between I/O
and memory, so adding a third class for kernel memory fits
into the same scheme and lets us kill off CONFIG_SET_FS.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/sh/include/asm/uaccess.h')
-rw-r--r-- | arch/sh/include/asm/uaccess.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/sh/include/asm/uaccess.h b/arch/sh/include/asm/uaccess.h index ccd219d74851..a79609eb14be 100644 --- a/arch/sh/include/asm/uaccess.h +++ b/arch/sh/include/asm/uaccess.h @@ -2,11 +2,7 @@ #ifndef __ASM_SH_UACCESS_H #define __ASM_SH_UACCESS_H -#include <asm/segment.h> #include <asm/extable.h> - -#define user_addr_max() (current_thread_info()->addr_limit.seg) - #include <asm-generic/access_ok.h> /* |