2.6.15.5 Compile error
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.ofs/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
Quoted 4 lines · Mark L. Fugate
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
fs/nfs/direct.c | 2 ++ 1 file changed, 2 insertions(+)
fs/nfs/direct.c +2 -0
@@ -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