From patchwork Thu Jan 5 14:40:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 639265 Delivered-To: patch@linaro.org Received: by 2002:a17:522:f3c4:b0:4b4:3859:abed with SMTP id in4csp261688pvb; Thu, 5 Jan 2023 06:44:44 -0800 (PST) X-Google-Smtp-Source: AMrXdXuIaZL1P5Raqy7hxUz4VHkkl4YVtamMPl/s/v1g+JKb5gxP6b37RnZdfeqbVKZ+vc9IFcmZ X-Received: by 2002:a1f:e284:0:b0:3d1:f1f1:b946 with SMTP id z126-20020a1fe284000000b003d1f1f1b946mr19597250vkg.6.1672929884514; Thu, 05 Jan 2023 06:44:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672929884; cv=none; d=google.com; s=arc-20160816; b=b4eNNiZVIDwAB/wgDJd6yscICnhOw//HQntbfK0Qr20PF/pnnvQhVZFTjiyuLDvCfW by3wu1UVF0j3viTlAU7p0BDvvR7AfURBpLVLs2kcdC7UtzqaI/PIlWb0Ow3gkp+wZBhh hPi3G6uXdDcaKkr1JleSHEqWP8gugr0vZ1eY7D4eYvXXCj5albTaMER5ZDYl9okfP7Tn NOcZAntLd6zjueNaaJM5wAKnW8Hbdqw0oyiwXbymBM6ZKaE/v7iaFhkBERP0turGWPuu raz8kb8BDgTMVeovV+Imhfc2NHy4iAmmvGgR9g5W3d5YWP77stILtETTQr5jxINJCaDT Nr+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=oNDOqnsLbyhoDi5uMGk8/4UUP00n8RzWnJNlr2mmXCw=; b=wy9w1BfZ0v14rqffbUBeoCEpmjRIW0KtjL1mOJrO336rPUxh/i+t4fDuxgUiCvXWUC diFhpfDWtvJKMgXUIy1yXCCBF+Lyr2a9vgCUOAOSaI0aPvXUQXIopUbOoGlx1dnHVTSS NUdVb7I7FMkCui1kL9oJaCeIVwolSCX26ktsw011T4z3RSLEpfFRoDBIzlUc32ei3+Ig r6CN8/Vfpv31kp4xWlciodoJcPZZLK5nNOvGEfkFbkB9rY0ORDGk6kQvZlCEqt4muP9O gFZyZqm+TaUDVjhcZvkaSFh9r3kQtn2Rb5EH91k+2WZjEzvkBX9b6FxoeBofa9x/A7VM fRzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=u+oblYgD; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 193-20020a370aca000000b006f9bc401e6dsi18587189qkk.70.2023.01.05.06.44.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Jan 2023 06:44:44 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=u+oblYgD; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pDRQP-0006Ys-KG; Thu, 05 Jan 2023 09:40:57 -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 1pDRQJ-0006PP-QF for qemu-devel@nongnu.org; Thu, 05 Jan 2023 09:40:53 -0500 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pDRQH-0003F0-Mr for qemu-devel@nongnu.org; Thu, 05 Jan 2023 09:40:51 -0500 Received: by mail-wm1-x32e.google.com with SMTP id m26-20020a05600c3b1a00b003d9811fcaafso1466751wms.5 for ; Thu, 05 Jan 2023 06:40:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=oNDOqnsLbyhoDi5uMGk8/4UUP00n8RzWnJNlr2mmXCw=; b=u+oblYgDY7fD5KbasUEDoj5ricSGpo9z6Te0DEHS/SThi1t0rp/Fv8scGCdmt2GIlP pmEYoaESJHTQuCXvJJtnzTVnh3o1fFNZDG2hqM3P57ynBy/iCXkKPjOpYe/IsLcDBDVs YZg+LabRFF4d5wpM4fJRxknQE8NjxVGDVbnjfadaSXx92E2N6TSo8ZUIYRnWasGhoepP vJ04VRV9EO1n3/LbREv8uBGkuGjrpF3EBybBAcZ9tonptuJYB4chEPts6IW9UZJb6mpy 7q8VcLuABMf5Pj5kmf60/EO8BqcCyBigeAk94CHtEUB0dPlH2fMDC1Y+MTea1ntE5OLv a5qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=oNDOqnsLbyhoDi5uMGk8/4UUP00n8RzWnJNlr2mmXCw=; b=t5QbagcNK9D6XoyZaAYe8PZtsi7R4dMoxiDUDc2PMbKSIcBixwhx6i1DmWvXFphysA x5TlqoEPBIycwnMcEiCBuB4rXCvWrj/Pz4W2qKdGuB7YfMiiFYEOrQckrFIfHDMO6VxV xWIG6/OsBQi9OiDIoeBY3UUKTgR/zsg/tI0VLgEiqf5agUe+kmKfY2iVqXrWnLc6/JU/ czSjreoAwvBgnne/2eDIr0SnZAnCr1xj4b+nsag4qClk8QEKki0QvoNMlYmnk+aOO9Wh 5q3HKFeyy1pusnfEG33xmWYPOun+HO8JWUVh2PVSok45m3k1qOyfC51tKyp4vZ7yZ6Vq WD7A== X-Gm-Message-State: AFqh2krsFkh/wk+5xm4Zr7vjoXhSEL9QxPfVrnjHDyVhPDRCOOfAXg/l zu3uhizwFnlZjkzIrrULSXx5XubiHWJrP7Hi X-Received: by 2002:a05:600c:2217:b0:3d2:267d:64da with SMTP id z23-20020a05600c221700b003d2267d64damr35326920wml.10.1672929646406; Thu, 05 Jan 2023 06:40:46 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id z25-20020a1c4c19000000b003d1e1f421bfsm2622176wmf.10.2023.01.05.06.40.45 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 05 Jan 2023 06:40:45 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Eduardo Habkost , "Michael S. Tsirkin" , Richard Henderson , qemu-trivial@nongnu.org, Paolo Bonzini , Marcel Apfelbaum , =?utf-8?q?Philippe_Mathieu-D?= =?utf-8?q?aud=C3=A9?= Subject: [PATCH] hw/i386/pc: Remove unused 'owner' argument from pc_pci_as_mapping_init Date: Thu, 5 Jan 2023 15:40:44 +0100 Message-Id: <20230105144044.51822-1-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=philmd@linaro.org; helo=mail-wm1-x32e.google.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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This argument was added 9 years ago in commit 83d08f2673 and has never been used since, so remote it. 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);