<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">> 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" <fdinitto@redhat.com><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 />> On Fri, Feb 26, 2021 at 07:09:29AM +0100, Fabio M. Di Nitto wrote:<br />>> hey guys,<br />>><br />>> similar to 9.0.27, log below.<br />>><br />>> Any chance you can give me a quick and dirty fix?<br />> <br />>> CC [M] /builddir/build/BUILD/drbd-9.0.28-1/drbd/drbd_main.o<br />>> /builddir/build/BUILD/drbd-9.0.28-1/drbd/drbd_main.c: In function<br />>> 'drbd_create_device':<br />>> /builddir/build/BUILD/drbd-9.0.28-1/drbd/drbd_main.c:3729:6: error: implicit<br />>> declaration of function 'blk_alloc_queue'; did you mean<br />>> 'blk_alloc_queue_rh'? [-Werror=implicit-function-declaration]<br />>> q = blk_alloc_queue(drbd_make_request, NUMA_NO_NODE);<br />>> ^~~~~~~~~~~~~~~<br />>> blk_alloc_queue_rh<br />> <br />> <br />> A short history of blk_alloc_queue():<br /><br />[snip]<br /><br />makes me happy I don´t do kernel development ;)<br /><br />> Our compat code detects this, by testing for ops->submit_bio,<br />> and patches down from v5.8 style to v5.6 style,<br />> then checks for (gfp_t) vs (fn, node_id) by checking for compile-time<br />> availability of blk_queue_make_request(q,fn),<br />> and would patches based on the above pattern [**].<br />> But since it is NOT available, it does not.<br />> <br />> But we do not yet detect this weird "changed sybol name for compat" thing.<br />> <br />> Guess we need an extra test for "blk_alloc_queue_rh()",<br />> and an extra compat patch :-(<br />> <br />> Meanwhile, you can just add an extra sed statement.<br /><br />Yeah I was hoping to do it right, cocci doesn´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 />