diff mbox

block: export symbol for bio_copy_kern

Message ID 1504693225-11715-1-git-send-email-javier@cnexlabs.com (mailing list archive)
State New, archived
Headers show

Commit Message

=?UTF-8?q?Javier=20Gonz=C3=A1lez?= Sept. 6, 2017, 10:20 a.m. UTC
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(+)

Comments

Christoph Hellwig Sept. 6, 2017, 1:44 p.m. UTC | #1
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.
diff mbox

Patch

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