Skip to content

Commit

Permalink
[ARM] kmap: fix build errors with DEBUG_HIGHMEM enabled
Browse files Browse the repository at this point in the history
d451564 broke ARM by requiring KM_IRQ_PTE, KM_NMI and KM_NMI_PTE to
always be defined.  Solve this by providing invalid definitions for
these constants, but only if CONFIG_DEBUG_HIGHMEM is enabled.

Signed-off-by: Russell King <[email protected]>
  • Loading branch information
Russell King committed Nov 20, 2009
1 parent a8a8a66 commit 4ff1fa2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/arm/include/asm/kmap_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,10 @@ enum km_type {
KM_TYPE_NR
};

#ifdef CONFIG_DEBUG_HIGHMEM
#define KM_NMI (-1)
#define KM_NMI_PTE (-1)
#define KM_IRQ_PTE (-1)
#endif

#endif

0 comments on commit 4ff1fa2

Please sign in to comment.