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

Merge patch series "scsi: qedi deadcoding"

linux@treblig.org says:

Hi,
A couple of deadcode patches for the qdi driver.

Build tested only.

Dave

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

-43
-22
drivers/scsi/qedi/qedi_dbg.c
··· 103 103 ret: 104 104 va_end(va); 105 105 } 106 - 107 - int 108 - qedi_create_sysfs_attr(struct Scsi_Host *shost, struct sysfs_bin_attrs *iter) 109 - { 110 - int ret = 0; 111 - 112 - for (; iter->name; iter++) { 113 - ret = sysfs_create_bin_file(&shost->shost_gendev.kobj, 114 - iter->attr); 115 - if (ret) 116 - pr_err("Unable to create sysfs %s attr, err(%d).\n", 117 - iter->name, ret); 118 - } 119 - return ret; 120 - } 121 - 122 - void 123 - qedi_remove_sysfs_attr(struct Scsi_Host *shost, struct sysfs_bin_attrs *iter) 124 - { 125 - for (; iter->name; iter++) 126 - sysfs_remove_bin_file(&shost->shost_gendev.kobj, iter->attr); 127 - }
-12
drivers/scsi/qedi/qedi_dbg.h
··· 87 87 void qedi_dbg_info(struct qedi_dbg_ctx *qedi, const char *func, u32 line, 88 88 u32 info, const char *fmt, ...); 89 89 90 - struct Scsi_Host; 91 - 92 - struct sysfs_bin_attrs { 93 - char *name; 94 - const struct bin_attribute *attr; 95 - }; 96 - 97 - int qedi_create_sysfs_attr(struct Scsi_Host *shost, 98 - struct sysfs_bin_attrs *iter); 99 - void qedi_remove_sysfs_attr(struct Scsi_Host *shost, 100 - struct sysfs_bin_attrs *iter); 101 - 102 90 /* DebugFS related code */ 103 91 struct qedi_list_of_funcs { 104 92 char *oper_str;
-1
drivers/scsi/qedi/qedi_gbl.h
··· 45 45 void qedi_iscsi_unmap_sg_list(struct qedi_cmd *cmd); 46 46 void qedi_update_itt_map(struct qedi_ctx *qedi, u32 tid, u32 proto_itt, 47 47 struct qedi_cmd *qedi_cmd); 48 - void qedi_get_proto_itt(struct qedi_ctx *qedi, u32 tid, u32 *proto_itt); 49 48 void qedi_get_task_tid(struct qedi_ctx *qedi, u32 itt, int16_t *tid); 50 49 void qedi_process_iscsi_error(struct qedi_endpoint *ep, 51 50 struct iscsi_eqe_data *data);
-8
drivers/scsi/qedi/qedi_main.c
··· 1877 1877 WARN_ON(1); 1878 1878 } 1879 1879 1880 - void qedi_get_proto_itt(struct qedi_ctx *qedi, u32 tid, u32 *proto_itt) 1881 - { 1882 - *proto_itt = qedi->itt_map[tid].itt; 1883 - QEDI_INFO(&qedi->dbg_ctx, QEDI_LOG_CONN, 1884 - "Get itt map tid [0x%x with proto itt[0x%x]", 1885 - tid, *proto_itt); 1886 - } 1887 - 1888 1880 struct qedi_cmd *qedi_get_cmd_from_tid(struct qedi_ctx *qedi, u32 tid) 1889 1881 { 1890 1882 struct qedi_cmd *cmd = NULL;