On Thu, 7 May 2020 11:35:26 +0900, Damien Le Moal wrote: > Allowing a non-power-of-2 zone size forces the use of direct division > operations of 64bits sector values to obtain a zone number or number of > zones. Doing so without using do_div() leads to compilation errors on > 32bits architecture. > > Devices with a zone size that is not a power of 2 do not exist today so > allowing their emulation is of limited interest, as the sd driver will > not support them anyway. So to fix this compilation error, instead of > using do_div() for sector values divisions, simply disallow zone size > values that are not a power of 2 value, allowing to use bitshift for > divisions in all cases. Applied to 5.8/scsi-queue, thanks! [1/1] scsi: scsi_debug: Disallow zone sizes that are not powers of 2 https://git.kernel.org/mkp/scsi/c/108e36f0d8bf -- Martin K. Petersen Oracle Linux Engineering