]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
miscdevice.h: fix up implicit use of lists and types
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 29 Aug 2011 19:22:17 +0000 (15:22 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 6 Oct 2011 18:10:14 +0000 (14:10 -0400)
By removing the implicit presence of module.h from this file, we
will see things like:

In file included from fs/dlm/user.c:9:
include/linux/miscdevice.h:50: error: field ‘list’ has incomplete type
include/linux/miscdevice.h:54: error: expected specifier-qualifier-list before ‘mode_t’

Call out lists.h and types.h for inclusion to fix each of the
above respectively.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
include/linux/miscdevice.h

index c309b1ecdc1c8b089725258cce9613e5ff7d9bbc..94af9b0337d979cb444c775320e2febdb80d57a4 100644 (file)
@@ -2,6 +2,8 @@
 #define _LINUX_MISCDEVICE_H
 #include <linux/module.h>
 #include <linux/major.h>
+#include <linux/list.h>
+#include <linux/types.h>
 
 /*
  *     These allocations are managed by device@lanana.org. If you use an