Skip to content

Commit

Permalink
Don't include arm/xscale/i8134x/i81342reg.h when we're compiling LINT.
Browse files Browse the repository at this point in the history
The definitions in i81342reg.h clash with those in i80321reg.h.
  • Loading branch information
marcel authored and marcel committed Nov 27, 2012
1 parent b0982c7 commit d5cc776
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion sys/arm/arm/cpufunc.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,13 @@ __FBSDID("$FreeBSD$");
#include <arm/xscale/i80321/i80321var.h>
#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 <arm/xscale/i8134x/i81342reg.h>
#endif

Expand Down

0 comments on commit d5cc776

Please sign in to comment.