diff options
Diffstat (limited to 'drivers/target/target_core_configfs.c')
-rw-r--r-- | drivers/target/target_core_configfs.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/target/target_core_configfs.c b/drivers/target/target_core_configfs.c index 37b2b3d03c65..eb62371611f6 100644 --- a/drivers/target/target_core_configfs.c +++ b/drivers/target/target_core_configfs.c | |||
@@ -1629,7 +1629,7 @@ static struct config_item_type target_core_dev_pr_cit = { | |||
1629 | 1629 | ||
1630 | static ssize_t target_core_show_dev_info(void *p, char *page) | 1630 | static ssize_t target_core_show_dev_info(void *p, char *page) |
1631 | { | 1631 | { |
1632 | struct se_subsystem_dev *se_dev = (struct se_subsystem_dev *)p; | 1632 | struct se_subsystem_dev *se_dev = p; |
1633 | struct se_hba *hba = se_dev->se_dev_hba; | 1633 | struct se_hba *hba = se_dev->se_dev_hba; |
1634 | struct se_subsystem_api *t = hba->transport; | 1634 | struct se_subsystem_api *t = hba->transport; |
1635 | int bl = 0; | 1635 | int bl = 0; |
@@ -1657,7 +1657,7 @@ static ssize_t target_core_store_dev_control( | |||
1657 | const char *page, | 1657 | const char *page, |
1658 | size_t count) | 1658 | size_t count) |
1659 | { | 1659 | { |
1660 | struct se_subsystem_dev *se_dev = (struct se_subsystem_dev *)p; | 1660 | struct se_subsystem_dev *se_dev = p; |
1661 | struct se_hba *hba = se_dev->se_dev_hba; | 1661 | struct se_hba *hba = se_dev->se_dev_hba; |
1662 | struct se_subsystem_api *t = hba->transport; | 1662 | struct se_subsystem_api *t = hba->transport; |
1663 | 1663 | ||
@@ -1680,7 +1680,7 @@ static struct target_core_configfs_attribute target_core_attr_dev_control = { | |||
1680 | 1680 | ||
1681 | static ssize_t target_core_show_dev_alias(void *p, char *page) | 1681 | static ssize_t target_core_show_dev_alias(void *p, char *page) |
1682 | { | 1682 | { |
1683 | struct se_subsystem_dev *se_dev = (struct se_subsystem_dev *)p; | 1683 | struct se_subsystem_dev *se_dev = p; |
1684 | 1684 | ||
1685 | if (!(se_dev->su_dev_flags & SDF_USING_ALIAS)) | 1685 | if (!(se_dev->su_dev_flags & SDF_USING_ALIAS)) |
1686 | return 0; | 1686 | return 0; |
@@ -1693,7 +1693,7 @@ static ssize_t target_core_store_dev_alias( | |||
1693 | const char *page, | 1693 | const char *page, |
1694 | size_t count) | 1694 | size_t count) |
1695 | { | 1695 | { |
1696 | struct se_subsystem_dev *se_dev = (struct se_subsystem_dev *)p; | 1696 | struct se_subsystem_dev *se_dev = p; |
1697 | struct se_hba *hba = se_dev->se_dev_hba; | 1697 | struct se_hba *hba = se_dev->se_dev_hba; |
1698 | ssize_t read_bytes; | 1698 | ssize_t read_bytes; |
1699 | 1699 | ||
@@ -1726,7 +1726,7 @@ static struct target_core_configfs_attribute target_core_attr_dev_alias = { | |||
1726 | 1726 | ||
1727 | static ssize_t target_core_show_dev_udev_path(void *p, char *page) | 1727 | static ssize_t target_core_show_dev_udev_path(void *p, char *page) |
1728 | { | 1728 | { |
1729 | struct se_subsystem_dev *se_dev = (struct se_subsystem_dev *)p; | 1729 | struct se_subsystem_dev *se_dev = p; |
1730 | 1730 | ||
1731 | if (!(se_dev->su_dev_flags & SDF_USING_UDEV_PATH)) | 1731 | if (!(se_dev->su_dev_flags & SDF_USING_UDEV_PATH)) |
1732 | return 0; | 1732 | return 0; |
@@ -1739,7 +1739,7 @@ static ssize_t target_core_store_dev_udev_path( | |||
1739 | const char *page, | 1739 | const char *page, |
1740 | size_t count) | 1740 | size_t count) |
1741 | { | 1741 | { |
1742 | struct se_subsystem_dev *se_dev = (struct se_subsystem_dev *)p; | 1742 | struct se_subsystem_dev *se_dev = p; |
1743 | struct se_hba *hba = se_dev->se_dev_hba; | 1743 | struct se_hba *hba = se_dev->se_dev_hba; |
1744 | ssize_t read_bytes; | 1744 | ssize_t read_bytes; |
1745 | 1745 | ||
@@ -1775,7 +1775,7 @@ static ssize_t target_core_store_dev_enable( | |||
1775 | const char *page, | 1775 | const char *page, |
1776 | size_t count) | 1776 | size_t count) |
1777 | { | 1777 | { |
1778 | struct se_subsystem_dev *se_dev = (struct se_subsystem_dev *)p; | 1778 | struct se_subsystem_dev *se_dev = p; |
1779 | struct se_device *dev; | 1779 | struct se_device *dev; |
1780 | struct se_hba *hba = se_dev->se_dev_hba; | 1780 | struct se_hba *hba = se_dev->se_dev_hba; |
1781 | struct se_subsystem_api *t = hba->transport; | 1781 | struct se_subsystem_api *t = hba->transport; |
@@ -1820,7 +1820,7 @@ static struct target_core_configfs_attribute target_core_attr_dev_enable = { | |||
1820 | static ssize_t target_core_show_alua_lu_gp(void *p, char *page) | 1820 | static ssize_t target_core_show_alua_lu_gp(void *p, char *page) |
1821 | { | 1821 | { |
1822 | struct se_device *dev; | 1822 | struct se_device *dev; |
1823 | struct se_subsystem_dev *su_dev = (struct se_subsystem_dev *)p; | 1823 | struct se_subsystem_dev *su_dev = p; |
1824 | struct config_item *lu_ci; | 1824 | struct config_item *lu_ci; |
1825 | struct t10_alua_lu_gp *lu_gp; | 1825 | struct t10_alua_lu_gp *lu_gp; |
1826 | struct t10_alua_lu_gp_member *lu_gp_mem; | 1826 | struct t10_alua_lu_gp_member *lu_gp_mem; |
@@ -1858,7 +1858,7 @@ static ssize_t target_core_store_alua_lu_gp( | |||
1858 | size_t count) | 1858 | size_t count) |
1859 | { | 1859 | { |
1860 | struct se_device *dev; | 1860 | struct se_device *dev; |
1861 | struct se_subsystem_dev *su_dev = (struct se_subsystem_dev *)p; | 1861 | struct se_subsystem_dev *su_dev = p; |
1862 | struct se_hba *hba = su_dev->se_dev_hba; | 1862 | struct se_hba *hba = su_dev->se_dev_hba; |
1863 | struct t10_alua_lu_gp *lu_gp = NULL, *lu_gp_new = NULL; | 1863 | struct t10_alua_lu_gp *lu_gp = NULL, *lu_gp_new = NULL; |
1864 | struct t10_alua_lu_gp_member *lu_gp_mem; | 1864 | struct t10_alua_lu_gp_member *lu_gp_mem; |