From patchwork Mon Feb 27 14:01:35 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: 657010 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp2371424wrb; Mon, 27 Feb 2023 06:10:02 -0800 (PST) X-Google-Smtp-Source: AK7set+VNI08lWmmsFHzdDiQv6+yvK7GnV8kGiFXWiI+F53I5yhdHHtQXAR1jZtoRCrswMD1hEqJ X-Received: by 2002:a05:622a:4204:b0:3bf:d9d2:2d2c with SMTP id cp4-20020a05622a420400b003bfd9d22d2cmr3979270qtb.53.1677507002026; Mon, 27 Feb 2023 06:10:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677507002; cv=none; d=google.com; s=arc-20160816; b=l2uxfBRwT/362mU67DaGkJKAwz0CVUmXOX8TxRbE5zAxkNi8rM2ygUbjPAa0vI99Co RAWkFu7SZVovch4GRk6RjzOxtDPRh57DDzr7od66d3Wd8gJvc6gTAKoNRrlS9u+FscVG Py0lUd3YlZj5PyftCdbfpWTxf5yDnsj17TD7EH9gVJMh2S6eqGskxbG3sFWh0zF3ku/J gzkuvCpXwPAfSZH2o1sTNhXDaMVHuvpln0MaV451nv/nRv1lcGLyMhPYv5mi6mGTMPLE d4U/ucnwzLElmm1DXdeebQre6EOamtSe4IbRst6ve1jD5CsX0qkbOSAkoYrniZ8Fr0va V/WA== 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:to:from :dkim-signature; bh=hssXN3XkoW4KUFtL7+A8SmD/TD5D7zgacO3632skb5U=; b=sfCQFYeld79r2taNJ5RAflfH4yDmWSoSb97sprdMfUVIxVgJADzyqArgxKCHbGCUnr UsTz1qao114CyF0NvCheN3ZlJUOjfFA4/esYz2WhQ4rhBEIda5kDF6lUIv0fUYzfMhrA zl8E3E2Cqed/9vHvJsveYzdd8FEFurJFQTk275mWgsWh2aRz5UXWbSjJD6FNzykmyDW7 KN+/aTJgda53/z+opMq+GIIDMEHbgEisD2MdR5uDqqt/iEV4itBAYq+jOGnkZne9wXXZ E/ChI6yvVkn2reyaKrGTYLFTnIYVgI9xRSivHvEuiQgUnuq1Aw+e9NX2XYc/qXj6JR/F VtOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CFmgspM0; 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 t13-20020a05622a01cd00b003b9e3fc5688si6602052qtw.511.2023.02.27.06.10.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Feb 2023 06:10:02 -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=CFmgspM0; 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 1pWeCJ-0005Eh-FG; Mon, 27 Feb 2023 09:09:47 -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 1pWeC0-0004em-5W for qemu-devel@nongnu.org; Mon, 27 Feb 2023 09:09:28 -0500 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWeBy-0000Xv-Kz for qemu-devel@nongnu.org; Mon, 27 Feb 2023 09:09:27 -0500 Received: by mail-wr1-x431.google.com with SMTP id j2so6345925wrh.9 for ; Mon, 27 Feb 2023 06:09:24 -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:to:from:from:to:cc:subject:date:message-id :reply-to; bh=hssXN3XkoW4KUFtL7+A8SmD/TD5D7zgacO3632skb5U=; b=CFmgspM0P6WgAcYn5I/YDn4T7oCUz45UHC0xVgOuX/hQnhdL+aFtLu3WM4i30KoNF8 zYGmscD28l8u+NDEkgBkDSP0B0CHM1dnY6qu0/xnfngkwmB8n3z/nAZ/l7739kbXpPeZ MYN9cGVinzRejehqxwEWFk0Yr7UUYR89LaoXvqwoL0GH8p+WvqG+voE05BcE9D/xU/Pv faHps5cNsdrKHptEbvPSTlpKA1Khpjxog8K5zDrHlHUen1g0qwQrNmPeUIQO5dHMV1H+ t3iLnjqLmDtSsHJ1/jVtce7zJxnUf+5iGGcBR8JGUfJPflJyUz8+gMf3UEZfBoDT5xKn COyA== 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:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hssXN3XkoW4KUFtL7+A8SmD/TD5D7zgacO3632skb5U=; b=1wIZHLEnyRcCH+vUavnxUl4LFyWzYnvnC7fqXCGsv5dLA3SJQALYLqHNfodF+4DB0C hDUtiYSKsa4uh/1L9hj55auN8HB5wVEv/CDTgSAzAL5Q+SS3EoA1+HYF2d7ifwbWH2Tm k2Z0uKAAGGbu5dS3UR06eIAwwmmOCZmB6lpMpBoK7DjhG3NihaeOrFr/6WjVzHuWPTJ8 j0jK0pQ3MelCub4fP82QmfoRS52HG0+dQKX34M0aXJXkck6/8ogBG6VVxWY5v3eZVHBU mwbaEVh4G/xylfFGhSX/zBqxBQziphD0ICtSv4zLJVN983Xd+fEjHnjDl7/GFB91qTWp NHEg== X-Gm-Message-State: AO0yUKUKGXcO5/vV10vDqgSRV6BE820qyV6aAEMV5nmPneKqUF8GmBeH wAx4ueoMYzlpjjIWvMDVYWsSqGhmFTVA6F+o X-Received: by 2002:adf:fdc5:0:b0:2c7:dec:77ac with SMTP id i5-20020adffdc5000000b002c70dec77acmr14127186wrs.21.1677506963705; Mon, 27 Feb 2023 06:09:23 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id m25-20020a7bca59000000b003db0bb81b6asm9268857wml.1.2023.02.27.06.09.22 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 27 Feb 2023 06:09:23 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 088/126] hw/usb/xhci-nec: Replace container_of() by NEC_XHCI() QOM cast macro Date: Mon, 27 Feb 2023 15:01:35 +0100 Message-Id: <20230227140213.35084-79-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230227140213.35084-1-philmd@linaro.org> References: <20230227140213.35084-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=philmd@linaro.org; helo=mail-wr1-x431.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=ham 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 Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20230220150515.32549-8-philmd@linaro.org> --- hw/usb/hcd-xhci-nec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/usb/hcd-xhci-nec.c b/hw/usb/hcd-xhci-nec.c index d732be0ef9..328e5bfe7c 100644 --- a/hw/usb/hcd-xhci-nec.c +++ b/hw/usb/hcd-xhci-nec.c @@ -53,7 +53,7 @@ static Property nec_xhci_properties[] = { static void nec_xhci_instance_init(Object *obj) { XHCIPciState *pci = XHCI_PCI(obj); - XHCINecState *nec = container_of(pci, XHCINecState, parent_obj); + XHCINecState *nec = NEC_XHCI(obj); pci->xhci.flags = nec->flags; pci->xhci.numintrs = nec->intrs;