[PATCH] hexagon: kernel: kgdb: include related header for pass compiling.

From: Chen Gang
Date: Fri Nov 01 2013 - 07:44:02 EST


Need include related headers for pass compiling, the related error (with allmodconfig for v4):

CC arch/hexagon/kernel/kgdb.o
arch/hexagon/kernel/kgdb.c:30: error: invalid use of undefined type 'struct pt_regs'
arch/hexagon/kernel/kgdb.c:31: error: invalid use of undefined type 'struct pt_regs'
...
arch/hexagon/kernel/kgdb.c:220: error: implicit declaration of function 'local_irq_save'
arch/hexagon/kernel/kgdb.c:222: error: implicit declaration of function 'local_irq_restore'
...


Signed-off-by: Chen Gang <gang.chen@xxxxxxxxxxx>
---
arch/hexagon/kernel/kgdb.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/hexagon/kernel/kgdb.c b/arch/hexagon/kernel/kgdb.c
index 82d5c25..038580c 100644
--- a/arch/hexagon/kernel/kgdb.c
+++ b/arch/hexagon/kernel/kgdb.c
@@ -18,6 +18,8 @@
* 02110-1301, USA.
*/

+#include <linux/irq.h>
+#include <linux/sched.h>
#include <linux/kdebug.h>
#include <linux/kgdb.h>

--
1.7.7.6


--------------050204020001060502000909
Content-Type: text/x-patch;
name="0003-hexagon-include-asm-kgdb-add-cs0-1-for-DBG_MAX_REG_N.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename*0="0003-hexagon-include-asm-kgdb-add-cs0-1-for-DBG_MAX_REG_N.pa";
filename*1="tch"