From: Jan Engelhardt Date: Thu, 7 Dec 2006 04:36:14 +0000 (-0800) Subject: [PATCH] pull in necessary header files for cdev.h X-Git-Tag: v2.6.20-rc1~15^2~14^2~221 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5ec68b2e310437e99c297ba04e1afc5297aa6de1;p=platform%2Fkernel%2Flinux-exynos.git [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 last, which goes against a alphabetically-sorted include list. Signed-off-by: Jan Engelhardt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/cdev.h b/include/linux/cdev.h index ee5f53f..f309b00 100644 --- a/include/linux/cdev.h +++ b/include/linux/cdev.h @@ -2,6 +2,10 @@ #define _LINUX_CDEV_H #ifdef __KERNEL__ +#include +#include +#include + struct cdev { struct kobject kobj; struct module *owner;