From: Jan Engelhardt 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 --- include/linux/cdev.h | 4 ++++ 1 files changed, 4 insertions(+) diff -puN include/linux/cdev.h~pull-in-necessary-header-files-for-cdevh include/linux/cdev.h --- a/include/linux/cdev.h~pull-in-necessary-header-files-for-cdevh +++ a/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; _