Message ID | 20230212225144.58660-7-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 b15csp2124990wrr; Sun, 12 Feb 2023 14:55:25 -0800 (PST) X-Google-Smtp-Source: AK7set8WKyYQ4lfMMFIAjiXX+JyGdNp4+uhQa3qNhwMYqTab+KdOHnlq5QwavcmfNvBkg1sb3uM8 X-Received: by 2002:a05:6214:d8e:b0:56c:24dc:17a1 with SMTP id e14-20020a0562140d8e00b0056c24dc17a1mr22480654qve.48.1676242525335; Sun, 12 Feb 2023 14:55:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676242525; cv=none; d=google.com; s=arc-20160816; b=uVYDWlvv2UKXgO1i4heKY+gQOGVfZyTUwkFgTcGCV6dCd6kQmnNdIx/mrOFnqtkFgh M/vyC1jP1+t3Hp5XR6/WDiHdZNVJCAHAQBTg1mvxggNsMdBDmEiOZxTOPGW+4HkLikCL v1iiKKJy6uJU0w9RYJciHUDlULJRLjsRN6aoBjb/esHHh5P1gO/6Lnoud3FoNW9PbB6b RFCh0T6DOo262Qu18AzHEtneVyjAnVOR9P8iuU0qKQ09JONTy8xs2Az/1vV5Pdrw7fU+ 8nFt60hcF4i5lUyOeqM/rQKwc9QdZTz6ng8xT0SVBowOodC6GvNspfQbXVf5i3g3/7LX vJaA== 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=e2VknmEn3fmBwvpwvDl4brQssg/rA4ds5kYNPCQi2wo=; b=zF3en5P/KcLqCukdyfTJTXLBPVHKXdcVJaqaqIC+xwRy9jKnxBs8f6n1Cae9aoamY2 mzFK1jlMXTFVALhIXQRV9/GPHmx093PRbaYpnPp7W4uKrC7p5F4jg9uuMVoQF2c1ryiI UZ2eNeEC/NNwb3tGsL3x4eY63HdXA+NBrr68jkzInIKwe6+hSVXQxcvHnPlgL5Yuk+6L 7NBh6DZm4BcMzjIUGf7i/UazOl2BDoj886bFfYSZlR6o7APSwEFc79+tyWj86DEwLlSK R45xgvLjsj7NhWORKSlljbD+0ire3flIgHChdD1LHjIS+QpV9W5OZF10I3qqeI0C+/Se 9lug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NAnShSrG; 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 a14-20020a0ce38e000000b0056eb4526031si266091qvl.91.2023.02.12.14.55.25 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 12 Feb 2023 14:55:25 -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=NAnShSrG; 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 1pRLCq-0005Yd-71; Sun, 12 Feb 2023 17:52:24 -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 1pRLCp-0005Xf-1g for qemu-devel@nongnu.org; Sun, 12 Feb 2023 17:52:23 -0500 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) 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 1pRLCn-00042O-Hw for qemu-devel@nongnu.org; Sun, 12 Feb 2023 17:52:22 -0500 Received: by mail-wr1-x436.google.com with SMTP id o15so7139061wrc.9 for <qemu-devel@nongnu.org>; Sun, 12 Feb 2023 14:52:21 -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=e2VknmEn3fmBwvpwvDl4brQssg/rA4ds5kYNPCQi2wo=; b=NAnShSrG3bvpsgcAUn3PIfOzm8ENnXSVBU4aWjYnslxrwPjlGIKeGiXegkBTAKj1XF 9ZpaqBPCq2zv+spNAHgtevK70pSJKDuLsyyDSelFP6ZovIfeUD6uZLukPIUFwhg6yMFe FlETZpGB6Ab8Fdu0106HERa+dCV7fkk8cra8eEz/ddo4SUKwBQEO8MxXMDI11XgKHZ3K CP4CT+0R41GqI0XhAghF343ab/U1uDirpZp3z+vaK3+xcuwGAiPnWv6pIZHNYoBNG9+3 suqPsne/z+2cvy0Z7HPELLHE/M9++sVsvPKqfcyAufMRZzE9ARhAFfhIjk1Bb4dDUBJ0 yS+Q== 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=e2VknmEn3fmBwvpwvDl4brQssg/rA4ds5kYNPCQi2wo=; b=DPnVRHAuEXg3jKBwU4ptw99hQ/fee5yt0YxNilM7ZhWd9SOaICgS+Btd+LawiXJlbf hJdRni0c7rdILrS7pcJGrd/fBQMMDfssxTCp0+1Y45h8tcGr9jC3oCFsDBUqwSyi9zya N0vMIcLT6lJGJfUT512/1/zQd1DYIyIFuqiZpMd7615/IiWmMArPnuBfPDWJQaBcUjCs rIfCEQBQ3soRQJY5B3cQkcDNYOvZsrSKy7nulfNllILc0IVOxy6Ni3l3qzkbNyhT8522 c28wWmWUnfsxNBPFKtbYQ2ieB/hsmRjA/d4O2Mtp/Qnt7QZ9jiFuAZp9zoysche+g8QD z5uQ== X-Gm-Message-State: AO0yUKUjEbY7tm301GgtVQwX03/lXRd2JCWPy8ozGbLaNCacazkptsqG Gg/dRJJpZj2xCKEGcMHsYltrdg== X-Received: by 2002:a5d:6188:0:b0:2c5:49e1:b2cb with SMTP id j8-20020a5d6188000000b002c549e1b2cbmr7664822wru.37.1676242340343; Sun, 12 Feb 2023 14:52:20 -0800 (PST) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id z9-20020a5d6549000000b002bfd524255esm2483149wrv.43.2023.02.12.14.52.19 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 12 Feb 2023 14:52:20 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> To: Eduardo Habkost <eduardo@habkost.net>, qemu-devel@nongnu.org Cc: Richard Henderson <richard.henderson@linaro.org>, xiaoqiang zhao <zxq_yx_007@163.com>, Hu Tao <hutao@cn.fujitsu.com>, Thomas Huth <thuth@redhat.com>, qemu-block@nongnu.org, qemu-s390x@nongnu.org, Gonglei Arei <arei.gonglei@huawei.com>, Cao jin <caoj.fnst@cn.fujitsu.com>, Li Qiang <liq3ea@163.com>, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>, John Snow <jsnow@redhat.com> Subject: [PATCH 06/19] hw/ide/qdev: Replace DO_UPCAST(IDEDevice) by IDE_DEVICE() Date: Sun, 12 Feb 2023 23:51:31 +0100 Message-Id: <20230212225144.58660-7-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230212225144.58660-1-philmd@linaro.org> References: <20230212225144.58660-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::436; envelope-from=philmd@linaro.org; helo=mail-wr1-x436.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/ide/qdev.c b/hw/ide/qdev.c index 96582ce49b..c96a25e955 100644 --- a/hw/ide/qdev.c +++ b/hw/ide/qdev.c @@ -133,7 +133,7 @@ IDEDevice *ide_create_drive(IDEBus *bus, int unit, DriveInfo *drive) qdev_prop_set_drive_err(dev, "drive", blk_by_legacy_dinfo(drive), &error_fatal); qdev_realize_and_unref(dev, &bus->qbus, &error_fatal); - return DO_UPCAST(IDEDevice, qdev, dev); + return IDE_DEVICE(dev); } int ide_get_geometry(BusState *bus, int unit,
Use the IDE_DEVICE() QOM type-checking macro to avoid DO_UPCAST(). Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> --- hw/ide/qdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)