В сообщении от Четверг 02 марта 2006 22:54 Bernd Prager написал(a): > I tried to compile the new kernel. > "make-kpkg clean; make-kpkg kernel_image" generates: > > CC [M] 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 > > Anybody similar experiences? > Is this a kernel bug? > > -- Bernd
I found this patch somewhere on lwn.net :) -- If you think of MS-DOS as mono, and Windows as stereo, then Linux is Dolby Digital and all the music is free...
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
pgp2rvaFDooJI.pgp
Description: PGP signature