Hugo Mills <hugo <at> carfax.org.uk> writes: > It includes the latest scrub patches, the compile fixes for gcc > 4.6, and a selection of other, smaller features. Go forth and play. > Thx Hugo, I hit this error while trying to compile: # make dir-test ls dir-test.c dir-test.c gcc -Wp,-MMD,./.dir-test.o.d,-MT,dir-test.o -Wall -D_FILE_OFFSET_BITS=64 - D_FORTIFY_SOURCE=2 -g -Werror -Os -c dir-test.c dir-test.c: In function âinitial_inode_initâ: dir-test.c:66:2: error: passing argument 1 of âbtrfs_set_inode_generationâ from incompatible pointer type [-Werror] ctree.h:1064:1: note: expected âstruct extent_buffer *â but argument is of type âstruct btrfs_inode_item *â dir-test.c:66:2: error: passing argument 2 of âbtrfs_set_inode_generationâ makes pointer from integer without a cast [-Werror] ctree.h:1064:1: note: expected âstruct btrfs_inode_item *â but argument is of type âu64â dir-test.c:66:2: error: too few arguments to function âbtrfs_set_inode_generationâ ctree.h:1064:1: note: declared here dir-test.c:67:2: error: passing argument 1 of âbtrfs_set_inode_modeâ from incompatible pointer type [-Werror] ctree.h:1073:1: note: expected âstruct extent_buffer *â but argument is of type âstruct btrfs_inode_item *â dir-test.c:67:2: error: passing argument 2 of âbtrfs_set_inode_modeâ makes pointer from integer without a cast [-Werror] ctree.h:1073:1: note: expected âstruct btrfs_inode_item *â but argument is of type âintâ dir-test.c:67:2: error: too few arguments to function âbtrfs_set_inode_modeâ ctree.h:1073:1: note: declared here dir-test.c: In function âins_oneâ: dir-test.c:89:11: error: âstruct btrfs_keyâ has no member named âflagsâ dir-test.c:98:9: error: too few arguments to function âbtrfs_insert_dir_itemâ ctree.h:1832:5: note: declared here dir-test.c:117:6: error: assignment makes integer from pointer without a cast [- Werror] dir-test.c:128:8: error: âstruct extent_bufferâ has no member named âleafâ dir-test.c:128:8: error: âstruct extent_bufferâ has no member named âleafâ dir-test.c:131:3: error: passing argument 1 of âbtrfs_dir_name_lenâ from incompatible pointer type [-Werror] ctree.h:1346:1: note: expected âstruct extent_buffer *â but argument is of type âstruct btrfs_dir_item *â dir-test.c:131:3: error: too few arguments to function âbtrfs_dir_name_lenâ ctree.h:1346:1: note: declared here dir-test.c: In function âinsert_dupâ: dir-test.c:160:5: error: âstruct btrfs_keyâ has no member named âflagsâ dir-test.c:164:9: error: too few arguments to function âbtrfs_insert_dir_itemâ ctree.h:1832:5: note: declared here dir-test.c: In function âdel_dir_itemâ: dir-test.c:184:7: error: âstruct extent_bufferâ has no member named âleafâ dir-test.c:184:7: error: âstruct extent_bufferâ has no member named âleafâ dir-test.c:196:2: error: passing argument 4 of âbtrfs_lookup_inodeâ makes pointer from integer without a cast [-Werror] ctree.h:1883:5: note: expected âstruct btrfs_key *â but argument is of type âu64â dir-test.c:204:19: error: âstruct btrfs_fs_infoâ has no member named âlast_inode_allocâ dir-test.c:205:16: error: âstruct btrfs_fs_infoâ has no member named âlast_inode_allocâ dir-test.c: In function âdel_oneâ: dir-test.c:232:6: error: assignment makes integer from pointer without a cast [- Werror] dir-test.c: In function âlookup_itemâ: dir-test.c:262:6: error: assignment makes integer from pointer without a cast [- Werror] dir-test.c:265:8: error: âstruct extent_bufferâ has no member named âleafâ dir-test.c:265:8: error: âstruct extent_bufferâ has no member named âleafâ dir-test.c:254:6: error: variable âobjectidâ set but not used [-Werror=unused- but-set-variable] dir-test.c: In function âlookup_enoentâ: dir-test.c:290:6: error: assignment makes integer from pointer without a cast [- Werror] dir-test.c: In function âempty_treeâ: dir-test.c:314:5: error: âstruct btrfs_keyâ has no member named âflagsâ dir-test.c:332:8: error: âstruct extent_bufferâ has no member named âleafâ dir-test.c:332:8: error: âstruct extent_bufferâ has no member named âleafâ dir-test.c:334:3: error: passing argument 1 of âbtrfs_dir_name_lenâ from incompatible pointer type [-Werror] ctree.h:1346:1: note: expected âstruct extent_buffer *â but argument is of type âstruct btrfs_dir_item *â dir-test.c:334:3: error: too few arguments to function âbtrfs_dir_name_lenâ ctree.h:1346:1: note: declared here dir-test.c: In function âfill_treeâ: dir-test.c:367:4: error: too many arguments to function âbtrfs_commit_transactionâ disk-io.h:71:5: note: declared here dir-test.c: In function âmainâ: dir-test.c:438:2: error: passing argument 2 of âopen_ctreeâ makes integer from pointer without a cast [-Werror] disk-io.h:46:20: note: expected âu64â but argument is of type âstruct btrfs_super_block *â dir-test.c:478:35: error: âstruct extent_bufferâ has no member named ânodeâ dir-test.c:479:37: error: âstruct extent_bufferâ has no member named ânodeâ dir-test.c:480:4: error: too many arguments to function âclose_ctreeâ disk-io.h:49:5: note: declared here dir-test.c:481:4: error: passing argument 2 of âopen_ctreeâ makes integer from pointer without a cast [-Werror] disk-io.h:46:20: note: expected âu64â but argument is of type âstruct btrfs_super_block *â dir-test.c:503:2: error: too many arguments to function âclose_ctreeâ disk-io.h:49:5: note: declared here cc1: all warnings being treated as errors make: *** [dir-test.o] Error 1 # gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.1/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /build/src/gcc-4.6.1/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with- bugurl=https://bugs.archlinux.org/ --enable- languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable- threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind- exceptions --enable-clocale=gnu --enable-gnu-unique-object --enable-linker- build-id --with-ppl --enable-cloog-backend=isl --enable-lto --enable-gold -- enable-ld=default --enable-plugin --with-plugin-ld=ld.gold --enable-multilib -- disable-libstdcxx-pch --enable-checking=release Thread model: posix gcc version 4.6.1 (GCC) -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
