Skip to contentSkip to conversation

blk/blk-core.c: fix warning for non-rt builds

PATCH In review Paul Gortmaker 2 participants 2 messages May 31, 2015 – Jun 11, 2015 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 blk/blk-core.c: fix warning for non-rt builds

To fix:
block/blk-core.c:103:5: warning: "CONFIG_PREEMPT_RT_FULL" is not defined

---

[please squash into block-mq-don-t-complete-requests-via-IPI.patch]

 block/blk-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
block/blk-core.c +1 -1
index f8a4e9484eb3..ea9a9f41793d 100644
@@ -100,7 +100,7 @@ void blk_rq_init(struct request_queue *q, struct request *rq)
 
 	INIT_LIST_HEAD(&rq->queuelist);
 	INIT_LIST_HEAD(&rq->timeout_list);
-#if CONFIG_PREEMPT_RT_FULL
+#ifdef CONFIG_PREEMPT_RT_FULL
 	INIT_WORK(&rq->work, __blk_mq_complete_request_remote_work);
 #endif
 	rq->cpu = -1;
Signature · 1 line
2.2.1
#1 lore raw
Quoted 7 lines · * Paul Gortmaker | 2015-05-31 14:06:09 [-0400]:

To fix:
block/blk-core.c:103:5: warning: "CONFIG_PREEMPT_RT_FULL" is not defined

---

[please squash into block-mq-don-t-complete-requests-via-IPI.patch]

done, thanks.

Sebastian