From d5cc776451009ee378dd1fe498567ba7f7c4f844 Mon Sep 17 00:00:00 2001 From: marcel Date: Tue, 27 Nov 2012 01:08:05 +0000 Subject: Don't include arm/xscale/i8134x/i81342reg.h when we're compiling LINT. The definitions in i81342reg.h clash with those in i80321reg.h. --- sys/arm/arm/cpufunc.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sys/arm') diff --git a/sys/arm/arm/cpufunc.c b/sys/arm/arm/cpufunc.c index dd43c27..ca08685 100644 --- a/sys/arm/arm/cpufunc.c +++ b/sys/arm/arm/cpufunc.c @@ -74,7 +74,13 @@ __FBSDID("$FreeBSD$"); #include #endif -#if defined(CPU_XSCALE_81342) +/* + * Some definitions in i81342reg.h clash with i80321reg.h. + * This only happens for the LINT kernel. As it happens, + * we don't need anything from i81342reg.h that we already + * got from somewhere else during a LINT compile. + */ +#if defined(CPU_XSCALE_81342) && !defined(COMPILING_LINT) #include #endif -- cgit v1.1