Commit 5ec68b2e authored by Jan Engelhardt's avatar Jan Engelhardt Committed by Linus Torvalds

[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: default avatarJan Engelhardt <jengelh@gmx.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 9a2239b1
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment