From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 76FBFC3DA7A for ; Thu, 5 Jan 2023 16:39:01 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pDTFt-0004XF-CU; Thu, 05 Jan 2023 11:38:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pDTFr-0004WK-6I for qemu-devel@nongnu.org; Thu, 05 Jan 2023 11:38:11 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pDTFp-00010X-Gq for qemu-devel@nongnu.org; Thu, 05 Jan 2023 11:38:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1672936689; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=g4K+6AIWx6oVKkNJsy4CXAkubzvequbWzm6PO+UX1KA=; b=F28yV5hB6GBLOAdSuRbJjJgQX0/chOOprYRIVoljB8jw/+btltD71H3G7VyML4LdcP85pV J/erkpNOwXqcx+Zc/3xVdaJrGTouxvXAdyV2KAjV2IXba3Ocam4JIh0yEPu8bFLDuUa394 IKTv80UYV9V5WJ/xHe8mMvMUFLBLldU= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-649-l9fJuLlSNOCx7qDCARM1Pg-1; Thu, 05 Jan 2023 11:38:07 -0500 X-MC-Unique: l9fJuLlSNOCx7qDCARM1Pg-1 Received: by mail-ed1-f69.google.com with SMTP id e6-20020a056402190600b0048ee2e45daaso4592732edz.4 for ; Thu, 05 Jan 2023 08:38:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=g4K+6AIWx6oVKkNJsy4CXAkubzvequbWzm6PO+UX1KA=; b=q+bNe7iUC/Rjr8JkRLUpwPvJT9ECe6k6NvudXxtgVq6gthqjx4CUS2J5RH/U7RgA6Q i429OFuUP9GSHqqi0j8TuOosRs5giogTcJs6dxWHH/eFbQV/zhODbM4MPrq3eXsizpeL lPpLfE5fU+kbK/WkahlHVUNJyCT4kFSameaCbTqr8yfj6PE4kOyU8pdyPW7qYM4i9/Gd x5PIBaIJUp0diYyZG2UqwExAxQOIDIimUXpWdTm7cbODIcpIVepFeKJtz7dIRflIjZYD +TdAcqrPkzmuvbhDjsKotCp3bs4YwZMhBVuKSLQ2Bxvzf1UqB5LFpS3HaKru20TEOeN5 o4/A== X-Gm-Message-State: AFqh2krX0QN/4YhdxVZWG/9GxHPT47wZX8BWBppqSsnsvCczyAoNsxxY 6du6NpbWc/fd58pw2Mv2KT5WdDnDNJ+8znIFpp+bCHIqhhsh88/N5XnwDLsQeaZdfNG4rW7IfwJ jPgB2QE3fR9lawz0= X-Received: by 2002:a17:907:c296:b0:820:4046:1586 with SMTP id tk22-20020a170907c29600b0082040461586mr42690240ejc.12.1672936686647; Thu, 05 Jan 2023 08:38:06 -0800 (PST) X-Google-Smtp-Source: AMrXdXs01fvCqDpW/OZFTTlNGe9yw6NjkGIbseW3hNTW4bh1A+B3ukkjni7VrAoxZcQ/az+vqtCT0Q== X-Received: by 2002:a17:907:c296:b0:820:4046:1586 with SMTP id tk22-20020a170907c29600b0082040461586mr42690229ejc.12.1672936686470; Thu, 05 Jan 2023 08:38:06 -0800 (PST) Received: from redhat.com ([2.52.151.85]) by smtp.gmail.com with ESMTPSA id c17-20020a17090618b100b0084c723a626csm10992731ejf.209.2023.01.05.08.38.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Jan 2023 08:38:06 -0800 (PST) Date: Thu, 5 Jan 2023 11:38:02 -0500 From: "Michael S. Tsirkin" To: Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= Cc: qemu-devel@nongnu.org, Eduardo Habkost , Richard Henderson , qemu-trivial@nongnu.org, Paolo Bonzini , Marcel Apfelbaum Subject: Re: [PATCH] hw/i386/pc: Remove unused 'owner' argument from pc_pci_as_mapping_init Message-ID: <20230105113554-mutt-send-email-mst@kernel.org> References: <20230105144044.51822-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230105144044.51822-1-philmd@linaro.org> Received-SPF: pass client-ip=170.10.129.124; envelope-from=mst@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org On Thu, Jan 05, 2023 at 03:40:44PM +0100, Philippe Mathieu-Daudé wrote: > This argument was added 9 years ago in commit 83d08f2673 add ("commit subject") > and has never been used since, so remote it. remote -> remove > > Signed-off-by: Philippe Mathieu-Daudé > --- > hw/i386/pc.c | 2 +- > hw/pci-host/i440fx.c | 3 +-- > hw/pci-host/q35.c | 3 +-- > include/hw/i386/pc.h | 2 +- > 4 files changed, 4 insertions(+), 6 deletions(-) > > diff --git a/hw/i386/pc.c b/hw/i386/pc.c > index d489ecc0d1..6e592bd969 100644 > --- a/hw/i386/pc.c > +++ b/hw/i386/pc.c > @@ -782,7 +782,7 @@ void pc_guest_info_init(PCMachineState *pcms) > } > > /* setup pci memory address space mapping into system address space */ > -void pc_pci_as_mapping_init(Object *owner, MemoryRegion *system_memory, > +void pc_pci_as_mapping_init(MemoryRegion *system_memory, > MemoryRegion *pci_address_space) > { > /* Set to lower priority than RAM */ > diff --git a/hw/pci-host/i440fx.c b/hw/pci-host/i440fx.c > index d5426ef4a5..262f82c303 100644 > --- a/hw/pci-host/i440fx.c > +++ b/hw/pci-host/i440fx.c > @@ -272,8 +272,7 @@ PCIBus *i440fx_init(const char *pci_type, > IO_APIC_DEFAULT_ADDRESS - 1); > > /* setup pci memory mapping */ > - pc_pci_as_mapping_init(OBJECT(f), f->system_memory, > - f->pci_address_space); > + pc_pci_as_mapping_init(f->system_memory, f->pci_address_space); > > /* if *disabled* show SMRAM to all CPUs */ > memory_region_init_alias(&f->smram_region, OBJECT(d), "smram-region", > diff --git a/hw/pci-host/q35.c b/hw/pci-host/q35.c > index 20da121374..26390863d6 100644 > --- a/hw/pci-host/q35.c > +++ b/hw/pci-host/q35.c > @@ -574,8 +574,7 @@ static void mch_realize(PCIDevice *d, Error **errp) > } > > /* setup pci memory mapping */ > - pc_pci_as_mapping_init(OBJECT(mch), mch->system_memory, > - mch->pci_address_space); > + pc_pci_as_mapping_init(mch->system_memory, mch->pci_address_space); > > /* if *disabled* show SMRAM to all CPUs */ > memory_region_init_alias(&mch->smram_region, OBJECT(mch), "smram-region", > diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h > index 991f905f5d..88a120bc23 100644 > --- a/include/hw/i386/pc.h > +++ b/include/hw/i386/pc.h > @@ -156,7 +156,7 @@ void pc_guest_info_init(PCMachineState *pcms); > #define PCI_HOST_ABOVE_4G_MEM_SIZE "above-4g-mem-size" > > > -void pc_pci_as_mapping_init(Object *owner, MemoryRegion *system_memory, > +void pc_pci_as_mapping_init(MemoryRegion *system_memory, > MemoryRegion *pci_address_space); > > void xen_load_linux(PCMachineState *pcms); > -- > 2.38.1