Skip to content

Commit

Permalink
MIPS: allow asm/cpu.h to be included from assembly
Browse files Browse the repository at this point in the history
Add guards around the enum to allow including cpu.h from assembly.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
Signed-off-by: John Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/6238/
  • Loading branch information
Jonas Gorski authored and Ralf Baechle committed Jan 22, 2014
1 parent 0e983d7 commit 68248d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/mips/include/asm/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@

#define FPIR_IMP_NONE 0x0000

#if !defined(__ASSEMBLY__)

enum cpu_type_enum {
CPU_UNKNOWN,

Expand Down Expand Up @@ -301,6 +303,7 @@ enum cpu_type_enum {
CPU_LAST
};

#endif /* !__ASSEMBLY */

/*
* ISA Level encodings
Expand Down

0 comments on commit 68248d0

Please sign in to comment.