aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/include/uapi/asm/Kbuild
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2017-08-02 09:45:02 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2017-08-03 13:16:27 +0200
commit3cb8f11c5d3ad853ce71cee3cad753cf81376fd8 (patch)
tree4db8ff0ed405868feb5f3a6a481e484c0217c04e /arch/s390/include/uapi/asm/Kbuild
parents390: remove asm/mman.h and asm/types.h (diff)
downloadlinux-dev-3cb8f11c5d3ad853ce71cee3cad753cf81376fd8.tar.xz
linux-dev-3cb8f11c5d3ad853ce71cee3cad753cf81376fd8.zip
s390: use generic uapi/asm/swab.h
clang doesn't like s390 specific inline assembler constraints. These are present in our arch specific uapi/asm/swab.h which again is required by some ebpf test cases. For current compiler versions the generic swab.h already makes use of gcc's builtin functions. Therefore we can simply remove our own header file and use the generic one. This will generate worse code if used with compilers before gcc 4.8, which has no __builtin_bswap16(); or before gcc v4.4, which has no __builtin_bswap[32|64](). For these cases a C implementation fallback would be used which generates more code, but is still correct (170KB extra code for gcc 4.3 with performance_defconfig). However given that we need (and want) to get rid of the inline assemblies anyway in order to be able to use clang, the above is just a minor drawback if old gcc compilers are used. With current compilers there is close to zero difference, except for three btrfs bit functions which generate more out-of-line code. The generated code looks still correct and also uses the s390 specific byteswap instructions. Reported-and-tested-by: Thomas Richter <tmricht@linux.vnet.ibm.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to '')
-rw-r--r--arch/s390/include/uapi/asm/Kbuild1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/include/uapi/asm/Kbuild b/arch/s390/include/uapi/asm/Kbuild
index ca62066895e0..098f28778a13 100644
--- a/arch/s390/include/uapi/asm/Kbuild
+++ b/arch/s390/include/uapi/asm/Kbuild
@@ -9,4 +9,5 @@ generic-y += param.h
generic-y += poll.h
generic-y += resource.h
generic-y += sockios.h
+generic-y += swab.h
generic-y += termbits.h