Zygo / bees

Best-Effort Extent-Same, a btrfs dedupe agent
GNU General Public License v3.0
630 stars 57 forks source link

flexible array member btrfs_ioctl_same_args::info not at end of struct crucible::BtrfsExtentSame #232

Closed kakra closed 1 year ago

kakra commented 1 year ago

This has been reported on the Gentoo bug tracker for version 0.7 with kernel headers 6.0:

x86_64-pc-linux-gnu-g++ -Wall -Wextra -O3 -I../include -D_FILE_OFFSET_BITS=64 -std=c++11 -Wold-style-cast -pipe -march=native -fno-diagnostics-color -O2 -o fd.o -c fd.cc
In file included from ../include/crucible/btrfs.h:17,
                 from ../include/crucible/fs.h:11,
                 from extentwalker.cc:5:
/usr/include/linux/btrfs.h:633:45: error: flexible array member btrfs_ioctl_same_args::info not at end of struct crucible::BtrfsExtentSame
  633 |         struct btrfs_ioctl_same_extent_info info[];
      |                                             ^~~~

Link: https://bugs.gentoo.org/876391