diff --git a/configure.d/1_append_bio.conf b/configure.d/1_append_bio.conf index e11804a..81be684 100644 --- a/configure.d/1_append_bio.conf +++ b/configure.d/1_append_bio.conf @@ -6,11 +6,11 @@ . `dirname $0`/conf_framework -if compile_module "struct bio b;blk_rq_append_bio(NULL, &b)" "linux/blkdev.h" +if compile_module "struct bio *b;blk_rq_append_bio(NULL, &b)" "linux/blkdev.h" then add_define "cas_blk_rq_append_bio(rq, bounce_bio) \\ - blk_rq_append_bio(rq, bounce_bio)" + blk_rq_append_bio(rq, &bounce_bio)" else add_define "cas_blk_rq_append_bio(rq, bounce_bio) \\ - blk_rq_append_bio(rq, &bounce_bio)" + blk_rq_append_bio(rq, bounce_bio)" fi diff --git a/configure.d/2_make_req.conf b/configure.d/2_make_req.conf index 5039bbc..b294d4a 100644 --- a/configure.d/2_make_req.conf +++ b/configure.d/2_make_req.conf @@ -28,7 +28,7 @@ static inline struct request *cas_blk_make_request(struct request_queue *q, struct bio *bounce_bio = bio; int ret; cas_blk_queue_bounce(q, &bounce_bio); - ret = cas_blk_rq_append_bio(rq, &bounce_bio); + ret = cas_blk_rq_append_bio(rq, bounce_bio); if (unlikely(ret)) { blk_put_request(rq); return ERR_PTR(ret);