summaryrefslogtreecommitdiff
path: root/drivers/target
diff options
context:
space:
mode:
authorBaolin Liu <liubaolin@kylinos.cn>2024-10-30 10:18:00 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2024-11-06 20:45:37 -0500
commitda5aeca99dd0b6c7bf6679382756ea6bda195f72 (patch)
tree62fd1e777cd053968235deb6e225045d516c9ddc /drivers/target
parent84c1e27e6c64919812824a60001988fc384840ce (diff)
downloadlwn-da5aeca99dd0b6c7bf6679382756ea6bda195f72.tar.gz
lwn-da5aeca99dd0b6c7bf6679382756ea6bda195f72.zip
scsi: target: Fix incorrect function name in pscsi_create_type_disk()
In pr_err(), bdev_open_by_path() should be renamed to bdev_file_open_by_path() Fixes: 034f0cf8fdf9 ("target: port block device access to file") Signed-off-by: Baolin Liu <liubaolin@kylinos.cn> Link: https://lore.kernel.org/r/20241030021800.234980-1-liubaolin12138@163.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/target')
-rw-r--r--drivers/target/target_core_pscsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/target_core_pscsi.c b/drivers/target/target_core_pscsi.c
index f98ebb18666b..da7017113f92 100644
--- a/drivers/target/target_core_pscsi.c
+++ b/drivers/target/target_core_pscsi.c
@@ -369,7 +369,7 @@ static int pscsi_create_type_disk(struct se_device *dev, struct scsi_device *sd)
bdev_file = bdev_file_open_by_path(dev->udev_path,
BLK_OPEN_WRITE | BLK_OPEN_READ, pdv, NULL);
if (IS_ERR(bdev_file)) {
- pr_err("pSCSI: bdev_open_by_path() failed\n");
+ pr_err("pSCSI: bdev_file_open_by_path() failed\n");
scsi_device_put(sd);
return PTR_ERR(bdev_file);
}