Skip to contentSkip to conversation

include/hw/scsi/scsi.h: Remove unused scsi_legacy_handle_cmdline() prototype

PATCH Applied Peter Maydell 4 participants 4 messages Oct 13, 2022 – Oct 22, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 include/hw/scsi/scsi.h: Remove unused scsi_legacy_handle_cmdline() prototype

In commit 1454509726719e0933c80 we removed the function scsi_legacy_handle_cmdline() and all of its callers, but forgot to delete the prototype from the header function. Delete the prototype too.

---
 include/hw/scsi/scsi.h | 1 -
 1 file changed, 1 deletion(-)
include/hw/scsi/scsi.h +0 -1
index 001103488c2..9ad86b25bb4 100644
@@ -187,7 +187,6 @@ SCSIDevice *scsi_bus_legacy_add_drive(SCSIBus *bus, BlockBackend *blk,
                                       BlockdevOnError werror,
                                       const char *serial, Error **errp);
 void scsi_bus_legacy_handle_cmdline(SCSIBus *bus);
-void scsi_legacy_handle_cmdline(void);
 
 SCSIRequest *scsi_req_alloc(const SCSIReqOps *reqops, SCSIDevice *d,
                             uint32_t tag, uint32_t lun, void *hba_private);
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 15 lines · Peter Maydell

In commit 1454509726719e0933c80 we removed the function scsi_legacy_handle_cmdline() and all of its callers, but forgot to delete the prototype from the header function. Delete the prototype too.

---
  include/hw/scsi/scsi.h | 1 -
  1 file changed, 1 deletion(-)
include/hw/scsi/scsi.h +0 -0
index 001103488c2..9ad86b25bb4 100644

include/hw/scsi/scsi.h SCSIDevice *scsi_bus_legacy_add_drive(SCSIBus *bus, BlockBackend *blk, · line 192

Quoted 7 lines
include/hw/scsi/scsi.h +0 -1
@@ -187,7 +187,6 @@ SCSIDevice *scsi_bus_legacy_add_drive(SCSIBus *bus, BlockBackend *blk,
                                        BlockdevOnError werror,
                                        const char *serial, Error **errp);
  void scsi_bus_legacy_handle_cmdline(SCSIBus *bus);
-void scsi_legacy_handle_cmdline(void);
 
  SCSIRequest *scsi_req_alloc(const SCSIReqOps *reqops, SCSIDevice *d,
                              uint32_t tag, uint32_t lun, void *hba_private);
Reviewed-by Philippe Mathieu-Daudé on v1 1/1
#2 lore raw
In reply to Peter Maydell
Quoted 9 lines · Peter Maydell

In commit 1454509726719e0933c80 we removed the function scsi_legacy_handle_cmdline() and all of its callers, but forgot to delete the prototype from the header function. Delete the prototype too.

---
  include/hw/scsi/scsi.h | 1 -
  1 file changed, 1 deletion(-)
#3 lore raw
In reply to Peter Maydell

Le 13/10/2022 à 15:05, Peter Maydell a écrit :

Quoted 15 lines

In commit 1454509726719e0933c80 we removed the function scsi_legacy_handle_cmdline() and all of its callers, but forgot to delete the prototype from the header function. Delete the prototype too.

---
  include/hw/scsi/scsi.h | 1 -
  1 file changed, 1 deletion(-)
include/hw/scsi/scsi.h +0 -0
index 001103488c2..9ad86b25bb4 100644

include/hw/scsi/scsi.h SCSIDevice *scsi_bus_legacy_add_drive(SCSIBus *bus, BlockBackend *blk, · line 192

Quoted 7 lines
include/hw/scsi/scsi.h +0 -1
@@ -187,7 +187,6 @@ SCSIDevice *scsi_bus_legacy_add_drive(SCSIBus *bus, BlockBackend *blk,
                                        BlockdevOnError werror,
                                        const char *serial, Error **errp);
  void scsi_bus_legacy_handle_cmdline(SCSIBus *bus);
-void scsi_legacy_handle_cmdline(void);
 
  SCSIRequest *scsi_req_alloc(const SCSIReqOps *reqops, SCSIDevice *d,
                              uint32_t tag, uint32_t lun, void *hba_private);

Applied to my trivial-patches branch.

Thanks,
Laurent