<html><body><div style="font-family:Arial, Helvetica, sans-serif; font-size:11.0pt; line-height:1.3; color:#000000" id="nine_body_n177ee9-919d3" class="nine_body" dir="auto"><div class="nine-pg" dir="auto">&gt; Any chance you can give me a quick and dirty fix?</div><div class="nine-pg" dir="auto"><br data-mce-bogus="1"></div><div class="nine-pg" dir="auto">On CentOS 8 Stream, I had to install a specific kernel version to make DRBD compilation work, then exclude the kernel from further updates until a fix is released. More info here: <span style="font-size: 11pt;"><a href="https://github.com/piraeusdatastore/piraeus-operator/issues/137">https://github.com/piraeusdatastore/piraeus-operator/issues/137</a></span></div><div class="nine-pg" dir="auto"><span style="font-size: 11pt;"><br data-mce-bogus="1"></span></div><div class="nine-pg blank sign" dir="auto">Immanuel</div><div id="nine-sign-n177ee9-919d3" class="nine_signature" dir="auto"><div class="nine-pg" dir="auto"><br></div><div class="nine-pg" dir="auto">~ Sent from my mobile</div><div class="nine-pg" dir="auto"><br></div></div><div class="nine-pg blank msg" dir="auto"><br></div></div><div class="quoted_output_body"><div id="quoted_header_n177ee9-919d3" class="quoted_header_editor" dir="auto"><hr style="border:none; height:1px; color:#E1E1E1; background-color:#E1E1E1;" class="nine-pg"><div style="border:none; padding:3.0pt 0cm 0cm 0cm" class="nine-pg" dir="auto"><span style="font-size:11.0pt;font-family:Calibri, Arial, Helvetica, sans-serif"><b>From:</b> "Fabio M. Di Nitto" &lt;fdinitto@redhat.com&gt;<br><b>Sent:</b> Monday, March 1, 2021 14:32<br><b>To:</b> drbd-user@lists.linbit.com<br><b>Subject:</b> [drbd] Re: [DRBD-user] 9.0.28 fails to build on centos-8-stream<br></span></div></div><br type='attribution'></div></body></html><br /><br />On 01/03/2021 11.44, Lars Ellenberg wrote:<br />&gt; On Fri, Feb 26, 2021 at 07:09:29AM +0100, Fabio M. Di Nitto wrote:<br />&gt;&gt; hey guys,<br />&gt;&gt;<br />&gt;&gt; similar to 9.0.27, log below.<br />&gt;&gt;<br />&gt;&gt; Any chance you can give me a quick and dirty fix?<br />&gt; <br />&gt;&gt;    CC [M]  /builddir/build/BUILD/drbd-9.0.28-1/drbd/drbd_main.o<br />&gt;&gt; /builddir/build/BUILD/drbd-9.0.28-1/drbd/drbd_main.c: In function<br />&gt;&gt; 'drbd_create_device':<br />&gt;&gt; /builddir/build/BUILD/drbd-9.0.28-1/drbd/drbd_main.c:3729:6: error: implicit<br />&gt;&gt; declaration of function 'blk_alloc_queue'; did you mean<br />&gt;&gt; 'blk_alloc_queue_rh'? [-Werror=implicit-function-declaration]<br />&gt;&gt;    q = blk_alloc_queue(drbd_make_request, NUMA_NO_NODE);<br />&gt;&gt;        ^~~~~~~~~~~~~~~<br />&gt;&gt;        blk_alloc_queue_rh<br />&gt; <br />&gt; <br />&gt; A short history of blk_alloc_queue():<br /><br />[snip]<br /><br />makes me happy I don&#180;t do kernel development ;)<br /><br />&gt; Our compat code detects this, by testing for ops-&gt;submit_bio,<br />&gt; and patches down from v5.8 style to v5.6 style,<br />&gt; then checks for (gfp_t) vs (fn, node_id) by checking for compile-time<br />&gt; availability of blk_queue_make_request(q,fn),<br />&gt; and would patches based on the above pattern [**].<br />&gt; But since it is NOT available, it does not.<br />&gt; <br />&gt; But we do not yet detect this weird "changed sybol name for compat" thing.<br />&gt; <br />&gt; Guess we need an extra test for "blk_alloc_queue_rh()",<br />&gt; and an extra compat patch :-(<br />&gt; <br />&gt; Meanwhile, you can just add an extra sed statement.<br /><br />Yeah I was hoping to do it right, cocci doesn&#180;t seem a quick learning <br />curve ;)<br /><br />Thanks<br />Fabio<br /><br />_______________________________________________<br />Star us on GITHUB: https://github.com/LINBIT<br />drbd-user mailing list<br />drbd-user@lists.linbit.com<br />https://lists.linbit.com/mailman/listinfo/drbd-user<br />