<div dir="ltr">Hello All,<br><div><br></div><div>Compiling drbd with DOCA-OFED and MLNX-OFED fails.</div><div><br></div><div>DRBD: drbd-9.2.11 and drbd-9.2.10 </div><div>(drbd-9.2.9 works)</div><div><br></div><div>OS: Rocky Linux 9.4</div><div>DOCA OFED drivers:</div>kmod-mlnx-ofa_kernel-24.07-OFED.24.07.0.6.1.1.rhel9u4.x86_64<br><div>mlnx-ofa_kernel-24.07-OFED.24.07.0.6.1.1.rhel9u4.x86_64</div><div>mlnx-ofa_kernel-devel-24.07-OFED.24.07.0.6.1.1.rhel9u4.x86_64</div><div><br></div><div>OS: Rocky Linux 9.1</div><div>MLNX OFED drivers:</div><div>kmod-mlnx-ofa_kernel-23.10-OFED.23.10.3.2.2.1.rhel9u1.x86_64<br>mlnx-ofa_kernel-23.10-OFED.23.10.3.2.2.1.rhel9u1.x86_64<br>mlnx-ofa_kernel-devel-23.10-OFED.23.10.3.2.2.1.rhel9u1.x86_64<br></div><div><br></div><div>Here is the full compiler output -</div><div>-----------------------------------------------------------------------</div><div>[root@vmhost01 SOURCES]# rpmbuild --define &quot;ofed_kernel_dir /usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64&quot;  -ba drbd-kernel.spec<br>warning:  &quot;XXX selected 5.14.0-427.40.1.el9_4.x86_64 based on installed kernel-*devel packages&quot;<br>warning: bogus date in %changelog: Wed Dec 22 2023 Philipp Reisner &lt;<a href="mailto:phil@linbit.com">phil@linbit.com</a>&gt; - 9.2.7<br>setting SOURCE_DATE_EPOCH=1723420800<br>Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.l5QZ2a<br>+ umask 022<br>+ cd /root/rpmbuild/BUILD<br>+ rm -f /var/tmp/drbd-kernel.rpmbuild.files_suse_kmod_drbd.tmp.w2kle2 /var/tmp/drbd-kernel.rpmbuild.files_rh_kmod_drbd.tmp.Bncnov<br>+ cd /root/rpmbuild/BUILD<br>+ rm -rf drbd-9.2.11<br>+ /usr/bin/gzip -dc /root/rpmbuild/SOURCES/drbd-9.2.11.tar.gz<br>+ /usr/bin/tar -xof -<br>+ STATUS=0<br>+ &#39;[&#39; 0 -ne 0 &#39;]&#39;<br>+ cd drbd-9.2.11<br>+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .<br>+ RPM_EC=0<br>++ jobs -p<br>+ exit 0<br>Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.8DlmU9<br>+ umask 022<br>+ cd /root/rpmbuild/BUILD<br>+ cd drbd-9.2.11<br>+ for flavor in default<br>++ &#39;[&#39; default = default &#39;]&#39;<br>++ echo /usr/src/kernels//5.14.0-427.40.1.el9_4.x86_64<br>+ make -C drbd -j8 all KDIR=/usr/src/kernels//5.14.0-427.40.1.el9_4.x86_64 BUILD_OFED=1 OFED_KERNEL_DIR=/usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64 OFED_VERSION=24.07_OFED.24.07.0.6.1.1.rhel9u4<br>make: Entering directory &#39;/root/rpmbuild/BUILD/drbd-9.2.11/drbd&#39;<br>BUILDING FOR OFED:<br>==================<br>: /usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/Module.symvers<br>: -I/usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/include -include linux/compat-2.6.h<br>===================================================================<br><br>    Calling toplevel makefile of kernel source tree, which I believe is in<br>    KDIR=/usr/src/kernels//5.14.0-427.40.1.el9_4.x86_64<br><br>make -C /usr/src/kernels//5.14.0-427.40.1.el9_4.x86_64    &quot;PRE_CFLAGS=-I/usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/include -include linux/compat-2.6.h&quot; M=/root/rpmbuild/BUILD/drbd-9.2.11/drbd obj-m=dummy-for-compat.o dummy-for-compat-h.o<br>  COMPAT  have_sane_test_environment<br>  COMPAT  have_sane_test_environment_always_fail<br>  LN      build-current -&gt; build-5.14.0-427.40.1.el9_4.x86_64/<br>  LN      compat.h -&gt; build-5.14.0-427.40.1.el9_4.x86_64/compat.h<br>  UPD     /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/.drbd_kernelrelease<br>  LN      .compat_test -&gt; build-5.14.0-427.40.1.el9_4.x86_64/.compat_test<br>  LN      .compat_test.5.14.0-427.40.1.el9_4.x86_64 -&gt; build-5.14.0-427.40.1.el9_4.x86_64/.compat_test<br>  LN      compat.5.14.0-427.40.1.el9_4.x86_64.h -&gt; build-5.14.0-427.40.1.el9_4.x86_64/compat.h<br>  COMPAT  __vmalloc_has_2_params<br>  COMPAT  add_disk_returns_int<br>  COMPAT  before_4_13_kernel_read<br>  COMPAT  bio_alloc_has_4_params<br>  COMPAT  blk_alloc_disk_takes_queue_limits<br>  COMPAT  blkdev_get_by_path_has_holder_ops<br>  COMPAT  blkdev_issue_discard_takes_flags<br>  COMPAT  blkdev_issue_zeroout_discard<br>  COMPAT  blkdev_put_has_holder<br>  COMPAT  block_device_operations_open_takes_gendisk<br>  COMPAT  block_device_operations_release_takes_single_argument<br>  COMPAT  can_include_vermagic_h<br>  COMPAT  dax_direct_access_takes_mode<br>  COMPAT  fs_dax_get_by_bdev_takes_start_off<br>  COMPAT  fs_dax_get_by_bdev_takes_start_off_and_holder<br>  COMPAT  genl_policy_in_ops<br>  COMPAT  have_BIO_MAX_VECS<br>  COMPAT  have_CRYPTO_TFM_NEED_KEY<br>  COMPAT  have_GENHD_FL_NO_PART<br>  COMPAT  have_SHASH_DESC_ON_STACK<br>  COMPAT  have_WB_congested_enum<br>  COMPAT  have___bio_add_page<br>  COMPAT  have_allow_kernel_signal<br>  COMPAT  have_bdev_discard_granularity<br>  COMPAT  have_bdev_file_open_by_path<br>  COMPAT  have_bdev_max_discard_sectors<br>  COMPAT  have_bdev_nr_sectors<br>  COMPAT  have_bdev_open_by_path<br>  COMPAT  have_bdevname<br>  COMPAT  have_bdgrab<br>  COMPAT  have_bdi_congested<br>  COMPAT  have_bdi_congested_fn<br>  COMPAT  have_bio_advance_iter_single<br>  COMPAT  have_bio_alloc_clone<br>  COMPAT  have_bio_bi_bdev<br>  COMPAT  have_bio_bi_error<br>  COMPAT  have_bio_bi_opf<br>  COMPAT  have_bio_bi_status<br>  COMPAT  have_bio_clone_fast<br>  COMPAT  have_bio_op_shift<br>  COMPAT  have_bio_set_dev<br>  COMPAT  have_bio_set_op_attrs<br>  COMPAT  have_bio_split_to_limits<br>  COMPAT  have_bio_start_io_acct<br>  COMPAT  have_bioset_init<br>  COMPAT  have_bioset_need_bvecs<br>  COMPAT  have_blk_alloc_disk<br>  COMPAT  have_blk_alloc_queue_rh<br>  COMPAT  have_blk_check_plugged<br>  COMPAT  have_blk_cleanup_disk<br>  COMPAT  have_blk_mode_t<br>  COMPAT  have_blk_opf_t<br>  COMPAT  have_blk_qc_t_make_request<br>  COMPAT  have_blk_qc_t_submit_bio<br>  COMPAT  have_blk_queue_flag_set<br>  COMPAT  have_blk_queue_make_request<br>  COMPAT  have_blk_queue_max_write_same_sectors<br>  COMPAT  have_blk_queue_merge_bvec<br>  COMPAT  have_blk_queue_split_bio<br>  COMPAT  have_blk_queue_split_q_bio<br>  COMPAT  have_blk_queue_split_q_bio_bioset<br>  COMPAT  have_blk_queue_update_readahead<br>  COMPAT  have_blk_queue_write_cache<br>  COMPAT  have_bvec_kmap_local<br>  COMPAT  have_d_inode<br>  COMPAT  have_disk_update_readahead<br>  COMPAT  have_enum_req_op<br>  COMPAT  have_fallthrough<br>  COMPAT  have_fs_dax_get_by_bdev<br>  COMPAT  have_generic_start_io_acct_q_rw_sect_part<br>  COMPAT  have_generic_start_io_acct_rw_sect_part<br>  COMPAT  have_genl_info_userhdr<br>  COMPAT  have_get_random_u32<br>  COMPAT  have_get_random_u32_below<br>  COMPAT  have_hd_struct<br>  COMPAT  have_ib_cq_init_attr<br>  COMPAT  have_ib_get_dma_mr<br>  COMPAT  have_idr_is_empty<br>  COMPAT  have_inode_lock<br>  COMPAT  have_kmap_local_page<br>  COMPAT  have_ktime_to_timespec64<br>  COMPAT  have_kvfree<br>  COMPAT  have_kvfree_rcu<br>  COMPAT  have_kvfree_rcu_mightsleep<br>  COMPAT  have_list_is_first<br>  COMPAT  have_list_next_entry<br>  COMPAT  have_lookup_user_key<br>  COMPAT  have_max_send_recv_sge<br>  COMPAT  have_nla_nest_start_noflag<br>  COMPAT  have_nla_parse_deprecated<br>  COMPAT  have_nla_put_64bit<br>  COMPAT  have_nla_strscpy<br>  COMPAT  have_part_stat_h<br>  COMPAT  have_part_stat_read_accum<br>  COMPAT  have_pointer_backing_dev_info<br>  COMPAT  have_proc_create_single<br>  COMPAT  have_queue_flag_discard<br>  COMPAT  have_queue_flag_stable_writes<br>  COMPAT  have_rb_declare_callbacks_max<br>  COMPAT  have_refcount_inc<br>  COMPAT  have_req_hardbarrier<br>  COMPAT  have_req_noidle<br>  COMPAT  have_req_nounmap<br>  COMPAT  have_req_op_write<br>  COMPAT  have_req_op_write_zeroes<br>  COMPAT  have_req_write<br>  COMPAT  have_revalidate_disk_size<br>  COMPAT  have_sched_set_fifo<br>  COMPAT  have_sched_signal_h<br>  COMPAT  have_security_netlink_recv<br>  COMPAT  have_sendpage<br>  COMPAT  have_sendpage_ok<br>  COMPAT  have_set_capacity_and_notify<br>  COMPAT  have_shash_desc_zero<br>  COMPAT  have_simple_positive<br>  COMPAT  have_sk_use_task_frag<br>  COMPAT  have_sock_set_keepalive<br>  COMPAT  have_strscpy<br>  COMPAT  have_struct_bvec_iter<br>  COMPAT  have_struct_size<br>  COMPAT  have_submit_bio_noacct<br>  COMPAT  have_tasklet_setup<br>  COMPAT  have_tcp_sock_set_cork<br>  COMPAT  have_tcp_sock_set_keepcnt<br>  COMPAT  have_tcp_sock_set_keepidle<br>  COMPAT  have_tcp_sock_set_nodelay<br>  COMPAT  have_tcp_sock_set_quickack<br>  COMPAT  have_time64_to_tm<br>  COMPAT  have_timer_setup<br>  COMPAT  have_timer_shutdown<br>  COMPAT  have_tls_get_record_type<br>  COMPAT  have_tls_tx_rx<br>  COMPAT  have_void_make_request<br>  COMPAT  have_void_submit_bio<br>  COMPAT  ib_alloc_pd_has_2_params<br>  COMPAT  ib_device_has_ops<br>  COMPAT  ib_post_send_const_params<br>  COMPAT  ib_query_device_has_3_params<br>  COMPAT  need_drbd_wrappers<br>  COMPAT  need_make_request_recursion<br>  COMPAT  need_recalc_sigpending<br>  COMPAT  need_skb_abort_seq_read<br>  COMPAT  part_stat_read_takes_block_device<br>  COMPAT  queue_limits_has_discard_zeroes_data<br>  COMPAT  rdma_create_id_has_net_ns<br>  COMPAT  rdma_reject_has_reason_arg<br>  COMPAT  sk_data_ready_has_1_param<br>  COMPAT  sock_create_kern_has_netns_parameter<br>  COMPAT  sock_ops_returns_addr_len<br>  COMPAT  struct_gendisk_has_backing_dev_info<br>  UPD     /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/compat.h<br>make -C /usr/src/kernels//5.14.0-427.40.1.el9_4.x86_64    &quot;PRE_CFLAGS=-I/usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/include -include linux/compat-2.6.h&quot; M=/root/rpmbuild/BUILD/drbd-9.2.11/drbd obj-m=dummy-for-prep.o dummy-for-patch.o<br>  GEN     /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_buildtag.c <br>  GEN     /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/.kernel.config.gz <br>  COPY    /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/Kbuild<br>  COPY    /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/handshake/Kbuild<br>make -C /root/rpmbuild/BUILD/drbd-9.2.11/drbd -f Makefile.spatch /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/compat.patch<br>  CHK     build-5.14.0-427.40.1.el9_4.x86_64/compat.patch<br>  LN      /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/compat.patch -&gt; ../drbd-kernel-compat/cocci_cache/769afc64ab07c4a33084a8a28074712e/compat.patch<br>set -- /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/compat.patch /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/compat.h;        \<br>test $1 -nt $2 || touch -r $1 $2<br>  SPLIT   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/compat.patch<br>warning: rule starting on line 11, node 30: iov_iter_bvec(...)[1,2,12,13,16] in dtt_send_page may be inconsistently modified<br>warning: rule starting on line 11, node 31: sent = ... ;[1,2,12,13,17] in dtt_send_page may be inconsistently modified<br>warning: rule starting on line 11, node 29: bvec_set_page(...)[1,2,12,13,15] in dtt_send_page may be inconsistently modified<br>warning: rule starting on line 11, node 22: iov_iter_bvec(...)[1,2,9,10,13] in _dtl_send_page may be inconsistently modified<br>warning: rule starting on line 11, node 23: sent = ... ;[1,2,9,10,14] in _dtl_send_page may be inconsistently modified<br>warning: rule starting on line 11, node 21: bvec_set_page(...)[1,2,9,10,12] in _dtl_send_page may be inconsistently modified<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-headers/compat.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-headers/drbd_meta_data.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-headers/drbd_protocol.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-headers/drbd_strings.c<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-headers/drbd_strings.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-headers/drbd_transport.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-headers/linux/drbd.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-headers/linux/drbd_genl.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-headers/linux/drbd_genl_api.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-headers/linux/drbd_limits.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-headers/linux/genl_magic_func-genl_register_family_with_ops_groups.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-headers/linux/genl_magic_func-genl_register_mc_group.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-headers/linux/genl_magic_func.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-headers/linux/genl_magic_struct.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-headers/windrbd/windrbd_ioctl.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/cocci_macros.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/drbd_wrappers.c<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/drbd_wrappers.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/handshake/genl.c<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/handshake/genl.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/handshake/handshake.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/handshake/netlink.c<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/handshake/request.c<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/handshake/tlshd.c<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/linux/libnvdimm.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/linux/lru_cache.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/linux/overflow.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/lru_cache.c<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/net/handshake.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/nsecs_to_jiffies.c<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/uapi/linux/handshake.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd-kernel-compat/uapi/linux/sched/types.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_actlog.c<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_bitmap.c<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_dax_pmem.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_dax_pmem.c<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_debugfs.c<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_debugfs.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_int.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_interval.c<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_interval.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_kref_debug.c<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_kref_debug.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_main.c<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_nl.c<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_nla.c<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_nla.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_polymorph_printk.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_proc.c<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_req.c<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_receiver.c<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_req.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_sender.c<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_state.c<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_state.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_state_change.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_transport.c<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_transport_lb-tcp.c<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_transport_rdma.c<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_transport_tcp.c<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_transport_template.c<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/drbd_vli.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/kref_debug.c<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/linux/drbd_config.h<br>  PATCH   /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-5.14.0-427.40.1.el9_4.x86_64/kref_debug.h<br>test -e build-current &amp;&amp; \<br>make -C /usr/src/kernels//5.14.0-427.40.1.el9_4.x86_64    &quot;PRE_CFLAGS=-I/usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/include -include linux/compat-2.6.h&quot; M=/root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current modules<br>  CC [M]  /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd_buildtag.o<br>  CC [M]  /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd_bitmap.o<br>  CC [M]  /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd_proc.o<br>  CC [M]  /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd_sender.o<br>  CC [M]  /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd_receiver.o<br>  CC [M]  /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd_req.o<br>  CC [M]  /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd_actlog.o<br>  CC [M]  /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd_main.o<br>/root/rpmbuild/BUILD/drbd-9.2.11/drbd/drbd_bitmap.c:13: warning: &quot;pr_fmt&quot; redefined<br>   13 | #define pr_fmt(fmt)     KBUILD_MODNAME &quot;: &quot; fmt<br>      | <br>In file included from ./include/linux/kernel.h:20,<br>                 from /usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/include/linux/kernel.h:6,<br>                 from ./include/linux/uio.h:8,<br>                 from ./include/linux/socket.h:8,<br>                 from ./include/uapi/linux/if.h:25,<br>                 from /usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/include/linux/compat-2.6.h:11,<br>                 from &lt;command-line&gt;:<br>./include/linux/printk.h:375: note: this is the location of the previous definition<br>  375 | #define pr_fmt(fmt) fmt<br>      | <br>/root/rpmbuild/BUILD/drbd-9.2.11/drbd/drbd_main.c:17: warning: &quot;pr_fmt&quot; redefined<br>   17 | #define pr_fmt(fmt)     KBUILD_MODNAME &quot;: &quot; fmt<br>      | <br>In file included from ./include/linux/kernel.h:20,<br>                 from /usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/include/linux/kernel.h:6,<br>                 from ./include/linux/uio.h:8,<br>                 from ./include/linux/socket.h:8,<br>                 from ./include/uapi/linux/if.h:25,<br>                 from /usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/include/linux/compat-2.6.h:11,<br>                 from &lt;command-line&gt;:<br>./include/linux/printk.h:375: note: this is the location of the previous definition<br>  375 | #define pr_fmt(fmt) fmt<br>      | <br>  COPY    /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd_strings.c<br>  CC [M]  /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd_nl.o<br>  CC [M]  /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd_interval.o<br>/root/rpmbuild/BUILD/drbd-9.2.11/drbd/drbd_nl.c:14: warning: &quot;pr_fmt&quot; redefined<br>   14 | #define pr_fmt(fmt)     KBUILD_MODNAME &quot;: &quot; fmt<br>      | <br>In file included from ./include/linux/kernel.h:20,<br>                 from /usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/include/linux/kernel.h:6,<br>                 from ./include/linux/uio.h:8,<br>                 from ./include/linux/socket.h:8,<br>                 from ./include/uapi/linux/if.h:25,<br>                 from /usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/include/linux/compat-2.6.h:11,<br>                 from &lt;command-line&gt;:<br>./include/linux/printk.h:375: note: this is the location of the previous definition<br>  375 | #define pr_fmt(fmt) fmt<br>      | <br>  CC [M]  /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd_state.o<br>  CC [M]  /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd_nla.o<br>  CC [M]  /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd_transport.o<br>  CC [M]  /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd-kernel-compat/nsecs_to_jiffies.o<br>/root/rpmbuild/BUILD/drbd-9.2.11/drbd/drbd_transport.c:2: warning: &quot;pr_fmt&quot; redefined<br>    2 | #define pr_fmt(fmt)     KBUILD_MODNAME &quot;: &quot; fmt<br>      | <br>In file included from ./include/linux/kernel.h:20,<br>                 from /usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/include/linux/kernel.h:6,<br>                 from ./include/linux/uio.h:8,<br>                 from ./include/linux/socket.h:8,<br>                 from ./include/uapi/linux/if.h:25,<br>                 from /usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/include/linux/compat-2.6.h:11,<br>                 from &lt;command-line&gt;:<br>./include/linux/printk.h:375: note: this is the location of the previous definition<br>  375 | #define pr_fmt(fmt) fmt<br>      | <br>  CC [M]  /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd-kernel-compat/lru_cache.o<br>/root/rpmbuild/BUILD/drbd-9.2.11/drbd/drbd-kernel-compat/nsecs_to_jiffies.c:5:12: error: static declaration of &#39;nsecs_to_jiffies64&#39; follows non-static declaration<br>    5 | static u64 nsecs_to_jiffies64(u64 n)<br>      |            ^~~~~~~~~~~~~~~~~~<br>In file included from ./include/linux/ktime.h:25,<br>                 from ./include/linux/timer.h:6,<br>                 from ./include/linux/workqueue.h:9,<br>                 from ./include/linux/srcu.h:21,<br>                 from ./include/linux/notifier.h:16,<br>                 from ./arch/x86/include/asm/uprobes.h:13,<br>                 from ./include/linux/uprobes.h:49,<br>                 from ./include/linux/mm_types.h:15,<br>                 from ./include/linux/uio.h:10,<br>                 from ./include/linux/socket.h:8,<br>                 from ./include/uapi/linux/if.h:25,<br>                 from /usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/include/linux/compat-2.6.h:11,<br>                 from &lt;command-line&gt;:<br>./include/linux/jiffies.h:438:12: note: previous declaration of &#39;nsecs_to_jiffies64&#39; with type &#39;u64(u64)&#39; {aka &#39;long long unsigned int(long long unsigned int)&#39;}<br>  438 | extern u64 nsecs_to_jiffies64(u64 n);<br>      |            ^~~~~~~~~~~~~~~~~~<br>make[2]: *** [scripts/Makefile.build:299: /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd-kernel-compat/nsecs_to_jiffies.o] Error 1<br>make[2]: *** Waiting for unfinished jobs....<br>/root/rpmbuild/BUILD/drbd-9.2.11/drbd/drbd_transport.c:2: warning: &quot;pr_fmt&quot; redefined<br>    2 | #define pr_fmt(fmt)     KBUILD_MODNAME &quot;: &quot; fmt<br>      | <br>In file included from ./include/linux/kernel.h:20,<br>                 from /usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/include/linux/kernel.h:6,<br>                 from ./include/linux/uio.h:8,<br>                 from ./include/linux/socket.h:8,<br>                 from ./include/uapi/linux/if.h:25,<br>                 from /usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/include/linux/compat-2.6.h:11,<br>                 from &lt;command-line&gt;:<br>./include/linux/printk.h:375: note: this is the location of the previous definition<br>  375 | #define pr_fmt(fmt) fmt<br>      | <br>/root/rpmbuild/BUILD/drbd-9.2.11/drbd/drbd_main.c:17: warning: &quot;pr_fmt&quot; redefined<br>   17 | #define pr_fmt(fmt)     KBUILD_MODNAME &quot;: &quot; fmt<br>      | <br>In file included from ./include/linux/kernel.h:20,<br>                 from /usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/include/linux/kernel.h:6,<br>                 from ./include/linux/uio.h:8,<br>                 from ./include/linux/socket.h:8,<br>                 from ./include/uapi/linux/if.h:25,<br>                 from /usr/src/ofa_kernel/x86_64/5.14.0-427.13.1.el9_4.x86_64/include/linux/compat-2.6.h:11,<br>                 from &lt;command-line&gt;:<br>./include/linux/printk.h:375: note: this is the location of the previous definition<br>  375 | #define pr_fmt(fmt) fmt<br>      | <br>make[1]: *** [Makefile:1936: /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current] Error 2<br>make: *** [Makefile:248: kbuild] Error 2<br>make: Leaving directory &#39;/root/rpmbuild/BUILD/drbd-9.2.11/drbd&#39;<br>error: Bad exit status from /var/tmp/rpm-tmp.8DlmU9 (%build)<br><br><br>RPM build errors:<br>     &quot;XXX selected 5.14.0-427.40.1.el9_4.x86_64 based on installed kernel-*devel packages&quot;<br>    bogus date in %changelog: Wed Dec 22 2023 Philipp Reisner &lt;<a href="mailto:phil@linbit.com">phil@linbit.com</a>&gt; - 9.2.7<br>    Bad exit status from /var/tmp/rpm-tmp.8DlmU9 (%build)<br></div><div>-----------------------------------------------------------------------</div><div><br></div><div>This seems to be causing it -</div><div><div>-----------------------------------------------------------------------</div></div><div>  CC [M]  /root/rpmbuild/BUILD/drbd-9.2.11/drbd/build-current/drbd-kernel-compat/lru_cache.o<br>/root/rpmbuild/BUILD/drbd-9.2.11/drbd/drbd-kernel-compat/nsecs_to_jiffies.c:5:12: error: static declaration of &#39;nsecs_to_jiffies64&#39; follows non-static declaration<br>    5 | static u64 nsecs_to_jiffies64(u64 n)</div><div><div>-----------------------------------------------------------------------</div><div><br></div></div><div>Is there a workaround for this?</div><div><br></div><div>Regards,</div><div><br></div><div><br></div><div>Indivar Nair</div></div>