To whom it may concern:
I received the following compile error while compiling the 2.6.15.5
kernel. My .config is attached.
Mark
CC fs/nfs/direct.o
fs/nfs/direct.c: In function ?nfs_get_user_pages?:
fs/nfs/direct.c:110: warning: implicit declaration of function
?nfs_free_user_pages?
fs/nfs/direct.c: At top level:
fs/nfs/direct.c:127: warning: conflicting types for ?nfs_free_user_pages?
fs/nfs/direct.c:127: error: static declaration of ?nfs_free_user_pages?
follows non-static declaration
fs/nfs/direct.c:110: error: previous implicit declaration of
?nfs_free_user_pages? was here
make[2]: *** [fs/nfs/direct.o] Error 1
make[1]: *** [fs/nfs] Error 2
make: *** [fs] Error 2
linux:/usr/src/linux-2.6.15.5
On Thu, 2 Mar 2006 01:49 am, Mark L. Fugate wrote:
> To whom it may concern:
>
> I received the following compile error while compiling the 2.6.15.5
> kernel. My .config is attached.
That looks like a silly oversight.
Try this patch.
Cheers,
Con
---
Build fix for direct.c
Signed-off-by: Con Kolivas <[email protected]>
fs/nfs/direct.c | 2 ++
1 file changed, 2 insertions(+)
Index: linux-2.6.15-ck5/fs/nfs/direct.c
===================================================================
--- linux-2.6.15-ck5.orig/fs/nfs/direct.c 2006-03-02 13:06:57.000000000 +1100
+++ linux-2.6.15-ck5/fs/nfs/direct.c 2006-03-02 13:55:28.000000000 +1100
@@ -73,6 +73,8 @@ struct nfs_direct_req {
error; /* any reported error */
};
+static void
+nfs_free_user_pages(struct page **pages, int npages, int do_dirty);
/**
* nfs_get_user_pages - find and set up pages underlying user's buffer