All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] mips/include/asm/mipsregs.h: include linux/types.h
@ 2013-12-09  9:49 ` Qais Yousef
  0 siblings, 0 replies; 6+ messages in thread
From: Qais Yousef @ 2013-12-09  9:49 UTC (permalink / raw)
  To: linux-mips; +Cc: Qais Yousef

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 <qais.yousef@imgtec.com>
Reviewed-by: Steven J. Hill <Steven.Hill@imgtec.com>
---
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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-03-20 11:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-09  9:49 [PATCH v2] mips/include/asm/mipsregs.h: include linux/types.h Qais Yousef
2013-12-09  9:49 ` Qais Yousef
2013-12-09 18:48 ` David Daney
2014-03-14 12:08 ` Qais Yousef
2014-03-14 13:20   ` Ralf Baechle
2014-03-20 11:06   ` Luís Henriques

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.