Skip to content

Commit

Permalink
block: Make request_queue.rpm_status an enum
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Geert Uytterhoeven authored and Jens Axboe committed Sep 1, 2020
1 parent a98278e commit db04e18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/linux/blkdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit db04e18

Please sign in to comment.