Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile Errors on Fedora 40 #93

Open
kjoyce77 opened this issue Jun 18, 2024 · 1 comment
Open

Compile Errors on Fedora 40 #93

kjoyce77 opened this issue Jun 18, 2024 · 1 comment

Comments

@kjoyce77
Copy link

  • These seem a little different from the Centos Stream issue.

  • Kernel is 6.9.4-200.fc40.x86_64

  • Building a bootable container 9.1.21, 9.2.9, and 9.2.10 all fail.

  • Kernel 6.8.11 had no issue building.

#37 [builder-nomad-client  6/11] RUN KVER=$(</tmp/kernel-version.txt) make     && make install
#37 sha256:7acc502c72fbe322b359cec7995afaea9f183ebf228b35048388742d086c7bf9
#37 0.440 Need a git checkout to regenerate drbd/.drbd_git_revision
#37 0.446 make[1]: Entering directory '/src/drbd-9.1.21/drbd'
#37 0.462 
#37 0.462     Calling toplevel makefile of kernel source tree, which I believe is in
#37 0.462     KDIR=/lib/modules/6.9.4-200.fc40.x86_64/build
#37 0.462 
#37 0.467 make -C /lib/modules/6.9.4-200.fc40.x86_64/build    M=/src/drbd-9.1.21/drbd obj-m=dummy-for-compat.o dummy-for-compat-h.o
#37 1.514   COMPAT  have_sane_test_environment
#37 1.910   COMPAT  have_sane_test_environment_always_fail
#37 1.935   COMPAT  __vmalloc_has_2_params
#37 2.074   COMPAT  add_disk_returns_int
#37 2.438   COMPAT  before_4_13_kernel_read
#37 2.692   COMPAT  bio_alloc_has_4_params
#37 3.070   COMPAT  blkdev_get_by_path_has_holder_ops
#37 3.447   COMPAT  blkdev_issue_discard_takes_flags
#37 3.799   COMPAT  blkdev_issue_zeroout_discard
#37 4.159   COMPAT  blkdev_put_has_holder
#37 4.517   COMPAT  block_device_operations_open_takes_gendisk
#37 4.908   COMPAT  block_device_operations_release_takes_single_argument
#37 5.284   COMPAT  can_include_vermagic_h
#37 5.323   COMPAT  dax_direct_access_takes_mode
#37 5.640   COMPAT  fs_dax_get_by_bdev_takes_start_off
#37 5.973   COMPAT  fs_dax_get_by_bdev_takes_start_off_and_holder
#37 6.340   COMPAT  genl_policy_in_ops
#37 6.897   COMPAT  have_BIO_MAX_VECS
#37 7.227   COMPAT  have_CRYPTO_TFM_NEED_KEY
#37 7.413   COMPAT  have_GENHD_FL_NO_PART
#37 7.775   COMPAT  have_SHASH_DESC_ON_STACK
#37 7.980   COMPAT  have_WB_congested_enum
#37 8.407   COMPAT  have___bio_add_page
#37 8.751   COMPAT  have_allow_kernel_signal
#37 8.822   COMPAT  have_bdev_discard_granularity
#37 9.202   COMPAT  have_bdev_max_discard_sectors
#37 9.572   COMPAT  have_bdev_nr_sectors
#37 9.942   COMPAT  have_bdev_open_by_path
#37 10.32   COMPAT  have_bdevname
#37 10.68   COMPAT  have_bdgrab
#37 11.04   COMPAT  have_bdi_congested
#37 11.41   COMPAT  have_bdi_congested_fn
#37 11.77   COMPAT  have_bio_alloc_clone
#37 12.15   COMPAT  have_bio_bi_bdev
#37 12.52   COMPAT  have_bio_bi_error
#37 12.87   COMPAT  have_bio_bi_opf
#37 13.25   COMPAT  have_bio_bi_status
#37 13.63   COMPAT  have_bio_clone_fast
#37 13.97   COMPAT  have_bio_op_shift
#37 14.31   COMPAT  have_bio_set_dev
#37 14.69   COMPAT  have_bio_set_op_attrs
#37 15.06   COMPAT  have_bio_split_to_limits
#37 15.46   COMPAT  have_bio_start_io_acct
#37 15.82   COMPAT  have_bioset_init
#37 16.17   COMPAT  have_bioset_need_bvecs
#37 16.53   COMPAT  have_blk_alloc_disk
#37 16.89   COMPAT  have_blk_alloc_queue_rh
#37 17.24   COMPAT  have_blk_check_plugged
#37 17.59   COMPAT  have_blk_cleanup_disk
#37 17.94   COMPAT  have_blk_mode_t
#37 18.30   COMPAT  have_blk_opf_t
#37 18.62   COMPAT  have_blk_qc_t_make_request
#37 18.98   COMPAT  have_blk_qc_t_submit_bio
#37 19.33   COMPAT  have_blk_queue_flag_set
#37 19.73   COMPAT  have_blk_queue_make_request
#37 20.10   COMPAT  have_blk_queue_max_write_same_sectors
#37 20.46   COMPAT  have_blk_queue_merge_bvec
#37 20.85   COMPAT  have_blk_queue_split_bio
#37 21.22   COMPAT  have_blk_queue_split_q_bio
#37 21.56   COMPAT  have_blk_queue_split_q_bio_bioset
#37 21.93   COMPAT  have_blk_queue_update_readahead
#37 22.32   COMPAT  have_blk_queue_write_cache
#37 22.68   COMPAT  have_bvec_kmap_local
#37 23.03   COMPAT  have_d_inode
#37 23.17   COMPAT  have_disk_update_readahead
#37 23.53   COMPAT  have_enum_req_op
#37 23.85   COMPAT  have_fallthrough
#37 23.90   COMPAT  have_fs_dax_get_by_bdev
#37 24.28   COMPAT  have_generic_start_io_acct_q_rw_sect_part
#37 24.67   COMPAT  have_generic_start_io_acct_rw_sect_part
#37 25.04   COMPAT  have_genl_info_userhdr
#37 25.54   COMPAT  have_get_random_u32
#37 25.61   COMPAT  have_get_random_u32_below
#37 25.68   COMPAT  have_hd_struct
#37 26.03   COMPAT  have_ib_cq_init_attr
#37 26.68   COMPAT  have_ib_get_dma_mr
#37 27.27   COMPAT  have_idr_is_empty
#37 27.49   COMPAT  have_inode_lock
#37 27.79   COMPAT  have_ktime_to_timespec64
#37 27.94   COMPAT  have_kvfree
#37 28.22   COMPAT  have_kvfree_rcu
#37 28.34   COMPAT  have_kvfree_rcu_mightsleep
#37 28.48   COMPAT  have_list_next_entry
#37 28.54   COMPAT  have_max_send_recv_sge
#37 29.12   COMPAT  have_nla_nest_start_noflag
#37 29.55   COMPAT  have_nla_parse_deprecated
#37 29.97   COMPAT  have_nla_put_64bit
#37 30.41   COMPAT  have_nla_strscpy
#37 30.85   COMPAT  have_part_stat_h
#37 31.19   COMPAT  have_part_stat_read_accum
#37 31.53   COMPAT  have_pointer_backing_dev_info
#37 31.86   COMPAT  have_proc_create_single
#37 32.15   COMPAT  have_queue_flag_discard
#37 32.54   COMPAT  have_queue_flag_stable_writes
#37 32.90   COMPAT  have_rb_declare_callbacks_max
#37 33.01   COMPAT  have_refcount_inc
#37 33.17   COMPAT  have_req_hardbarrier
#37 33.54   COMPAT  have_req_noidle
#37 33.88   COMPAT  have_req_nounmap
#37 34.23   COMPAT  have_req_op_write
#37 34.56   COMPAT  have_req_op_write_zeroes
#37 34.91   COMPAT  have_req_write
#37 35.26   COMPAT  have_revalidate_disk_size
#37 35.62   COMPAT  have_sched_set_fifo
#37 35.78   COMPAT  have_sched_signal_h
#37 35.97   COMPAT  have_security_netlink_recv
#37 36.36   COMPAT  have_sendpage
#37 36.68   COMPAT  have_sendpage_ok
#37 37.03   COMPAT  have_set_capacity_and_notify
#37 37.42   COMPAT  have_shash_desc_zero
#37 37.63   COMPAT  have_simple_positive
#37 37.79   COMPAT  have_sk_use_task_frag
#37 38.34   COMPAT  have_sock_set_keepalive
#37 38.92   COMPAT  have_strscpy
#37 39.01   COMPAT  have_struct_bvec_iter
#37 39.33   COMPAT  have_struct_size
#37 39.61   COMPAT  have_submit_bio_noacct
#37 39.99   COMPAT  have_tcp_sock_set_cork
#37 40.57   COMPAT  have_tcp_sock_set_keepcnt
#37 41.16   COMPAT  have_tcp_sock_set_keepidle
#37 41.74   COMPAT  have_tcp_sock_set_nodelay
#37 42.33   COMPAT  have_tcp_sock_set_quickack
#37 42.92   COMPAT  have_time64_to_tm
#37 43.06   COMPAT  have_timer_setup
#37 43.19   COMPAT  have_timer_shutdown
#37 43.32   COMPAT  have_void_make_request
#37 43.70   COMPAT  have_void_submit_bio
#37 44.07   COMPAT  ib_alloc_pd_has_2_params
#37 44.68   COMPAT  ib_device_has_ops
#37 45.30   COMPAT  ib_post_send_const_params
#37 45.94   COMPAT  ib_query_device_has_3_params
#37 46.49   COMPAT  need_drbd_wrappers
#37 46.53   COMPAT  need_make_request_recursion
#37 46.57   COMPAT  part_stat_read_takes_block_device
#37 46.96   COMPAT  queue_limits_has_discard_zeroes_data
#37 47.31   COMPAT  rdma_create_id_has_net_ns
#37 47.97   COMPAT  sock_create_kern_has_five_parameters
#37 48.27   COMPAT  sock_ops_returns_addr_len
#37 48.60   COMPAT  struct_gendisk_has_backing_dev_info
#37 49.01   UPD     /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/compat.h
#37 49.02   UPD     /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/.drbd_kernelrelease
#37 49.03   LN      build-current -> build-6.9.4-200.fc40.x86_64/
#37 49.04   LN      compat.h -> build-6.9.4-200.fc40.x86_64/compat.h
#37 49.04   LN      .compat_test -> build-6.9.4-200.fc40.x86_64/.compat_test
#37 49.05   LN      compat.6.9.4-200.fc40.x86_64.h -> build-6.9.4-200.fc40.x86_64/compat.h
#37 49.05   LN      .compat_test.6.9.4-200.fc40.x86_64 -> build-6.9.4-200.fc40.x86_64/.compat_test
#37 49.11 make -C /lib/modules/6.9.4-200.fc40.x86_64/build    M=/src/drbd-9.1.21/drbd obj-m=dummy-for-prep.o dummy-for-patch.o
#37 50.04 make -C /src/drbd-9.1.21/drbd -f Makefile.spatch /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/compat.patch
#37 50.08 ./drbd-kernel-compat/gen_compat_patch.sh: line 17: spatch: command not found
#37 50.09   INFO: no suitable spatch found; trying spatch-as-a-service;
#37 50.09   be patient, may take up to 10 minutes
#37 50.09   if it is in the server side cache it might only take a second
#37 50.09   SPAAS    41b7e3398ee1c0f57d5370435790e7bf
#37 50.09 ./drbd-kernel-compat/gen_compat_patch.sh: line 44: hash: spatch: not found
#37 50.66 Successfully connected to SPAAS ('c2a863a5e1070c434b6696de568debb5b4d23e76')
#37 50.68   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#37 50.68                                  Dload  Upload   Total   Spent    Left  Speed
100 15121    0  7480    0  7641   1073   1096 --:--:--  0:00:06 --:--:--  1915
#37 57.66   You can create a new .tgz including this pre-computed compat patch
#37 57.66   by calling "echo drbd/drbd-kernel-compat/cocci_cache/41b7e3398ee1c0f57d5370435790e7bf/compat.patch >>.filelist ; make tgz"
#37 57.66   CHK     build-6.9.4-200.fc40.x86_64/compat.patch
#37 57.67   LN      /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/compat.patch -> ../drbd-kernel-compat/cocci_cache/41b7e3398ee1c0f57d5370435790e7bf/compat.patch
#37 57.67 set -- /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/compat.patch /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/compat.h;     \
#37 57.67 test $1 -nt $2 || touch -r $1 $2
#37 57.68   SPLIT   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/compat.patch
#37 57.70   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd-headers/compat.h
#37 57.70   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd-headers/drbd_meta_data.h
#37 57.71   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd-headers/drbd_protocol.h
#37 57.72   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd-headers/drbd_strings.c
#37 57.72   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd-headers/drbd_strings.h
#37 57.73   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd-headers/drbd_transport.h
#37 57.74   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd-headers/linux/drbd.h
#37 57.75   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd-headers/linux/drbd_genl.h
#37 57.75   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd-headers/linux/drbd_genl_api.h
#37 57.76   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd-headers/linux/drbd_limits.h
#37 57.77   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd-headers/linux/genl_magic_func-genl_register_family_with_ops_groups.h
#37 57.77   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd-headers/linux/genl_magic_func-genl_register_mc_group.h
#37 57.78   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd-headers/linux/genl_magic_func.h
#37 57.79   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd-headers/linux/genl_magic_struct.h
#37 57.79   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd-headers/windrbd/windrbd_ioctl.h
#37 57.80   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd-kernel-compat/cocci_macros.h
#37 57.81   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd-kernel-compat/drbd_wrappers.c
#37 57.82   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd-kernel-compat/drbd_wrappers.h
#37 57.82   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd-kernel-compat/gen_patch_names.c
#37 57.83   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd-kernel-compat/linux/libnvdimm.h
#37 57.84   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd-kernel-compat/linux/lru_cache.h
#37 57.85   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd-kernel-compat/lru_cache.c
#37 57.85   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd-kernel-compat/nsecs_to_jiffies.c
#37 57.86   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd-kernel-compat/uapi/linux/sched/types.h
#37 57.87   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_actlog.c
#37 57.88   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_bitmap.c
#37 57.88   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_dax_pmem.c
#37 57.89   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_dax_pmem.h
#37 57.90   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_debugfs.c
#37 57.94   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_debugfs.h
#37 57.95   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_int.h
#37 57.97   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_interval.c
#37 57.98   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_interval.h
#37 57.98   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_kref_debug.c
#37 57.99   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_kref_debug.h
#37 58.00   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_main.c
#37 58.02   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_nl.c
#37 58.05   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_nla.c
#37 58.06   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_nla.h
#37 58.07   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_polymorph_printk.h
#37 58.07   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_proc.c
#37 58.08   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_receiver.c
#37 58.09   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_req.c
#37 58.09   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_req.h
#37 58.10   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_sender.c
#37 58.11   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_state.c
#37 58.11   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_state.h
#37 58.12   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_state_change.h
#37 58.13   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_transport.c
#37 58.13   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_transport_tcp.c
#37 58.14   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_transport_template.c
#37 58.15   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_vli.h
#37 58.15   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/kref_debug.c
#37 58.16   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/kref_debug.h
#37 58.17   PATCH   /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/linux/drbd_config.h
#37 58.18   COPY    /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/Kbuild
#37 58.19   GEN     /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_buildtag.c 
#37 58.20   GEN     /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/.kernel.config.gz 
#37 58.24 test -e build-current && \
#37 58.24 make -C /lib/modules/6.9.4-200.fc40.x86_64/build    M=/src/drbd-9.1.21/drbd/build-current modules
#37 59.26   CC [M]  /src/drbd-9.1.21/drbd/build-current/drbd_buildtag.o
#37 59.31   CC [M]  /src/drbd-9.1.21/drbd/build-current/drbd_bitmap.o
#37 60.98   CC [M]  /src/drbd-9.1.21/drbd/build-current/drbd_proc.o
#37 61.47   CC [M]  /src/drbd-9.1.21/drbd/build-current/drbd_sender.o
#37 63.01   CC [M]  /src/drbd-9.1.21/drbd/build-current/drbd_receiver.o
#37 67.49   CC [M]  /src/drbd-9.1.21/drbd/build-current/drbd_req.o
#37 68.94   CC [M]  /src/drbd-9.1.21/drbd/build-current/drbd_actlog.o
#37 70.10   CC [M]  /src/drbd-9.1.21/drbd/build-current/drbd_main.o
#37 70.75 /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_main.c: In function 'drbd_create_device':
#37 70.75 /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_main.c:3937:13: error: implicit declaration of function 'blk_alloc_queue'; did you mean 'blk_sync_queue'? [-Wimplicit-function-declaration]
#37 70.75  3937 |         q = blk_alloc_queue(NUMA_NO_NODE);
#37 70.75       |             ^~~~~~~~~~~~~~~
#37 70.75       |             blk_sync_queue
#37 70.75 /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_main.c:3937:11: error: assignment to 'struct request_queue *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
#37 70.75  3937 |         q = blk_alloc_queue(NUMA_NO_NODE);
#37 70.75       |           ^
#37 70.76 /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_main.c:3942:16: error: implicit declaration of function 'alloc_disk'; did you mean 'alloc_skb'? [-Wimplicit-function-declaration]
#37 70.76  3942 |         disk = alloc_disk(1);
#37 70.76       |                ^~~~~~~~~~
#37 70.76       |                alloc_skb
#37 70.76 /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_main.c:3942:14: error: assignment to 'struct gendisk *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
#37 70.76  3942 |         disk = alloc_disk(1);
#37 70.76       |              ^
#37 70.80 /src/drbd-9.1.21/drbd/build-6.9.4-200.fc40.x86_64/drbd_main.c:4107:9: error: implicit declaration of function 'blk_cleanup_queue'; did you mean 'blk_put_queue'? [-Wimplicit-function-declaration]
#37 70.80  4107 |         blk_cleanup_queue(q);
#37 70.80       |         ^~~~~~~~~~~~~~~~~
#37 70.80       |         blk_put_queue
#37 70.93 make[3]: *** [scripts/Makefile.build:244: /src/drbd-9.1.21/drbd/build-current/drbd_main.o] Error 1
#37 70.93 make[2]: *** [Makefile:1931: /src/drbd-9.1.21/drbd/build-current] Error 2
#37 70.93 make[1]: *** [Makefile:199: kbuild] Error 2
#37 70.93 make[1]: Leaving directory '/src/drbd-9.1.21/drbd'
#37 70.93 make: *** [Makefile:129: module] Error 2
@sammy007
Copy link

Same on Debian backports:

/var/lib/dkms/drbd/9.2.10-1/build/src/drbd/build-6.9.7+bpo-amd64/drbd_main.c: In function ‘drbd_create_device’:
/var/lib/dkms/drbd/9.2.10-1/build/src/drbd/build-6.9.7+bpo-amd64/drbd_main.c:4085:13: error: implicit declaration of function ‘blk_alloc_queue’; did you mean ‘blk_sync_queue’? [-Werror=implicit-function-declaration]
 4085 |         q = blk_alloc_queue(NUMA_NO_NODE);
      |             ^~~~~~~~~~~~~~~
      |             blk_sync_queue
/var/lib/dkms/drbd/9.2.10-1/build/src/drbd/build-6.9.7+bpo-amd64/drbd_main.c:4085:11: warning: assignment to ‘struct request_queue *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
 4085 |         q = blk_alloc_queue(NUMA_NO_NODE);
      |           ^
/var/lib/dkms/drbd/9.2.10-1/build/src/drbd/build-6.9.7+bpo-amd64/drbd_main.c:4090:16: error: implicit declaration of function ‘alloc_disk’; did you mean ‘alloc_skb’? [-Werror=implicit-function-declaration]
 4090 |         disk = alloc_disk(1);
      |                ^~~~~~~~~~
      |                alloc_skb
/var/lib/dkms/drbd/9.2.10-1/build/src/drbd/build-6.9.7+bpo-amd64/drbd_main.c:4090:14: warning: assignment to ‘struct gendisk *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
 4090 |         disk = alloc_disk(1);
      |              ^
/var/lib/dkms/drbd/9.2.10-1/build/src/drbd/build-6.9.7+bpo-amd64/drbd_main.c:4260:9: error: implicit declaration of function ‘blk_cleanup_queue’; did you mean ‘blk_put_queue’? [-Werror=implicit-function-declaration]
 4260 |         blk_cleanup_queue(q);
      |         ^~~~~~~~~~~~~~~~~
      |         blk_put_queue
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-headers-6.9.7+bpo-common/scripts/Makefile.build:249: /var/lib/dkms/drbd/9.2.10-1/build/src/drbd/build-current/drbd_main.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.9.7+bpo-common/Makefile:1943: /var/lib/dkms/drbd/9.2.10-1/build/src/drbd/build-current] Error 2
make: *** [Makefile:248: kbuild] Error 2
make: Leaving directory '/var/lib/dkms/drbd/9.2.10-1/build/src/drbd'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants