* Fwd: [PATCH] c6x: include: asm: setup: Include "linux/types.h"
[not found] <54F6304A.8040101@hotmail.com>
@ 2015-03-03 22:11 ` Chen Gang
0 siblings, 0 replies; only message in thread
From: Chen Gang @ 2015-03-03 22:11 UTC (permalink / raw)
To: linux-kernel
-------- Forwarded Message --------
Subject: [PATCH] c6x: include: asm: setup: Include "linux/types.h"
Date: Wed, 04 Mar 2015 06:06:02 +0800
From: Chen Gang <xili_gchen_5257@hotmail.com>
To: linux-kernel@vger.kernel.org <linux-kernel@vger.kernel.org>, msalter@redhat.com >> Mark Salter <msalter@redhat.com>
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>
---
arch/c6x/include/asm/setup.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/c6x/include/asm/setup.h b/arch/c6x/include/asm/setup.h
index 6968044..852afb2 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);
--
1.9.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-03-03 22:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <54F6304A.8040101@hotmail.com>
2015-03-03 22:11 ` Fwd: [PATCH] c6x: include: asm: setup: Include "linux/types.h" Chen Gang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.