]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
UBUNTU: SAUCE: hio: locally define disk_map_sector_rcu()
authorPaolo Pisati <paolo.pisati@canonical.com>
Fri, 24 Apr 2020 11:50:32 +0000 (11:50 +0000)
committerPaolo Pisati <paolo.pisati@canonical.com>
Tue, 2 Nov 2021 07:24:49 +0000 (08:24 +0100)
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>
ubuntu/hio/hio.c

index fb471d95b92ab8b299851ade5cca3c1c3037e96a..b22079d3d5d8ccd5e1026aad771b471263e1c25d 100644 (file)
 #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