public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scsi: core: Remove unused scsi_dev_info_list_del_keyed
@ 2025-05-03 23:07 linux
  2025-05-06  2:22 ` Martin K. Petersen
  2025-05-13  2:48 ` Martin K. Petersen
  0 siblings, 2 replies; 3+ messages in thread
From: linux @ 2025-05-03 23:07 UTC (permalink / raw)
  To: James.Bottomley, martin.petersen
  Cc: linux-scsi, linux-kernel, Dr. David Alan Gilbert

From: "Dr. David Alan Gilbert" <linux@treblig.org>

The last use of scsi_dev_info_list_del_keyed() was removed by 2011's
commit 2b132577a05e ("[SCSI] scsi_dh: code cleanup and remove the
references to scsi_dev_info")

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
---
 drivers/scsi/scsi_devinfo.c | 27 ---------------------------
 drivers/scsi/scsi_priv.h    |  2 --
 2 files changed, 29 deletions(-)

diff --git a/drivers/scsi/scsi_devinfo.c b/drivers/scsi/scsi_devinfo.c
index 90f1393a23f8..a348df895dca 100644
--- a/drivers/scsi/scsi_devinfo.c
+++ b/drivers/scsi/scsi_devinfo.c
@@ -485,33 +485,6 @@ static struct scsi_dev_info_list *scsi_dev_info_list_find(const char *vendor,
 	return ERR_PTR(-ENOENT);
 }
 
-/**
- * scsi_dev_info_list_del_keyed - remove one dev_info list entry.
- * @vendor:	vendor string
- * @model:	model (product) string
- * @key:	specify list to use
- *
- * Description:
- *	Remove and destroy one dev_info entry for @vendor, @model
- *	in list specified by @key.
- *
- * Returns: 0 OK, -error on failure.
- **/
-int scsi_dev_info_list_del_keyed(char *vendor, char *model,
-				 enum scsi_devinfo_key key)
-{
-	struct scsi_dev_info_list *found;
-
-	found = scsi_dev_info_list_find(vendor, model, key);
-	if (IS_ERR(found))
-		return PTR_ERR(found);
-
-	list_del(&found->dev_info_list);
-	kfree(found);
-	return 0;
-}
-EXPORT_SYMBOL(scsi_dev_info_list_del_keyed);
-
 /**
  * scsi_dev_info_list_add_str - parse dev_list and add to the scsi_dev_info_list.
  * @dev_list:	string of device flags to add
diff --git a/drivers/scsi/scsi_priv.h b/drivers/scsi/scsi_priv.h
index 9fc397a9ce7a..5b2b19f5e8ec 100644
--- a/drivers/scsi/scsi_priv.h
+++ b/drivers/scsi/scsi_priv.h
@@ -79,8 +79,6 @@ extern int scsi_dev_info_list_add_keyed(int compatible, char *vendor,
 					char *model, char *strflags,
 					blist_flags_t flags,
 					enum scsi_devinfo_key key);
-extern int scsi_dev_info_list_del_keyed(char *vendor, char *model,
-					enum scsi_devinfo_key key);
 extern int scsi_dev_info_add_list(enum scsi_devinfo_key key, const char *name);
 extern int scsi_dev_info_remove_list(enum scsi_devinfo_key key);
 
-- 
2.49.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] scsi: core: Remove unused scsi_dev_info_list_del_keyed
  2025-05-03 23:07 [PATCH] scsi: core: Remove unused scsi_dev_info_list_del_keyed linux
@ 2025-05-06  2:22 ` Martin K. Petersen
  2025-05-13  2:48 ` Martin K. Petersen
  1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2025-05-06  2:22 UTC (permalink / raw)
  To: linux; +Cc: James.Bottomley, martin.petersen, linux-scsi, linux-kernel


> The last use of scsi_dev_info_list_del_keyed() was removed by 2011's
> commit 2b132577a05e ("[SCSI] scsi_dh: code cleanup and remove the
> references to scsi_dev_info")

Applied to 6.16/scsi-staging, thanks!

-- 
Martin K. Petersen

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] scsi: core: Remove unused scsi_dev_info_list_del_keyed
  2025-05-03 23:07 [PATCH] scsi: core: Remove unused scsi_dev_info_list_del_keyed linux
  2025-05-06  2:22 ` Martin K. Petersen
@ 2025-05-13  2:48 ` Martin K. Petersen
  1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2025-05-13  2:48 UTC (permalink / raw)
  To: James.Bottomley, linux; +Cc: Martin K . Petersen, linux-scsi, linux-kernel

On Sun, 04 May 2025 00:07:42 +0100, linux@treblig.org wrote:

> The last use of scsi_dev_info_list_del_keyed() was removed by 2011's
> commit 2b132577a05e ("[SCSI] scsi_dh: code cleanup and remove the
> references to scsi_dev_info")
> 
> Remove it.
> 
> 
> [...]

Applied to 6.16/scsi-queue, thanks!

[1/1] scsi: core: Remove unused scsi_dev_info_list_del_keyed
      https://git.kernel.org/mkp/scsi/c/e256821fbe43

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-05-13  2:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-03 23:07 [PATCH] scsi: core: Remove unused scsi_dev_info_list_del_keyed linux
2025-05-06  2:22 ` Martin K. Petersen
2025-05-13  2:48 ` Martin K. Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox