From: Thomas Huth <thuth@redhat.com>
To: dave@treblig.org, mst@redhat.com, marcel.apfelbaum@gmail.com,
qemu-devel@nongnu.org, QEMU Trivial <qemu-trivial@nongnu.org>
Subject: Re: [PATCH] hw/pci: Remove unused pcie_chassis_find_slot
Date: Wed, 2 Oct 2024 12:42:09 +0200 [thread overview]
Message-ID: <edeb3df1-1a73-4c8b-8870-866221f7a30b@redhat.com> (raw)
In-Reply-To: <20240918234748.468148-1-dave@treblig.org>
On 19/09/2024 01.47, dave@treblig.org wrote:
> From: "Dr. David Alan Gilbert" <dave@treblig.org>
>
> pcie_chassis_find_slot has been unused since it was added.
>
> Remove it.
>
> Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
> ---
> hw/pci/pcie_port.c | 10 ----------
> include/hw/pci/pcie_port.h | 1 -
> 2 files changed, 11 deletions(-)
>
> diff --git a/hw/pci/pcie_port.c b/hw/pci/pcie_port.c
> index 20ff2b39e8..9f978ba164 100644
> --- a/hw/pci/pcie_port.c
> +++ b/hw/pci/pcie_port.c
> @@ -92,16 +92,6 @@ static PCIESlot *pcie_chassis_find_slot_with_chassis(struct PCIEChassis *c,
> return s;
> }
>
> -PCIESlot *pcie_chassis_find_slot(uint8_t chassis_number, uint16_t slot)
> -{
> - struct PCIEChassis *c;
> - c = pcie_chassis_find(chassis_number);
> - if (!c) {
> - return NULL;
> - }
> - return pcie_chassis_find_slot_with_chassis(c, slot);
> -}
> -
> int pcie_chassis_add_slot(struct PCIESlot *slot)
> {
> struct PCIEChassis *c;
> diff --git a/include/hw/pci/pcie_port.h b/include/hw/pci/pcie_port.h
> index 90e6cf45b8..7cd7af8cfa 100644
> --- a/include/hw/pci/pcie_port.h
> +++ b/include/hw/pci/pcie_port.h
> @@ -72,7 +72,6 @@ struct PCIESlot {
> };
>
> void pcie_chassis_create(uint8_t chassis_number);
> -PCIESlot *pcie_chassis_find_slot(uint8_t chassis, uint16_t slot);
> int pcie_chassis_add_slot(struct PCIESlot *slot);
> void pcie_chassis_del_slot(PCIESlot *s);
>
Reviewed-by: Thomas Huth <thuth@redhat.com>
next prev parent reply other threads:[~2024-10-02 10:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-18 23:47 [PATCH] hw/pci: Remove unused pcie_chassis_find_slot dave
2024-10-02 10:42 ` Thomas Huth [this message]
2024-10-03 21:15 ` Philippe Mathieu-Daudé
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=edeb3df1-1a73-4c8b-8870-866221f7a30b@redhat.com \
--to=thuth@redhat.com \
--cc=dave@treblig.org \
--cc=marcel.apfelbaum@gmail.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).