Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1727323 > unrolled thread

[PATCH] block: export symbol for bio_copy_kern

Started by"Javier González" <jg@lightnvm.io>
First post2017-09-06 12:30 +0200
Last post2017-09-06 15:50 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] block: export symbol for bio_copy_kern "Javier González" <jg@lightnvm.io> - 2017-09-06 12:30 +0200
    Re: [PATCH] block: export symbol for bio_copy_kern Christoph Hellwig <hch@infradead.org> - 2017-09-06 15:50 +0200

#1727323 — [PATCH] block: export symbol for bio_copy_kern

From"Javier González" <jg@lightnvm.io>
Date2017-09-06 12:30 +0200
Subject[PATCH] block: export symbol for bio_copy_kern
Message-ID<umFKP-lj-29@gated-at.bofh.it>
Export symbol for bio_copy_kern so that we can use it in modules.

Reported-by: Andiry Xu <t-jianxu@microsoft.com>
Signed-off-by: Javier González <javier@cnexlabs.com>
---
 block/bio.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/block/bio.c b/block/bio.c
index 6745759028da..cface315ace5 100644
--- a/block/bio.c
+++ b/block/bio.c
@@ -1610,6 +1610,7 @@ struct bio *bio_copy_kern(struct request_queue *q, void *data, unsigned int len,
 	bio_put(bio);
 	return ERR_PTR(-ENOMEM);
 }
+EXPORT_SYMBOL(bio_copy_kern);
 
 /*
  * bio_set_pages_dirty() and bio_check_pages_dirty() are support functions
-- 
2.7.4

[toc] | [next] | [standalone]


#1727484

FromChristoph Hellwig <hch@infradead.org>
Date2017-09-06 15:50 +0200
Message-ID<umISl-2uc-15@gated-at.bofh.it>
In reply to#1727323
On Wed, Sep 06, 2017 at 12:20:25PM +0200, Javier González wrote:
> Export symbol for bio_copy_kern so that we can use it in modules.

NAK.  Always allocate the request first and then map the data to
the request.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web