summaryrefslogtreecommitdiff
path: root/drivers/target/target_core_tpg.c
diff options
context:
space:
mode:
authorAndy Grover <agrover@redhat.com>2013-12-13 04:12:33 +0400
committerNicholas Bellinger <nab@linux-iscsi.org>2013-12-17 01:29:20 +0400
commit340dbf729c3395cf1317890d033aa9ac7347766c (patch)
tree6b3bd411dd9f70c83b9d6b096dc3211562bdd8c7 /drivers/target/target_core_tpg.c
parentd344f8a15637e8b57a0d05a6d50182c11de08606 (diff)
downloadlinux-340dbf729c3395cf1317890d033aa9ac7347766c.tar.xz
target: Don't use void* when passing dev in core_tpg_add_lun
Especially since it's actually a device. Signed-off-by: Andy Grover <agrover@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_tpg.c')
-rw-r--r--drivers/target/target_core_tpg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/target/target_core_tpg.c b/drivers/target/target_core_tpg.c
index a1dbc9488183..d1df39a05d88 100644
--- a/drivers/target/target_core_tpg.c
+++ b/drivers/target/target_core_tpg.c
@@ -823,7 +823,7 @@ int core_tpg_add_lun(
struct se_portal_group *tpg,
struct se_lun *lun,
u32 lun_access,
- void *lun_ptr)
+ struct se_device *dev)
{
int ret;
@@ -831,7 +831,7 @@ int core_tpg_add_lun(
if (ret < 0)
return ret;
- ret = core_dev_export(lun_ptr, tpg, lun);
+ ret = core_dev_export(dev, tpg, lun);
if (ret < 0) {
percpu_ref_cancel_init(&lun->lun_ref);
return ret;