scsi: sd_zbc: Change the type of the ZBC fields into u32
authorBart Van Assche <bart.vanassche@wdc.com>
Tue, 17 Apr 2018 01:04:39 +0000 (18:04 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 19 Apr 2018 04:00:44 +0000 (00:00 -0400)
This patch does not change any functionality but makes it clear that it is on
purpose that these fields are 32 bits wide.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Damien Le Moal <damien.lemoal@wdc.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.com>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/sd.h

index 0d663b5e45bb816c29920e84123096532da749d8..392c7d078ae37eae9f2d966d3b6a3c1a1c531485 100644 (file)
@@ -74,12 +74,12 @@ struct scsi_disk {
        struct gendisk  *disk;
        struct opal_dev *opal_dev;
 #ifdef CONFIG_BLK_DEV_ZONED
-       unsigned int    nr_zones;
-       unsigned int    zone_blocks;
-       unsigned int    zone_shift;
-       unsigned int    zones_optimal_open;
-       unsigned int    zones_optimal_nonseq;
-       unsigned int    zones_max_open;
+       u32             nr_zones;
+       u32             zone_blocks;
+       u32             zone_shift;
+       u32             zones_optimal_open;
+       u32             zones_optimal_nonseq;
+       u32             zones_max_open;
 #endif
        atomic_t        openers;
        sector_t        capacity;       /* size in logical blocks */