From: "Måns Rullgård" <mru@kth.se>
To: linux-kernel@vger.kernel.org
Cc: torvalds@osdl.org
Subject: [PATCH] Fix userspace inclusion of linux/fs.h (resend)
Date: Sun, 23 May 2004 20:22:18 +0200 [thread overview]
Message-ID: <yw1x1xlb6m1x.fsf@kth.se> (raw)
The patch below fixes compilation of userspace using linux/fs.h. The
patch is against Linux 2.6.6. Please apply of fix some other way.
# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2004/05/16 22:34:26+02:00 mru@ford.guide
# fix userspace use of linux/fs.h
#
# include/linux/fs.h
# 2004/05/16 22:28:34+02:00 mru@ford.guide +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 2004-05-23 20:11:46 +02:00
+++ b/include/linux/fs.h 2004-05-23 20:11:46 +02:00
@@ -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>
--
Måns Rullgård
mru@kth.se
next reply other threads:[~2004-05-23 18:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-23 18:22 Måns Rullgård [this message]
2004-05-23 18:30 ` Jeff Garzik
2004-05-23 19:04 ` Måns Rullgård
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yw1x1xlb6m1x.fsf@kth.se \
--to=mru@kth.se \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®