[tip:tracing/kmemtrace] fs, kmemtrace: fix fs.h's PAGE_SIZE dependency

Ingo Molnar
2009-03-25T15:55:23Z

Commit-ID: 55553d2b7c253a1d676596fee680412727d84bc4
Gitweb: http://git.kernel.org/tip/55553d2b7c253a1d676596fee680412727d84bc4
Author: Ingo Molnar <mingo@elte.hu>
AuthorDate: Wed, 25 Mar 2009 16:48:35 +0100
Committer: Ingo Molnar <mingo@elte.hu>
CommitDate: Wed, 25 Mar 2009 16:50:47 +0100

fs, kmemtrace: fix fs.h's PAGE_SIZE dependency

Impact: build fix

ARM does not build due to fs.h using PAGE_SIZE but not including
asm/page.h.

(This was masked before by rcupreempt.h including percpu.h which
brought in asm/page.h indirectly.)

( A future enhancement would be to split out the simple_transaction
facility (only two usage sites) from fs.h, into a separate
linux/simple_transaction.h header. )

Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
Cc: paulmck@linux.vnet.ibm.com
LKML-Reference: <1237898630.25315.83.camel@penberg-laptop>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

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

diff --git a/include/linux/fs.h b/include/linux/fs.h
index 159f7b8..79be937 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -9,6 +9,8 @@
#include <linux/limits.h>
#include <linux/ioctl.h>

+#include <asm/page.h> /* for PAGE_SIZE */
+
/*
* It's silly to have NR_OPEN bigger than NR_FILE, but you can change
* the file limit at runtime and only root can increase the per-process