On Sun, Sep 13, 2020 at 03:03:03PM +0900, Damien Le Moal wrote: > diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c > index 95018e650f2d..7f0371185a45 100644 > --- a/drivers/scsi/sd.c > +++ b/drivers/scsi/sd.c > @@ -2968,22 +2968,36 @@ static void sd_read_block_characteristics(struct scsi_disk *sdkp) > } else { > sdkp->zoned = (buffer[8] >> 4) & 3; > if (sdkp->zoned == 1 && !disk_has_partitions(sdkp->disk)) { > +#ifdef CONFIG_BLK_DEV_ZONED You could make that if (IS_ENABLED(CONFIG_BLK_DEV_ZONED)) and get rid of the ugly ifdeffery. Just a nitpick anyway. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette