gcc-4.6: block: fix unused but set variables in blk-merge
[deliverable/linux.git] / block / blk-map.c
index 9083cf0180cc8a296d2529a4ef9d9943ea5d05c1..c65d7593f7f1deba5511347ceeb6dd5c881e5b3c 100644 (file)
@@ -307,7 +307,7 @@ int blk_rq_map_kern(struct request_queue *q, struct request *rq, void *kbuf,
                return PTR_ERR(bio);
 
        if (rq_data_dir(rq) == WRITE)
-               bio->bi_rw |= (1 << BIO_RW);
+               bio->bi_rw |= (1 << REQ_WRITE);
 
        if (do_copy)
                rq->cmd_flags |= REQ_COPY_USER;
This page took 0.023373 seconds and 5 git commands to generate.