summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Gang <xili_gchen_5257@hotmail.com>2015-03-03 23:06:26 +0100
committerMark Salter <msalter@redhat.com>2015-03-26 15:39:46 +0100
commit9bd54f64afa4da93d8f5751d80466ab3d660b51c (patch)
tree98e1cf47685b3c1cf4a895592163657a0b576ba7
parentc6x: asm: Add default flat.h according to xtensa architecture (diff)
downloadlinux-9bd54f64afa4da93d8f5751d80466ab3d660b51c.tar.xz
linux-9bd54f64afa4da93d8f5751d80466ab3d660b51c.zip
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>
-rw-r--r--arch/c6x/include/asm/setup.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/c6x/include/asm/setup.h b/arch/c6x/include/asm/setup.h
index 696804475f55..852afb209afb 100644
--- a/arch/c6x/include/asm/setup.h
+++ b/arch/c6x/include/asm/setup.h
@@ -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);