[OpenAFS-devel] checking for do_sync_read() linux-2.6.24.2 openafs-1.4.6

Jirka Matela xmatela@fi.muni.cz
Tue, 19 Feb 2008 11:56:40 +0100


Hi,

I can't get compiled 1.4.6 against linux-2.6.24.2. It always crashes when it
gets to:

src/libafs/MODLOAD-2.6.24.2-SP/osi_vnodeops.c: In function 'afs_linux_read':
src/libafs/MODLOAD-2.6.24.2-SP/osi_vnodeops.c:81:
error: implicit declaration of function 'generic_file_read'

Really, there is no such function in 2.6.24.2. The do_sync_read should be used
instead but it is not, since the configure script says:

checking for linux do_sync_read()... no

The checking routine in configure script fails because of wrong use of
CFLAGS, see:

http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.24.y.git;a=commit;h=0c53c8e6eb456cde30f2305421c605713856abc8

It should use EXTRA_CFLAGS instead of CFLAGS. With disabled checking for
CFLAGS misuse (commented out in scripts/Makefile.build) is checking for do_sync_read()
positive and afs gets compiled.

Jirka