[PATCH] Fix a missing inclusion of linux/types.h in linux/fs.h

From: David Howells
Date: Thu Oct 28 2010 - 03:26:15 EST


linux/fs.h needs to #include linux/types.h otherwise the following errors can be
encountered:

In file included from fs/char_dev.c:8:
include/linux/fs.h:36: error: expected specifier-qualifier-list before 'uint64_t'
In file included from include/linux/tty.h:9,
from drivers/char/tty_mutex.c:4:
include/linux/fs.h:36: error: expected specifier-qualifier-list before 'uint64_t'
In file included from mm/shmem.c:23:
include/linux/fs.h:36: error: expected specifier-qualifier-list before 'uint64_t'

Signed-off-by: David Howells <dhowells@xxxxxxxxxx>
---

include/linux/fs.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/include/linux/fs.h b/include/linux/fs.h
index 6ed7ace..15de46d 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -6,6 +6,7 @@
* structures etc.
*/

+#include <linux/types.h>
#include <linux/limits.h>
#include <linux/ioctl.h>
#include <linux/blk_types.h>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/