summaryrefslogtreecommitdiff
path: root/arch/sparc/include/asm/uaccess_32.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-12-28 02:19:09 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2017-03-06 05:57:58 +0300
commit444f02c458db00bd6049cc1bfe4254e80f57459e (patch)
tree921c8bc78c91946fc45e2f6facb17b7c1e487632 /arch/sparc/include/asm/uaccess_32.h
parentaf1d5b37d6211c814fac0d5d0b71ec695618054a (diff)
downloadlinux-444f02c458db00bd6049cc1bfe4254e80f57459e.tar.xz
uaccess: drop pointless ifdefs
None of those file is ever included from uapi stuff, so __KERNEL__ is always defined. None of them is ever included from assembler (they are only pulled from linux/uaccess.h, which _can't_ be included from assembler), so __ASSEMBLY__ is never defined. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/sparc/include/asm/uaccess_32.h')
-rw-r--r--arch/sparc/include/asm/uaccess_32.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/sparc/include/asm/uaccess_32.h b/arch/sparc/include/asm/uaccess_32.h
index b10f7d626f0e..952d512a64f2 100644
--- a/arch/sparc/include/asm/uaccess_32.h
+++ b/arch/sparc/include/asm/uaccess_32.h
@@ -7,12 +7,8 @@
#ifndef _ASM_UACCESS_H
#define _ASM_UACCESS_H
-#ifdef __KERNEL__
#include <linux/compiler.h>
#include <linux/string.h>
-#endif
-
-#ifndef __ASSEMBLY__
#include <asm/processor.h>
@@ -307,6 +303,4 @@ static inline unsigned long clear_user(void __user *addr, unsigned long n)
__must_check long strlen_user(const char __user *str);
__must_check long strnlen_user(const char __user *str, long n);
-#endif /* __ASSEMBLY__ */
-
#endif /* _ASM_UACCESS_H */