diff options
author | Jan Engelhardt <jengelh@linux01.gwdg.de> | 2006-12-06 23:36:14 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 11:39:32 -0500 |
commit | 5ec68b2e310437e99c297ba04e1afc5297aa6de1 (patch) | |
tree | 6c2341e76c4c2a06539bdcdc680df66c4d23996d /include | |
parent | 9a2239b1174bdf0952a21ed328cd74240d2dd173 (diff) |
[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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/cdev.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/cdev.h b/include/linux/cdev.h index ee5f53f2ca15..f309b00e986e 100644 --- a/include/linux/cdev.h +++ b/include/linux/cdev.h | |||
@@ -2,6 +2,10 @@ | |||
2 | #define _LINUX_CDEV_H | 2 | #define _LINUX_CDEV_H |
3 | #ifdef __KERNEL__ | 3 | #ifdef __KERNEL__ |
4 | 4 | ||
5 | #include <linux/kobject.h> | ||
6 | #include <linux/kdev_t.h> | ||
7 | #include <linux/list.h> | ||
8 | |||
5 | struct cdev { | 9 | struct cdev { |
6 | struct kobject kobj; | 10 | struct kobject kobj; |
7 | struct module *owner; | 11 | struct module *owner; |