Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: include linux/types.h

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>
Acked-by: David Daney <david.daney@cavium.com>
Signed-off-by: John Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/6212/

authored by

Qais Yousef and committed by
Ralf Baechle
87c99203 7e8a2762

+1
+1
arch/mips/include/asm/mipsregs.h
··· 14 14 #define _ASM_MIPSREGS_H 15 15 16 16 #include <linux/linkage.h> 17 + #include <linux/types.h> 17 18 #include <asm/hazards.h> 18 19 #include <asm/war.h> 19 20