Commit 1986c93f09c98628d68bec773c16322fb5b88c38

Authored by Paul Gortmaker
1 parent bb2eac66ee

miscdevice.h: fix up implicit use of lists and types

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>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

include/linux/miscdevice.h
1 1 #ifndef _LINUX_MISCDEVICE_H
2 2 #define _LINUX_MISCDEVICE_H
3 3 #include <linux/major.h>
  4 +#include <linux/list.h>
  5 +#include <linux/types.h>
4 6  
5 7 /*
6 8 * These allocations are managed by device@lanana.org. If you use an