Skip to content

Commit

Permalink
[PATCH] pull in necessary header files for cdev.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jan Engelhardt authored and Linus Torvalds committed Dec 7, 2006
1 parent 9a2239b commit 5ec68b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/linux/cdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
#define _LINUX_CDEV_H
#ifdef __KERNEL__

#include <linux/kobject.h>
#include <linux/kdev_t.h>
#include <linux/list.h>

struct cdev {
struct kobject kobj;
struct module *owner;
Expand Down

0 comments on commit 5ec68b2

Please sign in to comment.