# ./autogen.sh && ./configure --with-o2ib=/usr/src/ofa_kernel/x86_64/6.12.0-124.28.1.el10_1.x86_64/ && make
...
CC [M] /root/fs-lustre-release/lustre/osd-zfs/osd_handler.o
CC [M] /root/fs-lustre-release/lustre/osd-zfs/osd_lproc.o
CC [M] /root/fs-lustre-release/lustre/osd-zfs/osd_quota.o
CC [M] /root/fs-lustre-release/lustre/osd-zfs/osd_object.o
CC [M] /root/fs-lustre-release/lustre/osd-zfs/osd_io.o
/root/fs-lustre-release/lustre/osd-zfs/osd_io.c: In function ‘osd_bufs_get_read’:
/root/fs-lustre-release/lustre/osd-zfs/osd_io.c:571:23: error: too few arguments to function ‘dmu_buf_hold_array_by_bonus’
571 | rc = -dmu_buf_hold_array_by_bonus(&obj->oo_dn->dn_bonus->db,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/src/zfs-2.4.1/include/sys/spa.h:46,
from /usr/src/zfs-2.4.1/include/sys/zio.h:40,
from /usr/src/zfs-2.4.1/include/sys/arc.h:39,
from /root/fs-lustre-release/lustre/osd-zfs/osd_internal.h:32,
from /root/fs-lustre-release/lustre/osd-zfs/osd_io.c:27:
/usr/src/zfs-2.4.1/include/sys/dmu.h:670:5: note: declared here
670 | int dmu_buf_hold_array_by_bonus(dmu_buf_t *db, uint64_t offset,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/fs-lustre-release/lustre/osd-zfs/osd_io.c: In function ‘osd_evict_dbufs_after_write’:
/root/fs-lustre-release/lustre/osd-zfs/osd_io.c:1045:15: error: too few arguments to function ‘dmu_buf_hold_array_by_bonus’
1045 | rc = -dmu_buf_hold_array_by_bonus(&obj->oo_dn->dn_bonus->db, off, len,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/zfs-2.4.1/include/sys/dmu.h:670:5: note: declared here
670 | int dmu_buf_hold_array_by_bonus(dmu_buf_t *db, uint64_t offset,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
make[7]: *** [scripts/Makefile.build:229: /root/fs-lustre-release/lustre/osd-zfs/osd_io.o] Error 1
make[6]: *** [scripts/Makefile.build:478: /root/fs-lustre-release/lustre/osd-zfs] Error 2
make[5]: *** [scripts/Makefile.build:478: /root/fs-lustre-release/lustre] Error 2
make[4]: *** [/usr/src/kernels/6.12.0-124.28.1.el10_1.x86_64/Makefile:1994: /root/fs-lustre-release] Error 2
make[3]: *** [Makefile:242: __sub-make] Error 2
make[3]: Leaving directory '/usr/src/kernels/6.12.0-124.28.1.el10_1.x86_64'
make[2]: *** [autoMakefile:1306: modules] Error 2
make[2]: Leaving directory '/root/fs-lustre-release'
make[1]: *** [autoMakefile:774: all-recursive] Error 1
make[1]: Leaving directory '/root/fs-lustre-release'
make: *** [autoMakefile:616: all] Error 2