Message ID | 20230213070820.76881-13-philmd@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:f90f:0:0:0:0:0 with SMTP id b15csp2266442wrr; Sun, 12 Feb 2023 23:10:01 -0800 (PST) X-Google-Smtp-Source: AK7set+hrbfsgsrJZ+Ao+ETpVv0hGdwSL+M4Zl5sjJ4LZCbjoXmgXU8UR1uW25ItC22HjYOnwILE X-Received: by 2002:a05:6214:519b:b0:56e:b273:fb49 with SMTP id kl27-20020a056214519b00b0056eb273fb49mr4208525qvb.21.1676272201752; Sun, 12 Feb 2023 23:10:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676272201; cv=none; d=google.com; s=arc-20160816; b=U12yOLgrsMTYacyhv1lriulEzQ40lqareHZwhYs7UwjUcoCYcYpY+OY4XLViY4a5mr 5CwolHFjf6bkx+PAQpcclTkJRMvt4m+bITE0med4FzMT8cIj2E4LiPUWtRzFmjmwwfRD XyNBoIzNVVSxP/nL6Jh1TZCMEpunBDv+sPO8DwXgnJ5VV4eGFg/EDwvkjo7+uyDKGClA yFjUDWSUBiTBUj9lOi9OCP92CSPNTAiJqkSC2q/SwPs0pHbVdBKqcDdlxknU5ezCzjIg lcEawJioXGodnOtll9gqhZvS7Vs28XVjZeS1KsWAi7SBb92bI3Z+wBv9KOWBKc3iHWlK NGPA== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=3YnlWYrFQuWXt1rppNJud8kwI6R078rMYORIY8x9Pr4=; b=BmV0IVnpc8MsMxsw3EN5swtFvc/Ii86xPWsXjao6Jv7bib6Y1I5R6W5j94rh7v8l4A DY7FPrrGmGDSUrjrvwnWeqKgnlSUbVVXrg7LaHHKrxqdnhZlNxJqrPeW1Oc19p4knTKn +r2Sh3YG7vKNQS1WtTpAEK3dubAQ9Ub2/EZNJYRt5Vo4V3ShW4rGS8yjZOY6X7kblsFr bshD7Pi0EYRrjLR3A83l5W/kQMVGy8pp2qNRiYBU+3iRcjXU0vRJCyRkBmiZe5R6teDt kBz1Pij59RczZenbF0s6mjtCqWVmBYCzog7+q6uVJUKYnCm/htjdA+m0hVRiimv4uf1k V42A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZSanReyF; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id y12-20020a0cf14c000000b0056e9a4f58eesi5407651qvl.2.2023.02.12.23.10.01 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 12 Feb 2023 23:10:01 -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=ZSanReyF; 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 <qemu-devel-bounces@nongnu.org>) id 1pRSxy-0002u5-Cu; Mon, 13 Feb 2023 02:09:36 -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 <philmd@linaro.org>) id 1pRSxs-0002pT-DE for qemu-devel@nongnu.org; Mon, 13 Feb 2023 02:09:28 -0500 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1pRSxq-0001yb-FN for qemu-devel@nongnu.org; Mon, 13 Feb 2023 02:09:28 -0500 Received: by mail-wm1-x330.google.com with SMTP id j32-20020a05600c1c2000b003dc4fd6e61dso10536204wms.5 for <qemu-devel@nongnu.org>; Sun, 12 Feb 2023 23:09:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=3YnlWYrFQuWXt1rppNJud8kwI6R078rMYORIY8x9Pr4=; b=ZSanReyF0SBsFI0wzV6A/ny79s0DghjZiGjdjjTSj6b3YE5MVqJHj+eWMgBAzDtXMi T9IPaWLo72d24Cx7e6AwBKAYTUyqALec+zvpOHNcg/S7pdt23W31wh4AaN8a7mhVNOzu Z6KJiJVAHNM9Uq4LpeQoOQ8hTzqXrBNnutRinhPi7Tk+2l3c6g448AzUVMJ3TxM4hml+ 2vLdIhsFsq9JC8/m1QqU6z82WCA+olaK1AhmNhOiZ6o+QYn1aGe8aA8KtV1kiX/Os4fo pVeUqZj8CmDZjcltYWSDUm73FfhDp6Nk9f15EEGQH1kZDD5Z9qTnw1X/b5O79jMOJCPx YPbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3YnlWYrFQuWXt1rppNJud8kwI6R078rMYORIY8x9Pr4=; b=ZxAolnZGL/Cj/nFoAu85SiCNHsEOvdNXKdwwnjr71gRldBIUiTivXNMOuodFXd7hrF VgOW8s+qy2vRpAdOejiH8mYL8pA5WfsfV0b35mvB3LZoxEqDbRTAbiPTuqK0wsnGmKWD TOYCUCvlU7MsPdg5VBz6dBswUiM+LoBG9gFHU5TNwq8zUOPrLoyPxLDMC+3BRRyQZBtI SNeSPF4pUonM+D46/szS+3+4JoL+W1JD+Nh3VrWdbcZMkJwT1y+fnG4lqbnwfuIurOxh P0mXGeBsAl1YZri6CgFqlbneriDj/oZ7jMAfkK+NHUZu2gJuwk83Wm187zhsKQjorYzP zTHA== X-Gm-Message-State: AO0yUKW8ajQG/1q14Cx7/IyAH6Khfz30SHuddpsX6WqCVrgGUi99Da1R CFmrXsfHnpT2mcX52qAsAT2SyAOWf0sLClui X-Received: by 2002:a05:600c:4b1b:b0:3df:fbc7:5b10 with SMTP id i27-20020a05600c4b1b00b003dffbc75b10mr17580759wmp.0.1676272164922; Sun, 12 Feb 2023 23:09:24 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id t14-20020a05600c198e00b003dff870ce0esm17259160wmq.2.2023.02.12.23.09.23 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 12 Feb 2023 23:09:24 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> To: qemu-devel@nongnu.org, Eduardo Habkost <eduardo@habkost.net> Cc: qemu-block@nongnu.org, Thomas Huth <thuth@redhat.com>, Li Qiang <liq3ea@163.com>, qemu-s390x@nongnu.org, Hu Tao <hutao@cn.fujitsu.com>, Gonglei Arei <arei.gonglei@huawei.com>, Cao jin <caoj.fnst@cn.fujitsu.com>, xiaoqiang zhao <zxq_yx_007@163.com>, Paolo Bonzini <pbonzini@redhat.com>, Richard Henderson <richard.henderson@linaro.org>, =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= <philmd@linaro.org>, "Michael S. Tsirkin" <mst@redhat.com>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com> Subject: [PATCH v2 12/19] hw/pci/pci: Replace DO_UPCAST(PCIBus) by PCI_BUS() Date: Mon, 13 Feb 2023 08:08:13 +0100 Message-Id: <20230213070820.76881-13-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230213070820.76881-1-philmd@linaro.org> References: <20230213070820.76881-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=philmd@linaro.org; helo=mail-wm1-x330.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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
hw: Use QOM macros and remove DO_UPCAST() uses
|
expand
|
diff --git a/hw/pci/pci.c b/hw/pci/pci.c index 2e785e3aef..ae5c33adb6 100644 --- a/hw/pci/pci.c +++ b/hw/pci/pci.c @@ -391,7 +391,7 @@ void pci_device_reset(PCIDevice *dev) */ static void pcibus_reset(BusState *qbus) { - PCIBus *bus = DO_UPCAST(PCIBus, qbus, qbus); + PCIBus *bus = PCI_BUS(qbus); int i; for (i = 0; i < ARRAY_SIZE(bus->devices); ++i) {
Use the PCI_BUS() QOM type-checking macro to avoid DO_UPCAST(). Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> --- hw/pci/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)