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

c6x: include: asm: setup: Include "linux/types.h"

Some modules may assume "asm/setup.h" already include all headers which
needed by itself. So need let "asm/setup.h" include "linux/types.h", the
related error:

C [M] drivers/input/joydev.o
In file included from include/asm-generic/page.h:23:0,
from ./arch/c6x/include/asm/page.h:9,
from include/asm-generic/io.h:14,
from arch/c6x/include/generated/asm/io.h:1,
from drivers/input/joydev.c:15:
./arch/c6x/include/asm/setup.h:17:27: error: unknown type name 'phys_addr_t'
extern int c6x_add_memory(phys_addr_t start, unsigned long size);
^

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: Mark Salter <msalter@redhat.com>

authored by

Chen Gang and committed by
Mark Salter
9bd54f64 06745d74

+1
+1
arch/c6x/include/asm/setup.h
··· 12 12 #define _ASM_C6X_SETUP_H 13 13 14 14 #include <uapi/asm/setup.h> 15 + #include <linux/types.h> 15 16 16 17 #ifndef __ASSEMBLY__ 17 18 extern int c6x_add_memory(phys_addr_t start, unsigned long size);