I am compiling a driver for MIPS architecture on 4.4 kernel. It seems compiler is not including
/linux-4.4.34/include/linux/types.h
but instead it includes
/linux-4.4.34/include/uapi/linux/types.h
Because of this I see below error.I did not include the path /linux-4.4.34/include/uapi
in driver makefile.Could someone explain how can driver include the path /include/linux
and not /include/uapi/linux
?
./arch/mips/include/asm/mipsregs.h:871:33: error: unknown type name 'u16'
In mipsisa32-be-elf.inc file, given the path /kernel/include/uapi in -isystem compilation flag. This helps to solve the above compilation issue.