I don't use reiserfs - but having a quick look at the 2.6.9-22 kernel source ... It looks like RedHat patched the reiserfs source to change 'struct key' to 'struct reiserfs_key' (Patch2503) - I guess to prevent name conflicts with the 'Key management patches' (from the spec file). However, it looks like they missed a couple ... not surprising as they don't support reiserfs, so they don't hit this problem. The attached patch seems to allow it to compile - although not tested. James Pearson Lim Wee Cheong wrote: > Hi, > > I tried to compile the 2.6.9-22.EL kernel with reiserfs enabled. make fails as > follows. anyone managed to compile with reiserfs successfully? > > CC [M] fs/reiserfs/stree.o > fs/reiserfs/stree.c: In function `get_lkey': > fs/reiserfs/stree.c:322: warning: return from incompatible pointer type > fs/reiserfs/stree.c:325: warning: return from incompatible pointer type > fs/reiserfs/stree.c:329: warning: return from incompatible pointer type > fs/reiserfs/stree.c:332: warning: return from incompatible pointer type > fs/reiserfs/stree.c:337: warning: return from incompatible pointer type > fs/reiserfs/stree.c:338: warning: return from incompatible pointer type > fs/reiserfs/stree.c: At top level: > fs/reiserfs/stree.c:346: error: conflicting types for 'get_rkey' > include/linux/reiserfs_fs.h:1886: error: previous declaration of 'get_rkey' was > here > fs/reiserfs/stree.c:346: error: conflicting types for 'get_rkey' > include/linux/reiserfs_fs.h:1886: error: previous declaration of 'get_rkey' was > here > fs/reiserfs/stree.c: In function `get_rkey': > fs/reiserfs/stree.c:361: warning: return from incompatible pointer type > fs/reiserfs/stree.c:364: warning: return from incompatible pointer type > fs/reiserfs/stree.c:368: warning: return from incompatible pointer type > fs/reiserfs/stree.c:371: warning: return from incompatible pointer type > fs/reiserfs/stree.c:376: warning: return from incompatible pointer type > fs/reiserfs/stree.c:377: warning: return from incompatible pointer type > fs/reiserfs/stree.c: In function `key_in_buffer': > fs/reiserfs/stree.c:399: warning: passing arg 1 of `comp_keys' from incompatible > pointer type > fs/reiserfs/stree.c:403: warning: passing arg 1 of `comp_keys' from incompatible > pointer type > make[2]: *** [fs/reiserfs/stree.o] Error 1 > make[1]: *** [fs/reiserfs] Error 2 > make: *** [fs] Error 2 > > _______________________________________________ > CentOS mailing list > CentOS@xxxxxxxxxx > http://lists.centos.org/mailman/listinfo/centos > -------------- next part -------------- A non-text attachment was scrubbed... Name: stree.patch Type: text/x-patch Size: 999 bytes Desc: not available Url : http://lists.centos.org/pipermail/centos/attachments/20051026/a5dceffc/stree.bin