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 <paolo.pisati@canonical.com>
#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