From mboxrd@z Thu Jan 1 00:00:00 1970 From: will.deacon@arm.com (Will Deacon) Date: Tue, 30 Jun 2015 12:05:57 +0100 Subject: [PATCH] ARM: fix vdsomunge not to depend on glibc specific error.h In-Reply-To: <559273FD.2030508@arm.com> References: <559273FD.2030508@arm.com> Message-ID: <20150630110557.GG27725@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tue, Jun 30, 2015 at 11:48:29AM +0100, Szabolcs Nagy wrote: > 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 > --- > arch/arm/vdso/vdsomunge.c | 56 ++++++++++++++++++++++++++------------------- > 1 file changed, 33 insertions(+), 23 deletions(-) Looks fine to me: Acked-by: Will Deacon Probably worth a Cc stable too. Will