summaryrefslogtreecommitdiffstats
path: root/drivers/sh
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2013-08-20 07:39:24 +0200
committerRussell King <rmk+kernel@arm.linux.org.uk>2013-08-25 18:09:46 +0200
commit09096f6a0ee2f2a26f3f11cf466fab0364405a23 (patch)
treeb1e53ea451f1233f45c34ea4dfc5ed7b5a225810 /drivers/sh
parentARM: 7821/1: DT: binding fixup to align with vendor-prefixes.txt (diff)
downloadlinux-09096f6a0ee2f2a26f3f11cf466fab0364405a23.tar.xz
linux-09096f6a0ee2f2a26f3f11cf466fab0364405a23.zip
ARM: 7822/1: add workaround for ambiguous C99 stdint.h types
The C99 types uintXX_t that are usually defined in 'stdint.h' are not as unambiguous on ARM as you would expect. For the types below, there is a difference on ARM between GCC built for bare metal ARM, GCC built for glibc and the kernel itself, which results in build errors if you try to build with -ffreestanding and include 'stdint.h' (such as when you include 'arm_neon.h' in order to use NEON intrinsics) As the typedefs for these types in 'stdint.h' are based on builtin defines supplied by GCC, we can tweak these to align with the kernel's idea of those types, so 'linux/types.h' and 'stdint.h' can be safely included from the same source file (provided that -ffreestanding is used). int32_t uint32_t uintptr_t bare metal GCC long unsigned long unsigned int glibc GCC int unsigned int unsigned int kernel int unsigned int unsigned long Acked by: Dave Martin <dave.martin@arm.com> Acked-by: Nicolas Pitre <nico@linaro.org> Acked-by: Mikael Pettersson <mikpe@it.uu.se> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/sh')
0 files changed, 0 insertions, 0 deletions