Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

scsi: message: fusion: Remove unused mptscsih_target_reset()

mptscsih_target_reset() was added in 2023 by commit e6629081fb12 ("scsi:
message: fusion: Correct definitions for mptscsih_dev_reset()") but never
used.

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Link: https://lore.kernel.org/r/20250127002716.113641-1-linux@treblig.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Dr. David Alan Gilbert and committed by
Martin K. Petersen
b932ff7d a307d6ec

-61
-60
drivers/message/fusion/mptscsih.c
··· 1843 1843 return FAILED; 1844 1844 } 1845 1845 1846 - /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 1847 - /** 1848 - * mptscsih_target_reset - Perform a SCSI TARGET_RESET! 1849 - * @SCpnt: Pointer to scsi_cmnd structure, IO which reset is due to 1850 - * 1851 - * (linux scsi_host_template.eh_target_reset_handler routine) 1852 - * 1853 - * Returns SUCCESS or FAILED. 1854 - **/ 1855 - int 1856 - mptscsih_target_reset(struct scsi_cmnd * SCpnt) 1857 - { 1858 - MPT_SCSI_HOST *hd; 1859 - int retval; 1860 - VirtDevice *vdevice; 1861 - MPT_ADAPTER *ioc; 1862 - 1863 - /* If we can't locate our host adapter structure, return FAILED status. 1864 - */ 1865 - if ((hd = shost_priv(SCpnt->device->host)) == NULL){ 1866 - printk(KERN_ERR MYNAM ": target reset: " 1867 - "Can't locate host! (sc=%p)\n", SCpnt); 1868 - return FAILED; 1869 - } 1870 - 1871 - ioc = hd->ioc; 1872 - printk(MYIOC_s_INFO_FMT "attempting target reset! (sc=%p)\n", 1873 - ioc->name, SCpnt); 1874 - scsi_print_command(SCpnt); 1875 - 1876 - vdevice = SCpnt->device->hostdata; 1877 - if (!vdevice || !vdevice->vtarget) { 1878 - retval = 0; 1879 - goto out; 1880 - } 1881 - 1882 - /* Target reset to hidden raid component is not supported 1883 - */ 1884 - if (vdevice->vtarget->tflags & MPT_TARGET_FLAGS_RAID_COMPONENT) { 1885 - retval = FAILED; 1886 - goto out; 1887 - } 1888 - 1889 - retval = mptscsih_IssueTaskMgmt(hd, 1890 - MPI_SCSITASKMGMT_TASKTYPE_TARGET_RESET, 1891 - vdevice->vtarget->channel, 1892 - vdevice->vtarget->id, 0, 0, 1893 - mptscsih_get_tm_timeout(ioc)); 1894 - 1895 - out: 1896 - printk (MYIOC_s_INFO_FMT "target reset: %s (sc=%p)\n", 1897 - ioc->name, ((retval == 0) ? "SUCCESS" : "FAILED" ), SCpnt); 1898 - 1899 - if (retval == 0) 1900 - return SUCCESS; 1901 - else 1902 - return FAILED; 1903 - } 1904 - 1905 1846 1906 1847 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 1907 1848 /** ··· 3247 3306 EXPORT_SYMBOL(mptscsih_sdev_configure); 3248 3307 EXPORT_SYMBOL(mptscsih_abort); 3249 3308 EXPORT_SYMBOL(mptscsih_dev_reset); 3250 - EXPORT_SYMBOL(mptscsih_target_reset); 3251 3309 EXPORT_SYMBOL(mptscsih_bus_reset); 3252 3310 EXPORT_SYMBOL(mptscsih_host_reset); 3253 3311 EXPORT_SYMBOL(mptscsih_bios_param);
-1
drivers/message/fusion/mptscsih.h
··· 121 121 struct queue_limits *lim); 122 122 extern int mptscsih_abort(struct scsi_cmnd * SCpnt); 123 123 extern int mptscsih_dev_reset(struct scsi_cmnd * SCpnt); 124 - extern int mptscsih_target_reset(struct scsi_cmnd * SCpnt); 125 124 extern int mptscsih_bus_reset(struct scsi_cmnd * SCpnt); 126 125 extern int mptscsih_host_reset(struct scsi_cmnd *SCpnt); 127 126 extern int mptscsih_bios_param(struct scsi_device * sdev, struct block_device *bdev, sector_t capacity, int geom[]);