diff mbox series

[v3,01/10] block: make bio_map_kern() non static

Message ID 20220214080002.18381-2-nj.shetty@samsung.com
State New
Headers show
Series Add Copy offload support | expand

Commit Message

Nitesh Shetty Feb. 14, 2022, 7:59 a.m. UTC
From: SelvaKumar S <selvakuma.s1@samsung.com>

Make bio_map_kern() non static

Signed-off-by: SelvaKumar S <selvakuma.s1@samsung.com>
Signed-off-by: Nitesh Shetty <nj.shetty@samsung.com>
---
 block/blk-map.c        | 2 +-
 include/linux/blkdev.h | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

Comments

Luis Chamberlain Feb. 17, 2022, 8:36 a.m. UTC | #1
On Mon, Feb 14, 2022 at 01:29:51PM +0530, Nitesh Shetty wrote:
> From: SelvaKumar S <selvakuma.s1@samsung.com>
> 
> Make bio_map_kern() non static
> 
> Signed-off-by: SelvaKumar S <selvakuma.s1@samsung.com>
> Signed-off-by: Nitesh Shetty <nj.shetty@samsung.com>

This patch makes no sense on its own. I'd just merge it with
its first user.

  Luis
Nitesh Shetty Feb. 17, 2022, 1:30 p.m. UTC | #2
On Thu, Feb 17, 2022 at 12:36:31AM -0800, Luis Chamberlain wrote:
> On Mon, Feb 14, 2022 at 01:29:51PM +0530, Nitesh Shetty wrote:
> > From: SelvaKumar S <selvakuma.s1@samsung.com>
> > 
> > Make bio_map_kern() non static
> > 
> > Signed-off-by: SelvaKumar S <selvakuma.s1@samsung.com>
> > Signed-off-by: Nitesh Shetty <nj.shetty@samsung.com>
> 
> This patch makes no sense on its own. I'd just merge it with
> its first user.
> 
>   Luis
>

acked. I will do it next version.

--
Nitesh
diff mbox series

Patch

diff --git a/block/blk-map.c b/block/blk-map.c
index 4526adde0156..c110205df0d5 100644
--- a/block/blk-map.c
+++ b/block/blk-map.c
@@ -336,7 +336,7 @@  static void bio_map_kern_endio(struct bio *bio)
  *	Map the kernel address into a bio suitable for io to a block
  *	device. Returns an error pointer in case of error.
  */
-static struct bio *bio_map_kern(struct request_queue *q, void *data,
+struct bio *bio_map_kern(struct request_queue *q, void *data,
 		unsigned int len, gfp_t gfp_mask)
 {
 	unsigned long kaddr = (unsigned long)data;
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 3bfc75a2a450..efed3820cbf7 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -1106,6 +1106,8 @@  extern int blkdev_issue_discard(struct block_device *bdev, sector_t sector,
 extern int __blkdev_issue_discard(struct block_device *bdev, sector_t sector,
 		sector_t nr_sects, gfp_t gfp_mask, int flags,
 		struct bio **biop);
+struct bio *bio_map_kern(struct request_queue *q, void *data, unsigned int len,
+		gfp_t gfp_mask);
 
 #define BLKDEV_ZERO_NOUNMAP	(1 << 0)  /* do not free blocks */
 #define BLKDEV_ZERO_NOFALLBACK	(1 << 1)  /* don't write explicit zeroes */