linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: viresh.linux@gmail.com (viresh kumar)
To: linux-arm-kernel@lists.infradead.org
Subject: QUERY: Inclusion of header files in kernel header files.
Date: Tue, 23 Feb 2010 12:06:45 +0530	[thread overview]
Message-ID: <22dbbef21002222236j2eaaf36cjd3720e2573d25a70@mail.gmail.com> (raw)

Hello,

I have been through many kernel header files and have found that kernel
header
files at many places don't include other header files which they have
dependency upon.

For example:
<linux/amba/bus.h> uses struct device and struct resource and it doesn't
include <linux/device.h> and <linux/resource.h> header files.

Now, whenever i try to include bus.h, i have to include device.h and
resource.h.

Is this correct approach?

Again, if i include device.h and resource.h, they must be included before
bus.h.
Now this will disturb the alphabetical ordering of including header files
sometimes. (not in this example)

Any idea behind this philosophy.


regards,
viresh kumar
ST Microelectronics
India.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100223/8f5cac70/attachment.htm>

             reply	other threads:[~2010-02-23  6:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-23  6:36 viresh kumar [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-02-23  6:30 QUERY: Inclusion of header files in kernel header files viresh kumar
2010-02-24  2:52 ` Eric Miao
2010-02-24  4:20   ` viresh kumar
2010-02-24 12:59     ` Laurent Pinchart

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=22dbbef21002222236j2eaaf36cjd3720e2573d25a70@mail.gmail.com \
    --to=viresh.linux@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).