From: Erik Mouw <mouw@nl.linux.org>
To: "Robert P. J. Day" <rpjday@mindspring.com>
Cc: Daniel Rodrick <daniel.rodrick@gmail.com>,
kernelnewbies <kernelnewbies@nl.linux.org>,
linux-newbie@vget.kernel.org
Subject: Re: required header files not #included in cdev.h
Date: Wed, 31 Jan 2007 10:26:04 +0100 [thread overview]
Message-ID: <20070131092604.GC4304@gateway.home> (raw)
In-Reply-To: <Pine.LNX.4.64.0701310333390.30221@CPE00045a9c397f-CM001225dbafb6>
[-- Attachment #1: Type: text/plain, Size: 1429 bytes --]
On Wed, Jan 31, 2007 at 03:36:28AM -0500, Robert P. J. Day wrote:
> On Wed, 31 Jan 2007, Daniel Rodrick wrote:
> > Is this OK?
>
> typically, this is not OK, but you must be looking at an old version
> of cdev.h. the latest "git pull" version does, in fact, include the
> appropriate header files:
>
> #include <linux/kobject.h>
> #include <linux/kdev_t.h>
> #include <linux/list.h>
I guess his "old version" is linux-2.6.19. The include files were fixed
during development from 2.6.19 to 2.6.20-rc1:
erik@arthur:~/git/linux-2.6 > git-log v2.6.19..v2.6.20-rc1 include/linux/cdev.h
commit 5ec68b2e310437e99c297ba04e1afc5297aa6de1
Author: Jan Engelhardt <jengelh@linux01.gwdg.de>
Date: Wed Dec 6 20:36:14 2006 -0800
[PATCH] pull in necessary header files for cdev.h
linux/cdev.h uses struct kobject and other structs and should therefore
include them. Currently, a module either needs to add the missing includes
itself, or, in case a module includes other headers already, needs to put
<linux/cdev.h> last, which goes against a alphabetically-sorted include
list.
Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Erik
--
They're all fools. Don't worry. Darwin may be slow, but he'll
eventually get them. -- Matthew Lammers in alt.sysadmin.recovery
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
prev parent reply other threads:[~2007-01-31 9:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-31 8:28 required header files not #included in cdev.h Daniel Rodrick
2007-01-31 8:36 ` Robert P. J. Day
2007-01-31 9:26 ` Erik Mouw [this message]
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=20070131092604.GC4304@gateway.home \
--to=mouw@nl.linux.org \
--cc=daniel.rodrick@gmail.com \
--cc=kernelnewbies@nl.linux.org \
--cc=linux-newbie@vget.kernel.org \
--cc=rpjday@mindspring.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