Build failed against kernel-2.6.28

jeff.liu jeff.liu at oracle.com
Mon Jun 1 02:04:37 PDT 2009


Hello,

I just run into an issue while trying to build CRFS against
kernel2.6.28, since the 'prepare_write' and 'commit_write' were removed
from "struct address_space_operations" definination,

The error shown as following:

make[1]: Entering directory `/usr/src/linux-2.6.28'
CC [M] /home/jeff/jeff_payattention_project/crfs/lk/file.o
CC [M] /home/jeff/jeff_payattention_project/crfs/lk/csum.o
CC [M] /home/jeff/jeff_payattention_project/crfs/lk/debug.o
CC [M] /home/jeff/jeff_payattention_project/crfs/lk/dir.o
CC [M] /home/jeff/jeff_payattention_project/crfs/lk/errnos.o
CC [M] /home/jeff/jeff_payattention_project/crfs/lk/hash.o
CC [M] /home/jeff/jeff_payattention_project/crfs/lk/inode.o
/home/jeff/jeff_payattention_project/crfs/lk/inode.c:39: error: unknown
field 'prepare_write' specified in initializer
/home/jeff/jeff_payattention_project/crfs/lk/inode.c:39: warning:
initialization from incompatible pointer type
/home/jeff/jeff_payattention_project/crfs/lk/inode.c:40: error: unknown
field 'commit_write' specified in initializer
/home/jeff/jeff_payattention_project/crfs/lk/inode.c:40: warning:
initialization from incompatible pointer type
make[2]: *** [/home/jeff/jeff_payattention_project/crfs/lk/inode.o] Error 1
make[1]: *** [_module_/home/jeff/jeff_payattention_project/crfs/lk] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.28'


The build process is ok for 2.6.27.


Thanks,
Jeff



More information about the crfs-devel mailing list