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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Aug 2015 16:29:19 +0000 (09:29 -0700)
commitabf09a2bc0b62809acf20486190071696f5f1d7b
tree75bb28db6e00cb219d4d63e484dafedfeba072f2
parentec5ea3004ddc46c09c6805119cedb7b8f516b997
ARM: 8397/1: fix vdsomunge not to depend on glibc specific error.h

commit 13ee9fdba96577eb1583dcd7b15767ef623fae12 upstream.

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")
Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/vdso/vdsomunge.c