c6x: include: asm: setup: Include "linux/types.h"
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 c6x: include: asm: setup: Include "linux/types.h"
-------- Forwarded Message --------
Subject: [PATCH] c6x: include: asm: setup: Include "linux/types.h"
Date: Wed, 04 Mar 2015 06:06:02 +0800
From: Chen Gang <[email protected]>
To: [email protected] <[email protected]>, [email protected] >> Mark Salter <[email protected]>
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 <[email protected]>
--- arch/c6x/include/asm/setup.h | 1 + 1 file changed, 1 insertion(+)
arch/c6x/include/asm/setup.h +1 -0
@@ -12,6 +12,7 @@#define _ASM_C6X_SETUP_H#include <uapi/asm/setup.h> +#include <linux/types.h> #ifndef __ASSEMBLY__extern int c6x_add_memory (phys_addr_t start,unsigned long size);
Signature · 1 line
1.9.3