[PATCH] Fix userspace include of linux/fs.h

From: Måns Rullgård
Date: Sun May 16 2004 - 15:48:14 EST


This patch fixes compilation of programs that #include linux/fs.h.

# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2004/05/16 22:34:26+02:00 mru@xxxxxxxxxx
# fix userspace use of linux/fs.h
#
# include/linux/fs.h
# 2004/05/16 22:28:34+02:00 mru@xxxxxxxxxx +3 -3
# move some #includes inside #ifdef __KERNEL__ to allow userspace inclusion
#
diff -Nru a/include/linux/fs.h b/include/linux/fs.h
--- a/include/linux/fs.h Sun May 16 22:43:07 2004
+++ b/include/linux/fs.h Sun May 16 22:43:07 2004
@@ -13,14 +13,11 @@
#include <linux/types.h>
#include <linux/kdev_t.h>
#include <linux/ioctl.h>
-#include <linux/list.h>
#include <linux/dcache.h>
#include <linux/stat.h>
#include <linux/cache.h>
-#include <linux/radix-tree.h>
#include <linux/kobject.h>
#include <asm/atomic.h>
-#include <linux/audit.h>

struct iovec;
struct nameidata;
@@ -213,6 +210,9 @@

#ifdef __KERNEL__

+#include <linux/list.h>
+#include <linux/radix-tree.h>
+#include <linux/audit.h>
#include <asm/semaphore.h>
#include <asm/byteorder.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/