2.6.16 + reiser4 -2 patch = gcc error
I'm using 2.6.16 and the patch from ftp://ftp.namesys.com/pub/reiser4-for-2.6/2.6.16/reiser4-for-2.6.16-2.patch.gz
CC [M] fs/reiser4/plugin/file_ops_readdir.ofs/reiser4/plugin/file_ops_readdir.c: In function lseek_common_dir':fs/reiser4/plugin/file_ops_readdir.c:485: warning: implicit declaration of functionutex_lock'fs/reiser4/plugin/file_ops_readdir.c:485: error: structure has no member
named _mutex'fs/reiser4/plugin/file_ops_readdir.c:507: warning: implicit declaration of functionutex_unlock'fs/reiser4/plugin/file_ops_readdir.c:507: error: structure has no member
named _mutex'
make[2]: *** [fs/reiser4/plugin/file_ops_readdir.o] Error 1 make[1]: *** [fs/reiser4] Error 2
make: *** [fs] Error 2
Sorry if this has been posted already. I searched, but didn't find it.
Signature · 2 lines
Tom Vier <[email protected]> DSA Key ID 0x15741ECE
Hello
Quoted 19 lines · Tom Vier
I'm using 2.6.16 and the patch from ftp://ftp.namesys.com/pub/reiser4-for-2.6/2.6.16/reiser4-for-2.6.16-2.patch.gz
CC [M]
fs/reiser4/plugin/file_ops_readdir.ofs/reiser4/plugin/file_ops_readdir.c: In functionlseek_common_dir':fs/reiser4/plugin/file_ops_readdir.c:485: warning: implicit declaration of functionutex_lock'fs/reiser4/plugin/file_ops_readdir.c:485: error: structure has no member
named_mutex'fs/reiser4/plugin/file_ops_readdir.c:507: warning: implicit declaration of functionutex_unlock'fs/reiser4/plugin/file_ops_readdir.c:507: error: structure has no member
named_mutex'
make[2]: *** [fs/reiser4/plugin/file_ops_readdir.o] Error 1 make[1]: *** [fs/reiser4] Error 2
make: *** [fs] Error 2
I guess you got broken lines 485 and 507 in filefs/reiser4/plugin/file_ops_readdir.c
Here is what you should have:
485: mutex_lock(&inode->i_mutex);
507: mutex_unlock(&inode->i_mutex);
Quoted 2 lines
Sorry if this has been posted already. I searched, but didn't find it.
Quoted 6 lines · Vladimir V. Saveliev
I guess you got broken lines 485 and 507 in file
fs/reiser4/plugin/file_ops_readdir.cHere is what you should have:
485:mutex_lock(&inode->i_mutex);
507:mutex_unlock(&inode->i_mutex);
Actually, it was my fault. I had forgotten to apply the 2.6.15->.16 patch. Thanks for you help, tho.
Signature · 2 lines
Tom Vier <[email protected]> DSA Key ID 0x15741ECE