linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] block: export symbol for bio_copy_kern
@ 2017-09-06 10:20 Javier González
  2017-09-06 13:44 ` Christoph Hellwig
  0 siblings, 1 reply; 2+ messages in thread
From: Javier González @ 2017-09-06 10:20 UTC (permalink / raw)
  To: axboe; +Cc: linux-block, linux-kernel, Javier González

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] block: export symbol for bio_copy_kern
  2017-09-06 10:20 [PATCH] block: export symbol for bio_copy_kern Javier González
@ 2017-09-06 13:44 ` Christoph Hellwig
  0 siblings, 0 replies; 2+ messages in thread
From: Christoph Hellwig @ 2017-09-06 13:44 UTC (permalink / raw)
  To: Javier González
  Cc: axboe, linux-block, linux-kernel, Javier González

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-06 13:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-06 10:20 [PATCH] block: export symbol for bio_copy_kern Javier González
2017-09-06 13:44 ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).