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] q35: Remove unused mch_mcfg_base
Date: Wed, 2 Oct 2024 12:28:36 +0200 [thread overview]
Message-ID: <f62ac9a0-c119-4b77-8845-9353a7a294ec@redhat.com> (raw)
In-Reply-To: <20240918005132.187517-1-dave@treblig.org>
On 18/09/2024 02.51, dave@treblig.org wrote:
> From: "Dr. David Alan Gilbert" <dave@treblig.org>
>
> mch_mcfg_base has been unused since it was added by
> 6f1426ab0f ("ich9: APIs for pc guest info")
> back in 2013.
>
> Remove it.
>
> Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
> ---
> hw/pci-host/q35.c | 10 ----------
> include/hw/pci-host/q35.h | 2 --
> 2 files changed, 12 deletions(-)
>
> diff --git a/hw/pci-host/q35.c b/hw/pci-host/q35.c
> index d5a657a02a..f3e713318e 100644
> --- a/hw/pci-host/q35.c
> +++ b/hw/pci-host/q35.c
> @@ -662,16 +662,6 @@ static void mch_realize(PCIDevice *d, Error **errp)
> OBJECT(&mch->smram));
> }
>
> -uint64_t mch_mcfg_base(void)
> -{
> - bool ambiguous;
> - Object *o = object_resolve_path_type("", TYPE_MCH_PCI_DEVICE, &ambiguous);
> - if (!o) {
> - return 0;
> - }
> - return MCH_HOST_BRIDGE_PCIEXBAR_DEFAULT;
> -}
> -
> static Property mch_props[] = {
> DEFINE_PROP_UINT16("extended-tseg-mbytes", MCHPCIState, ext_tseg_mbytes,
> 16),
> diff --git a/include/hw/pci-host/q35.h b/include/hw/pci-host/q35.h
> index 22fadfa3ed..ddafc3f2e3 100644
> --- a/include/hw/pci-host/q35.h
> +++ b/include/hw/pci-host/q35.h
> @@ -181,8 +181,6 @@ struct Q35PCIHost {
> #define MCH_PCIE_DEV 1
> #define MCH_PCIE_FUNC 0
>
> -uint64_t mch_mcfg_base(void);
> -
> /*
> * Arbitrary but unique BNF number for IOAPIC device.
> *
Reviewed-by: Thomas Huth <thuth@redhat.com>
prev parent reply other threads:[~2024-10-02 10:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-18 0:51 [PATCH] q35: Remove unused mch_mcfg_base dave
2024-09-19 18:28 ` Bernhard Beschow
2024-09-19 19:53 ` Dr. David Alan Gilbert
2024-10-02 10:28 ` Thomas Huth [this message]
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=f62ac9a0-c119-4b77-8845-9353a7a294ec@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.