Thread (5 messages) 5 messages, 4 authors, 2014-03-20

[PATCH v2] mips/include/asm/mipsregs.h: include linux/types.h

From: Qais Yousef <hidden>
Date: 2013-12-09 09:49:58
Subsystem: mips, the rest · Maintainers: Thomas Bogendoerfer, Linus Torvalds

The file uses u16 type but doesn't include its definition explicitly

I was getting this error when including this header in my driver:

  arch/mips/include/asm/mipsregs.h:644:33: error: unknown type name ‘u16’

Signed-off-by: Qais Yousef <redacted>
Reviewed-by: Steven J. Hill <redacted>
---
changes since v1:
	- include linux/types.h instead of s/u16/unsigned short/
	- amend commit message accordingly

 arch/mips/include/asm/mipsregs.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/mips/include/asm/mipsregs.h b/arch/mips/include/asm/mipsregs.h
index e033141..86479bb 100644
--- a/arch/mips/include/asm/mipsregs.h
+++ b/arch/mips/include/asm/mipsregs.h
@@ -14,6 +14,7 @@
 #define _ASM_MIPSREGS_H
 
 #include <linux/linkage.h>
+#include <linux/types.h>
 #include <asm/hazards.h>
 #include <asm/war.h>
 
-- 
1.7.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help