All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hexagon: kernel: kgdb: include related header for pass compiling.
@ 2013-11-01 11:54 Chen Gang
  2013-11-01 17:16 ` Linas Vepstas
  2013-11-04  1:15 ` rkuo
  0 siblings, 2 replies; 5+ messages in thread
From: Chen Gang @ 2013-11-01 11:54 UTC (permalink / raw)
  To: Richard Kuo; +Cc: linux-hexagon

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>
---
 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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-11-04  1:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-01 11:54 [PATCH] hexagon: kernel: kgdb: include related header for pass compiling Chen Gang
2013-11-01 17:16 ` Linas Vepstas
2013-11-02 13:20   ` Chen Gang
2013-11-04  1:15 ` rkuo
2013-11-04  1:45   ` 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.