Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: compudj@krystal.dyndns.org (Mathieu Desnoyers)
Subject: [ltt-dev] [patch 3/7] OMAP ltt statedump include irq.h
Date: Wed, 18 Feb 2009 22:10:36 -0500	[thread overview]
Message-ID: <20090219031036.GA6922@Krystal> (raw)
In-Reply-To: <20090219092000.954D.A69D9226@jp.fujitsu.com>

* KOSAKI Motohiro (kosaki.motohiro at jp.fujitsu.com) wrote:
> > Needed by ARM.
> > 
> > Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers at polymtl.ca>
> > ---
> >  ltt/ltt-statedump.c |    4 ++++
> >  1 file changed, 4 insertions(+)
> > 
> > Index: linux-omap-2.6/ltt/ltt-statedump.c
> > ===================================================================
> > --- linux-omap-2.6.orig/ltt/ltt-statedump.c	2009-02-15 18:28:09.000000000 +0000
> > +++ linux-omap-2.6/ltt/ltt-statedump.c	2009-02-15 18:28:42.000000000 +0000
> > @@ -30,6 +30,10 @@
> >  #include <linux/fdtable.h>
> >  #include <linux/swap.h>
> >  
> > +#ifdef CONFIG_GENERIC_HARDIRQS
> > +#include <linux/irq.h>
> > +#endif
> > +
> 
> Why is this needed for arm?
> 
> irq.h says
> 
> /*
>  * Please do not include this file in generic code.  There is currently
>  * no requirement for any architecture to implement anything held
>  * within this file.
>  *
>  * Thanks. --rmk
>  */
> 
> So, irq.h including often bring strange problem.
> There is irqnr.h for for architecture generic interface.
> 
> if irqnr.h don't have enough interface, let't me know this.
> 

Without the linux/irq.h include, I get the following error message when
compiling LTTng over the 2.6.29-rc4-omap1 tree :

ltt/ltt-statedump.c: In function 'list_interrupts':
ltt/ltt-statedump.c:233: error: dereferencing pointer to incomplete type
ltt/ltt-statedump.c:235: error: dereferencing pointer to incomplete type
ltt/ltt-statedump.c:236: error: dereferencing pointer to incomplete type
ltt/ltt-statedump.c:240: error: dereferencing pointer to incomplete type
make[1]: *** [ltt/ltt-statedump.o] Error 1
make[1]: *** Waiting for unfinished jobs....

It looks like struct irq_desc is not defined there, although we need
it. Any better idea on how to fix it ?

Mathieu

> 
> 
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> 

-- 
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68




  reply	other threads:[~2009-02-19  3:10 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-18  7:47 [ltt-dev] [patch 0/7] LTTng for ARM OMAP3 Mathieu Desnoyers
2009-02-18  7:47 ` [ltt-dev] [patch 1/7] omap lttng instrumentation kernel fix Mathieu Desnoyers
2009-02-18  7:47 ` [ltt-dev] [patch 2/7] LTTng - ARM instrumentation Mathieu Desnoyers
2009-02-18  7:47 ` [ltt-dev] [patch 3/7] OMAP ltt statedump include irq.h Mathieu Desnoyers
2009-02-19  0:23   ` KOSAKI Motohiro
2009-02-19  3:10     ` Mathieu Desnoyers [this message]
2009-02-20  1:39       ` KOSAKI Motohiro
2009-02-18  7:47 ` [ltt-dev] [patch 4/7] omap lttng use iter div Mathieu Desnoyers
2009-02-19  0:29   ` KOSAKI Motohiro
2009-02-19  3:13     ` Mathieu Desnoyers
2009-02-18  7:47 ` [ltt-dev] [patch 5/7] omap lttng statedump arm Mathieu Desnoyers
2009-02-18  7:47 ` [ltt-dev] [patch 6/7] omap trace clock specialize Mathieu Desnoyers
2009-02-18  7:47 ` [ltt-dev] [patch 7/7] omap trace clock Mathieu Desnoyers
2009-02-18 16:58   ` Tony Lindgren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090219031036.GA6922@Krystal \
    --to=compudj@krystal.dyndns.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox