hexagon: kernel: kgdb: include related header for pass compiling.
authorChen Gang <gang.chen@asianux.com>
Fri, 1 Nov 2013 11:54:17 +0000 (19:54 +0800)
committerRichard Kuo <rkuo@codeaurora.org>
Fri, 4 Apr 2014 23:19:59 +0000 (18:19 -0500)
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@asianux.com>
Signed-off-by: Richard Kuo <rkuo@codeaurora.org>
arch/hexagon/kernel/kgdb.c

index 82d5c2593323ed420ac6b9af62309d85a032e355..038580cc5abfa09cbfbbe9c6eee3b6f81a15dc27 100644 (file)
@@ -18,6 +18,8 @@
  * 02110-1301, USA.
  */
 
+#include <linux/irq.h>
+#include <linux/sched.h>
 #include <linux/kdebug.h>
 #include <linux/kgdb.h>