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)
committerWill Deacon <will.deacon@arm.com>
Thu, 6 Dec 2018 16:47:05 +0000 (16:47 +0000)
commit21e28547f613e7ba4f4cb6831a3ead2d723fdf7b
treee4fb045faab4c371c2e55fe73ed935d39da47a1e
parent8cb3451b1f240ec4d36a9bfcd39cb6d59769a5b3
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]