Commit db04e18d authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Jens Axboe

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: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Acked-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent a98278ec
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <linux/percpu-refcount.h> #include <linux/percpu-refcount.h>
#include <linux/scatterlist.h> #include <linux/scatterlist.h>
#include <linux/blkzoned.h> #include <linux/blkzoned.h>
#include <linux/pm.h>
struct module; struct module;
struct scsi_ioctl_command; struct scsi_ioctl_command;
...@@ -458,7 +459,7 @@ struct request_queue { ...@@ -458,7 +459,7 @@ struct request_queue {
#ifdef CONFIG_PM #ifdef CONFIG_PM
struct device *dev; struct device *dev;
int rpm_status; enum rpm_status rpm_status;
unsigned int nr_pending; unsigned int nr_pending;
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment