[PATCH] fs: fix missing header file

From: Kevin Cernekee
Date: Fri May 20 2011 - 00:42:20 EST


spin_lock_prefetch() requires <linux/prefetch.h>. This failure was seen
on MIPS:

CC fs/inode.o
fs/inode.c: In function 'new_inode':
fs/inode.c:894:2: error: implicit declaration of function 'spin_lock_prefetch'
make[1]: *** [fs/inode.o] Error 1
make: *** [fs] Error 2

Signed-off-by: Kevin Cernekee <cernekee@xxxxxxxxx>
---
fs/inode.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/fs/inode.c b/fs/inode.c
index 33c963d..c77081f 100644
--- a/fs/inode.c
+++ b/fs/inode.c
@@ -26,6 +26,7 @@
#include <linux/posix_acl.h>
#include <linux/ima.h>
#include <linux/cred.h>
+#include <linux/prefetch.h>
#include "internal.h"

/*
--
1.7.5

--
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/