Thread (8 messages) 8 messages, 2 authors, 2021-01-04

Re: FAILED: patch "[PATCH] null_blk: Fix zone size initialization" failed to apply to 4.19-stable tree

From: Damien Le Moal <hidden>
Date: 2021-01-04 12:14:58

On 2021/01/04 19:51, gregkh@linuxfoundation.org wrote:
On Mon, Jan 04, 2021 at 06:14:41AM +0000, Damien Le Moal wrote:
quoted
On Mon, 2020-12-28 at 12:49 +0100, gregkh@linuxfoundation.org wrote:
quoted
The patch below does not apply to the 4.19-stable tree.
If someone wants it applied there, or to any other stable or longterm
tree, then please email the backport, including the original git commit
id to [off-list ref].

thanks,

greg k-h
Hi Greg,

I sent a backported patch for 4.19-stable in reply to your email. The backport
is identical to the one I sent separately for the 5.4-stable tree.
It breaks the build:

drivers/block/null_blk_zoned.c: In function ‘null_zone_init’:
drivers/block/null_blk_zoned.c:5:42: error: ‘SZ_1M’ undeclared (first use in this function)
    5 | #define MB_TO_SECTS(mb) (((sector_t)mb * SZ_1M) >> SECTOR_SHIFT)
      |                                          ^~~~~
drivers/block/null_blk_zoned.c:27:23: note: in expansion of macro ‘MB_TO_SECTS’
   27 |  dev_capacity_sects = MB_TO_SECTS(dev->size);
      |                       ^~~~~~~~~~~
drivers/block/null_blk_zoned.c:5:42: note: each undeclared identifier is reported only once for each function it appears in
    5 | #define MB_TO_SECTS(mb) (((sector_t)mb * SZ_1M) >> SECTOR_SHIFT)
      |                                          ^~~~~
drivers/block/null_blk_zoned.c:27:23: note: in expansion of macro ‘MB_TO_SECTS’
   27 |  dev_capacity_sects = MB_TO_SECTS(dev->size);
      |                       ^~~~~~~~~~~

:(
Unclear where I made a mistake before sending this. It was missing an include.
I sent the proper patch, correctly tested this time, in reply to the above email.

Thanks !


-- 
Damien Le Moal
Western Digital Research
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help