<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
I've downloaded RHEL7.4 Beta in order to prepare my future platform
for drbd+corosync+pacemaker.<br>
<br>
Today, I can't compile drbd 8.4.10-1 on my RHEL 7.4 Beta platform,
an error is returned...<br>
<br>
<blockquote><font size="+1"><b><tt> Calling toplevel makefile of
kernel source tree, which I believe is in</tt></b><b><tt><br>
</tt></b><b><tt>
KDIR=/usr/src/kernels/3.10.0-663.el7.x86_64</tt></b><b><tt><br>
</tt></b><b><tt><br>
</tt></b><b><tt>make -C
/usr/src/kernels/3.10.0-663.el7.x86_64
SUBDIRS=/asn/system/build/ha/drbd-8.4/drbd modules</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_inode_lock</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_kvfree</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_prandom_u32</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT drbd_release_returns_void</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_idr_is_empty</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_genl_register_family_with_ops</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_blk_queue_merge_bvec</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_dst_groups</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_f_path_dentry</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_genlmsg_reply</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_ctrl_attr_mcast_groups</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_vzalloc</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_blk_set_stacking_limits</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_netlink_skb_parms_portid</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_void_make_request</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_bool_type</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_proc_pde_data</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_fmode_t</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_bd_claim_by_disk</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_blk_qc_t_make_request</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT queue_limits_has_discard_granularity</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_idr_alloc</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT blkdev_issue_zeroout_blkdev_ifl_wait</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_genlmsg_put_reply</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_nla_put_64bit</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_nlmsg_hdr</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_struct_bvec_iter</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_blk_queue_max_hw_sectors</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_blk_plug_cb_data</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT sock_create_kern_has_five_parameters</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_AHASH_REQUEST_ON_STACK</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_cpumask_empty</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_bd_unlink_disk_holder</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_task_pid_nr</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT init_work_has_three_arguments</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT
bio_split_has_bio_split_pool_parameter</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_SHASH_DESC_ON_STACK</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT need_d_inode</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_generic_start_io_acct</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_IS_ERR_OR_NULL</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_struct_queue_limits</tt></b><b><tt><br>
</tt></b></font><font size="+1"><b><tt> COMPAT
have_bio_set_op_attrs</tt></b></font><font size="+1"><b><tt><br>
</tt></b><b><tt> COMPAT have_WB_congested_enum</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_signed_nla_put</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT bioset_create_has_three_parameters</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_security_netlink_recv</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_umh_wait_proc</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT kmap_atomic_page_only</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_list_splice_tail_init</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_linux_byteorder_swabb_h</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_bio_bi_error</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_shash_desc_zero</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_blk_queue_write_cache</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT
hlist_for_each_entry_has_three_parameters</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_genlmsg_msg_size</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_blkdev_get_by_path</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_blk_queue_split</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_proc_create_data</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_bio_bi_destructor</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_clear_bit_unlock</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_is_vmalloc_addr</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_sock_shutdown</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_idr_for_each_entry</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_blk_queue_max_segments</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_refcount_inc</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT
have_genl_family_in_genlmsg_multicast</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_genl_lock</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_cn_netlink_skb_parms</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_atomic_in_flight</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_debugfs_create_symlink</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_bdev_discard_alignment</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_genlmsg_new</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_kref_get_unless_zero</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_rb_augment_functions</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_idr_for_each</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_simple_positive</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_genl_register_family_with_ops3</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_genl_id_generate</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_bioset_create_front_pad</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT queue_limits_has_discard_zeroes_data</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_open_bdev_exclusive</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_nr_cpu_ids</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT need_genlmsg_multicast_wrapper</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_find_next_zero_bit_le</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT blkdev_issue_zeroout_discard</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT have_pointer_backing_dev_info</tt></b><b><tt><br>
</tt></b><b><tt> COMPAT use_blk_queue_max_sectors_anyways</tt></b><b><tt><br>
</tt></b><b><tt> CHK
/asn/system/build/ha/drbd-8.4/drbd/compat.h</tt></b><b><tt><br>
</tt></b><b><tt> UPD
/asn/system/build/ha/drbd-8.4/drbd/compat.h</tt></b><b><tt><br>
</tt></b><b><tt> CC [M]
/asn/system/build/ha/drbd-8.4/drbd/drbd_debugfs.o</tt></b><b><tt><br>
</tt></b><b><tt> CC [M]
/asn/system/build/ha/drbd-8.4/drbd/drbd_bitmap.o</tt></b><b><tt><br>
</tt></b><b><tt>/asn/system/build/ha/drbd-8.4/drbd/drbd_bitmap.c:
In function ‘bm_page_io_async’:</tt></b><b><tt><br>
</tt></b><b><tt>/asn/system/build/ha/drbd-8.4/drbd/drbd_bitmap.c:1049:3:
warning: passing argument 1 of ‘submit_bio’ makes integer
from pointer without a cast [enabled by default]</tt></b><b><tt><br>
</tt></b><b><tt> submit_bio(bio);</tt></b><b><tt><br>
</tt></b><b><tt> ^</tt></b><b><tt><br>
</tt></b><b><tt>In file included from
include/linux/compat.h:17:0,</tt></b><b><tt><br>
</tt></b><b><tt> from
include/linux/ethtool.h:16,</tt></b><b><tt><br>
</tt></b><b><tt> from
include/linux/netdevice.h:43,</tt></b><b><tt><br>
</tt></b><b><tt> from include/net/sock.h:51,</tt></b><b><tt><br>
</tt></b><b><tt> from include/linux/tcp.h:23,</tt></b><b><tt><br>
</tt></b><b><tt> from
/asn/system/build/ha/drbd-8.4/drbd/drbd_int.h:38,</tt></b><b><tt><br>
</tt></b><b><tt> from
/asn/system/build/ha/drbd-8.4/drbd/drbd_bitmap.c:35:</tt></b><b><tt><br>
</tt></b><font color="#ff0000"><b><tt>include/linux/fs.h:2833:13:
note: expected ‘int’ but argument is of type ‘struct bio
*’</tt></b><b><tt><br>
</tt></b><b><tt> extern void submit_bio(int, struct bio *);</tt></b><b><tt><br>
</tt></b><b><tt> ^</tt></b><b><tt><br>
</tt></b><b><tt>/asn/system/build/ha/drbd-8.4/drbd/drbd_bitmap.c:1049:3:
error: too few arguments to function ‘submit_bio’</tt></b><b><tt><br>
</tt></b><b><tt> submit_bio(bio);</tt></b><b><tt><br>
</tt></b><b><tt> ^</tt></b></font><b><tt><br>
</tt></b><b><tt>In file included from
include/linux/compat.h:17:0,</tt></b><b><tt><br>
</tt></b><b><tt> from
include/linux/ethtool.h:16,</tt></b><b><tt><br>
</tt></b><b><tt> from
include/linux/netdevice.h:43,</tt></b><b><tt><br>
</tt></b><b><tt> from include/net/sock.h:51,</tt></b><b><tt><br>
</tt></b><b><tt> from include/linux/tcp.h:23,</tt></b><b><tt><br>
</tt></b><b><tt> from
/asn/system/build/ha/drbd-8.4/drbd/drbd_int.h:38,</tt></b><b><tt><br>
</tt></b><b><tt> from
/asn/system/build/ha/drbd-8.4/drbd/drbd_bitmap.c:35:</tt></b><b><tt><br>
</tt></b><font color="#ff0000"><b><tt>include/linux/fs.h:2833:13:
note: declared here</tt></b><b><tt><br>
</tt></b><b><tt> extern void submit_bio(int, struct bio *);</tt></b><b><tt><br>
</tt></b><b><tt> ^</tt></b></font><b><tt><br>
</tt></b><b><tt>make[3]: ***
[/asn/system/build/ha/drbd-8.4/drbd/drbd_bitmap.o] Error 1</tt></b><b><tt><br>
</tt></b><b><tt>make[2]: ***
[_module_/asn/system/build/ha/drbd-8.4/drbd] Error 2</tt></b><b><tt><br>
</tt></b><b><tt>make[1]: *** [kbuild] Error 2</tt></b><b><tt><br>
</tt></b><b><tt>make[1]: Leaving directory
`/asn/system/build/ha/drbd-8.4/drbd'</tt></b><b><tt><br>
</tt></b><b><tt>make: *** [module] Error 2</tt></b><b><tt><br>
</tt></b></font></blockquote>
<br>
In file <b><font size="+1"><tt>drbd/drbd_wrappers.h</tt></font></b>,
on line 998, I see : <b><font size="+1"><tt>#ifndef
COMPAT_HAVE_BIO_SET_OP_ATTRS /* compat for Linux before 4.8
{{{2 */</tt><tt><br>
</tt><tt>...</tt><tt><br>
</tt><tt>#define submit_bio(__bio)
submit_bio(__bio->bi_rw,
__bio) <= Line 1051</tt><tt><br>
</tt><tt>#endif</tt></font></b><br>
<br>
When I read the generated file <tt><b><font size="+1">drbd/compat.h</font></b></tt>,
on line 87, I see : <b><font size="+1"><tt>#define
COMPAT_HAVE_BIO_SET_OP_ATTRS</tt></font></b><br>
<br>
My kernel is before 4.8 (3.10.0-663) so I suppose <tt><b><font
size="+1">COMPAT_HAVE_BIO_SET_OP_ATTR</font></b></tt> have not
to be set... but in my case, it is set !<br>
<br>
Now, I don't know if it's a problem on DRBD side or RedHat side...
could you help me ?<br>
<br>
Thanks by advance for help.<br>
<br>
<br>
</body>
</html>