From: Bernd Petrovitsch <bernd@petrovitsch.priv.at>
To: Shakthi Kannan <shakthimaan@gmail.com>
Cc: linux-sparse@vger.kernel.org
Subject: Re: Using c2xml on kernel sources
Date: Tue, 20 Mar 2012 10:32:51 +0100 [thread overview]
Message-ID: <1332235972.21661.65.camel@thorin> (raw)
In-Reply-To: <CABG-yt06Kw2uFnmrshcHYjgf_cMgzKVdMPe6BXOP2nryhRjBpg@mail.gmail.com>
Hi!
On Die, 2012-03-20 at 14:30 +0530, Shakthi Kannan wrote:
[...]
> I would like to run c2xml on the Linux kernel sources. Is there a
> recommended way of using the tool on kernel code?
>
> I tried running it directly on a source file, but, get the
> 'header-file "unable to open" error.
>
> $ c2xml linux-3.0.4/net/ethernet/eth.c
>
> ../linux-3.0.4/net/ethernet/eth.c:40:11: error: unable to open
> 'linux/module.h'
>
> I have built sparse from git sources (v0.4.4) on Fedora 15 x86_64.
Someone probably have to tell c2xml where to look for the .h files
similar to gcc's "-I" parameters.
Bernd
--
Bernd Petrovitsch Email : bernd@petrovitsch.priv.at
LUGA : http://www.luga.at
next prev parent reply other threads:[~2012-03-20 9:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-20 9:00 Using c2xml on kernel sources Shakthi Kannan
2012-03-20 9:32 ` Bernd Petrovitsch [this message]
2012-03-20 10:37 ` Dan Carpenter
2012-03-20 15:25 ` Shakthi Kannan
2012-03-20 15:40 ` Dan Carpenter
2012-05-23 9:59 ` Shakthi Kannan
2012-05-23 18:30 ` Christopher Li
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=1332235972.21661.65.camel@thorin \
--to=bernd@petrovitsch.priv.at \
--cc=linux-sparse@vger.kernel.org \
--cc=shakthimaan@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).