diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2020-08-19 14:34:03 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-09-01 16:49:25 -0600 |
commit | db04e18dbb0146d3c753dc05f7233350375bbc48 (patch) | |
tree | 196e3f949a717b300bd376c0e6ce65ba4a96f123 /include | |
parent | a98278ecfb96ad9c6561d3490159b17ee7668bed (diff) | |
download | linux-stable-db04e18dbb0146d3c753dc05f7233350375bbc48.tar.gz linux-stable-db04e18dbb0146d3c753dc05f7233350375bbc48.tar.bz2 linux-stable-db04e18dbb0146d3c753dc05f7233350375bbc48.zip |
block: Make request_queue.rpm_status an enum
request_queue.rpm_status is assigned values of the rpm_status enum only,
so reflect that in its type.
Note that including <linux/pm.h> is (currently) a no-op, as it is
already included through <linux/genhd.h> and <linux/device.h>, but it is
better to play it safe.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/blkdev.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index bb5636cc17b9..0a1730b30ad2 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -24,6 +24,7 @@ #include <linux/percpu-refcount.h> #include <linux/scatterlist.h> #include <linux/blkzoned.h> +#include <linux/pm.h> struct module; struct scsi_ioctl_command; @@ -458,7 +459,7 @@ struct request_queue { #ifdef CONFIG_PM struct device *dev; - int rpm_status; + enum rpm_status rpm_status; unsigned int nr_pending; #endif |