mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-23 07:23:12 +02:00
scsi: qedi: Remove unused sysfs functions
qedi_remove_sysfs_attr() and qedi_create_sysfs_attr() were added in 2016
by commit ace7f46ba5
("scsi: qedi: Add QLogic FastLinQ offload iSCSI
driver framework.") but have remained unused.
Remove them.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Link: https://lore.kernel.org/r/20250416002235.299347-2-linux@treblig.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
0af2f6be1b
commit
918eb06821
|
@ -103,25 +103,3 @@ qedi_dbg_info(struct qedi_dbg_ctx *qedi, const char *func, u32 line,
|
|||
ret:
|
||||
va_end(va);
|
||||
}
|
||||
|
||||
int
|
||||
qedi_create_sysfs_attr(struct Scsi_Host *shost, struct sysfs_bin_attrs *iter)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
for (; iter->name; iter++) {
|
||||
ret = sysfs_create_bin_file(&shost->shost_gendev.kobj,
|
||||
iter->attr);
|
||||
if (ret)
|
||||
pr_err("Unable to create sysfs %s attr, err(%d).\n",
|
||||
iter->name, ret);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
void
|
||||
qedi_remove_sysfs_attr(struct Scsi_Host *shost, struct sysfs_bin_attrs *iter)
|
||||
{
|
||||
for (; iter->name; iter++)
|
||||
sysfs_remove_bin_file(&shost->shost_gendev.kobj, iter->attr);
|
||||
}
|
||||
|
|
|
@ -87,18 +87,6 @@ void qedi_dbg_notice(struct qedi_dbg_ctx *qedi, const char *func, u32 line,
|
|||
void qedi_dbg_info(struct qedi_dbg_ctx *qedi, const char *func, u32 line,
|
||||
u32 info, const char *fmt, ...);
|
||||
|
||||
struct Scsi_Host;
|
||||
|
||||
struct sysfs_bin_attrs {
|
||||
char *name;
|
||||
const struct bin_attribute *attr;
|
||||
};
|
||||
|
||||
int qedi_create_sysfs_attr(struct Scsi_Host *shost,
|
||||
struct sysfs_bin_attrs *iter);
|
||||
void qedi_remove_sysfs_attr(struct Scsi_Host *shost,
|
||||
struct sysfs_bin_attrs *iter);
|
||||
|
||||
/* DebugFS related code */
|
||||
struct qedi_list_of_funcs {
|
||||
char *oper_str;
|
||||
|
|
Loading…
Reference in New Issue
Block a user