From b6e5398a300952aab139c493da0313c4dc28f80f Mon Sep 17 00:00:00 2001 From: Paolo Pisati Date: Fri, 24 Apr 2020 11:50:32 +0000 Subject: [PATCH] UBUNTU: SAUCE: hio: locally define disk_map_sector_rcu() Commit "581e260 block: move block layer internals out of include/linux/genhd.h" hid disk_map_sector_rcu() (and other blk APIs) from driver code, locally add back the prototype. Signed-off-by: Paolo Pisati --- ubuntu/hio/hio.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ubuntu/hio/hio.c b/ubuntu/hio/hio.c index fb471d95b92a..b22079d3d5d8 100644 --- a/ubuntu/hio/hio.c +++ b/ubuntu/hio/hio.c @@ -87,6 +87,10 @@ #define hio_warn(f, arg...) printk(KERN_WARNING MODULE_NAME"warn: " f , ## arg) #define hio_err(f, arg...) printk(KERN_ERR MODULE_NAME"err: " f , ## arg) +#if (LINUX_VERSION_CODE > KERNEL_VERSION(5,6,0)) +struct hd_struct *disk_map_sector_rcu(struct gendisk *disk, sector_t sector); +#endif + /* slave port */ #define SSD_SLAVE_PORT_DEVID 0x000a -- 2.39.5