+ pull-in-necessary-header-files-for-cdevh.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     pull in necessary header files for cdev.h

has been added to the -mm tree.  Its filename is

     pull-in-necessary-header-files-for-cdevh.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: pull in necessary header files for cdev.h
From: Jan Engelhardt <jengelh@xxxxxxxxxxxxxxx>

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@xxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 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 <linux/kobject.h>
+#include <linux/kdev_t.h>
+#include <linux/list.h>
+
 struct cdev {
 	struct kobject kobj;
 	struct module *owner;
_

Patches currently in -mm which might be from jengelh@xxxxxxxxxxxxxxx are

constify-inode-accessors.patch
remove-double-cast-to-same-type.patch
pull-in-necessary-header-files-for-cdevh.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux