OSDN Git Service

arm64/neon: add workaround for ambiguous C99 stdint.h types
authorJackie Liu <liuyun01@kylinos.cn>
Tue, 4 Dec 2018 01:43:22 +0000 (09:43 +0800)
committer0ranko0P <ranko0p@outlook.com>
Tue, 24 Dec 2019 20:42:41 +0000 (04:42 +0800)
commit7ed94761a0bff124fa1d11e0c31c60674c1bcda6
tree9b37a78dd55eaaf4584c7bee909c76d7b4270a3b
parent03f8f78956363cbaa30bb3a7b4ad678c5d804e76
arm64/neon: add workaround for ambiguous C99 stdint.h types

In a way similar to ARM commit 09096f6a0ee2 ("ARM: 7822/1: add workaround
for ambiguous C99 stdint.h types"), this patch redefines the macros that
are used in stdint.h so its definitions of uint64_t and int64_t are
compatible with those of the kernel.

This patch comes from: https://patchwork.kernel.org/patch/3540001/
Wrote by: Ard Biesheuvel <ard.biesheuvel@linaro.org>

We mark this file as a private file and don't have to override asm/types.h

Signed-off-by: Jackie Liu <liuyun01@kylinos.cn>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/neon-intrinsics.h [new file with mode: 0644]