aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--block/blk-core.c6
-rw-r--r--block/elevator.c2
-rw-r--r--include/linux/blkdev.h4
3 files changed, 6 insertions, 6 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index 0421b53e6431..2bb7d9c0f63e 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -1325,7 +1325,7 @@ void part_round_stats(int cpu, struct hd_struct *part)
1325} 1325}
1326EXPORT_SYMBOL_GPL(part_round_stats); 1326EXPORT_SYMBOL_GPL(part_round_stats);
1327 1327
1328#ifdef CONFIG_PM_RUNTIME 1328#ifdef CONFIG_PM
1329static void blk_pm_put_request(struct request *rq) 1329static void blk_pm_put_request(struct request *rq)
1330{ 1330{
1331 if (rq->q->dev && !(rq->cmd_flags & REQ_PM) && !--rq->q->nr_pending) 1331 if (rq->q->dev && !(rq->cmd_flags & REQ_PM) && !--rq->q->nr_pending)
@@ -2134,7 +2134,7 @@ void blk_account_io_done(struct request *req)
2134 } 2134 }
2135} 2135}
2136 2136
2137#ifdef CONFIG_PM_RUNTIME 2137#ifdef CONFIG_PM
2138/* 2138/*
2139 * Don't process normal requests when queue is suspended 2139 * Don't process normal requests when queue is suspended
2140 * or in the process of suspending/resuming 2140 * or in the process of suspending/resuming
@@ -3159,7 +3159,7 @@ void blk_finish_plug(struct blk_plug *plug)
3159} 3159}
3160EXPORT_SYMBOL(blk_finish_plug); 3160EXPORT_SYMBOL(blk_finish_plug);
3161 3161
3162#ifdef CONFIG_PM_RUNTIME 3162#ifdef CONFIG_PM
3163/** 3163/**
3164 * blk_pm_runtime_init - Block layer runtime PM initialization routine 3164 * blk_pm_runtime_init - Block layer runtime PM initialization routine
3165 * @q: the queue of the device 3165 * @q: the queue of the device
diff --git a/block/elevator.c b/block/elevator.c
index afa3b037a17c..59794d0d38e3 100644
--- a/block/elevator.c
+++ b/block/elevator.c
@@ -539,7 +539,7 @@ void elv_bio_merged(struct request_queue *q, struct request *rq,
539 e->type->ops.elevator_bio_merged_fn(q, rq, bio); 539 e->type->ops.elevator_bio_merged_fn(q, rq, bio);
540} 540}
541 541
542#ifdef CONFIG_PM_RUNTIME 542#ifdef CONFIG_PM
543static void blk_pm_requeue_request(struct request *rq) 543static void blk_pm_requeue_request(struct request *rq)
544{ 544{
545 if (rq->q->dev && !(rq->cmd_flags & REQ_PM)) 545 if (rq->q->dev && !(rq->cmd_flags & REQ_PM))
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index aac0f9ea952a..534dc402c54f 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -398,7 +398,7 @@ struct request_queue {
398 */ 398 */
399 struct kobject mq_kobj; 399 struct kobject mq_kobj;
400 400
401#ifdef CONFIG_PM_RUNTIME 401#ifdef CONFIG_PM
402 struct device *dev; 402 struct device *dev;
403 int rpm_status; 403 int rpm_status;
404 unsigned int nr_pending; 404 unsigned int nr_pending;
@@ -1057,7 +1057,7 @@ extern void blk_put_queue(struct request_queue *);
1057/* 1057/*
1058 * block layer runtime pm functions 1058 * block layer runtime pm functions
1059 */ 1059 */
1060#ifdef CONFIG_PM_RUNTIME 1060#ifdef CONFIG_PM
1061extern void blk_pm_runtime_init(struct request_queue *q, struct device *dev); 1061extern void blk_pm_runtime_init(struct request_queue *q, struct device *dev);
1062extern int blk_pre_runtime_suspend(struct request_queue *q); 1062extern int blk_pre_runtime_suspend(struct request_queue *q);
1063extern void blk_post_runtime_suspend(struct request_queue *q, int err); 1063extern void blk_post_runtime_suspend(struct request_queue *q, int err);