Skip to contentSkip to conversation

target: Remove unused list 'device_list'

PATCH Applied [email protected] 2 participants 3 messages May 3, 2024 – May 11, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target: Remove unused list 'device_list'

From: "Dr. David Alan Gilbert" <[email protected]>

Commit be50f538e9a5 ("target: remove g_device_list") made 'g_device_list' local as 'device_list' but also removed the last use of it, the code that added the device to it.

Build tested only.

---
 drivers/target/target_core_device.c | 1 -
 1 file changed, 1 deletion(-)
drivers/target/target_core_device.c +0 -1
index 7a85e6477e465..bf4892544cfdb 100644
@@ -37,7 +37,6 @@
 #include "target_core_ua.h"
 
 static DEFINE_MUTEX(device_mutex);
-static LIST_HEAD(device_list);
 static DEFINE_IDR(devices_idr);
 
 static struct se_hba *lun0_hba;
Signature · 1 line
2.44.0
#1 lore raw
Quoted 4 lines

Commit be50f538e9a5 ("target: remove g_device_list") made 'g_device_list' local as 'device_list' but also removed the last use of it, the code that added the device to it.

Applied to 6.10/scsi-staging, thanks!

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering
#2 lore raw
In reply to [email protected]
Quoted 8 lines · On Sat, 04 May 2024 00:44:19 +0100, [email protected] wrote:

Commit be50f538e9a5 ("target: remove g_device_list") made 'g_device_list' local as 'device_list' but also removed the last use of it, the code that added the device to it.

Build tested only.

[...]

Applied to 6.10/scsi-queue, thanks!

[1/1] target: Remove unused list 'device_list'

      https://git.kernel.org/mkp/scsi/c/0f7b063faf8b
Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering