mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 2.6.11-rc2] Move <linux/prio_tree.h> down in <linux/fs.h>
@ 2005-02-01 16:06 Tom Rini
  2005-02-02 16:21 ` David Woodhouse
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Rini @ 2005-02-01 16:06 UTC (permalink / raw)
  To: Andrew Morton, Kernel Mailing List

<linux/prio_tree.h> is unsafe for inclusion by userland apps, but it is
in the userland-exposed portion of <linux/fs.h>.  It's only needed in
the __KERNEL__ protected portion of the file, so move the #include down
to there.

lmbench-2.0.4 runs into this issue in 'flushdisk'.

Signed-off-by: Tom Rini <trini@kernel.crashing.org>

--- 1.377/include/linux/fs.h	2005-01-25 14:43:48 -07:00
+++ edited/include/linux/fs.h	2005-02-01 09:04:28 -07:00
@@ -16,7 +16,6 @@
 #include <linux/dcache.h>
 #include <linux/stat.h>
 #include <linux/cache.h>
-#include <linux/prio_tree.h>
 #include <linux/kobject.h>
 #include <asm/atomic.h>
 
@@ -219,6 +218,7 @@
 
 #include <linux/list.h>
 #include <linux/radix-tree.h>
+#include <linux/prio_tree.h>
 #include <linux/audit.h>
 #include <linux/init.h>
 #include <asm/semaphore.h>

-- 
Tom Rini
http://gate.crashing.org/~trini/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-02-02 18:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-01 16:06 [PATCH 2.6.11-rc2] Move <linux/prio_tree.h> down in <linux/fs.h> Tom Rini
2005-02-02 16:21 ` David Woodhouse
2005-02-02 16:34   ` Tom Rini
2005-02-02 18:00     ` Tom Rini

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®