OSDN Git Service

ARM: 8397/1: fix vdsomunge not to depend on glibc specific error.h
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Wed, 1 Jul 2015 22:08:10 +0000 (23:08 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 3 Jul 2015 08:57:21 +0000 (09:57 +0100)
commit13ee9fdba96577eb1583dcd7b15767ef623fae12
tree69db3a98f0cf4b5bbb98506dbb45036416a3bf5e
parenteeb3fee8f6cca5e7bf1647d9e327c7b40e384578
ARM: 8397/1: fix vdsomunge not to depend on glibc specific error.h

If the host toolchain is not glibc based then the arm kernel build
fails with

 arch/arm/vdso/vdsomunge.c:53:19: fatal error: error.h: No such file or directory

error.h is a glibc only header (ie not available in musl, newlib and
bsd libcs).  Changed the error reporting to standard conforming code
to avoid depending on specific C implementations.

Signed-off-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Fixes: 8512287a8165 ("ARM: 8330/1: add VDSO user-space code")
Cc: stable@vger.kernel.org
Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/vdso/vdsomunge.c