From patchwork Thu Feb 8 18:12:34 2024 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: 770854 Delivered-To: patch@linaro.org Received: by 2002:adf:9dca:0:b0:33b:4db1:f5b3 with SMTP id q10csp464305wre; Thu, 8 Feb 2024 10:13:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IEoJMjmKo4k2wIhbflcjgtw+UfMuPM2IB0KrQl8ySRo9gu7RmuevZiNW3mzFK0o1G86DIhb X-Received: by 2002:a25:ef0c:0:b0:dc7:4431:589d with SMTP id g12-20020a25ef0c000000b00dc74431589dmr216457ybd.6.1707416010678; Thu, 08 Feb 2024 10:13:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1707416010; cv=none; d=google.com; s=arc-20160816; b=iAuVpVSJ0Z7wh2dY+G/A1j0qKbmOlHWKqO8Hn0zYWGEZs+4XxK/phM+yiY8skitylN tHGw7Z8z6rxrXhSgO8GCdSKy99r+VYzfDBNZNsA86tAV0ydz4e0fzZA02Q5mRMFTcqKT BuzJoIxrfLD+yOBQqLMAAuR6kgXxYz9jxx2AtmZLPrf77MNbDHBsQoBoaFjkyFgIY+aJ wrV6ZgAQPorf1eAXdMfuHg37vcvc1h3SlAJkX0QnIBhcBrTiKcD+R1ygCJ8KQBVGCLuV h/fBJzsTXOccXiWSUdBQ1whnj3ILqT/4RTzvIU8VlbHO8u/JnF3DxS5gU2/nxChvDBJ+ V6LA== 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=w2MStSDCsStbLku+FFcB1QAt3hfE/6paGjBeMPhTa10=; fh=MZt9IuLd1LZvOqI11mDdvtw3STOlq6UGergS47mftEY=; b=eR/I7PXvHoJxY/Qq4uZ2bEnIXvQ3nMCVTP65ivNhkHksAwpVDPGmteA07CYe1AiMFn M2o6FszEUCgiqPxI9c3CtLLcN/0hLsO+WK/P6f61eFpyZxEc878zTYH2i0t1G8H1A/fv aPNGIwrM+4doreI7zDErwYTddBxD+wxz6DtoyE5sPG8ruYfSO3S0g3x+iEIiMja0SJX0 mln7MTflzLog9uArK4VN1JAuk9uITReC7UpnD7gSkHoCZSE9Os+wJiiSprlLeOiJaHw+ T82itMawrVitXVrtakfhwQpVMiTqEQdHQ3piYW63jIBf1C8jLU+tN1aBZFzdmkMb18Px tjNA==; darn=linaro.org ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gSyxdpNC; 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 X-Forwarded-Encrypted: i=1; AJvYcCWh5irEifadZPt3M0cB9tr4opO99mUbgG1tA5Gf3IbuB1QLf0oO3r6YoAp4Hk9h5wzt/yIF5LheXyk2LdyE4kRr Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id ia19-20020a0561024b1300b0046d6813d0f4si77774vsb.657.2024.02.08.10.13.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Feb 2024 10:13:30 -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=gSyxdpNC; 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 1rY8tT-0004BT-Bw; Thu, 08 Feb 2024 13:13:03 -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 1rY8tQ-00048N-4S for qemu-devel@nongnu.org; Thu, 08 Feb 2024 13:13:00 -0500 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rY8tN-0006kC-SB for qemu-devel@nongnu.org; Thu, 08 Feb 2024 13:12:59 -0500 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a389ea940f1so6536866b.3 for ; Thu, 08 Feb 2024 10:12:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707415975; x=1708020775; darn=nongnu.org; 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=w2MStSDCsStbLku+FFcB1QAt3hfE/6paGjBeMPhTa10=; b=gSyxdpNCl6XxdHLBYe6vCnGNmaBeQvS82kA8/OZskTbdeDm66Ogr7a4L8pjfjHq2oA nZlQoVkxQdlzsXiI+II0oMkVX5AZnQ2+0+NK+jYFyvH6r21XTQq6EABJwmy+W+kTYSvx oarYVpsX2lkN4e54oo1VEsUAD4kXO7wpVI8ege56EZdP3o7u+1qR/HX64VDkHfH1XUSb Fa/WMHW7xSIXyC8fJN4tJaFChJ+z9VHoLZItQbe8afOMcNnv70I8k6sJd1AKl7bs48id IsXH7yZ9geTW3yTToavejmm4oz42AQGKSBM+AFZz8SRKd9+MvtBENQXzpHuTMcXber5O otyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707415975; x=1708020775; 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=w2MStSDCsStbLku+FFcB1QAt3hfE/6paGjBeMPhTa10=; b=IXZx7+4728IQB3iE8iS2woUy0eG5OTuLj/13q19P8cqLSLviAdXK9eHjs+lmVQ7LFz dHfqdgEICT+8kyC1nXOZLAY9Q0Y98K03aDqOVxWl1Xe5xN7kqtnOTm7XhQ5exAoT7nDM 18Qk+vIa4PwxfUPODZHzE4MEJOASMRnTa7jJ/8ArsHnF/NGGHO7iSgdJ7iD8hnRdc5xc jjrF1pCf81lOHfO/l/tHxoA93HZA8SA0hDAbnrlee9YhMWTNUJTWiXaJ1MtoDLV4Rrzp J4ZqpBZdS2bxP5iGNPF52VJ31OiP+467Gt/y5UZZByN89Jby304qDxNl3mQvSuUMKpDS Phuw== X-Gm-Message-State: AOJu0Ywz3//og4+llBF9s2xM9vaU4Xl6FdElhx1TJkf7AhAbIFMi8k7p 2r1XlILIclzacxVth/LBWTprPvzof3EKrYG4DVE68v0XuYeNups6Cdpb4nbEgrGbtUG15a7YVNE 4Tsc= X-Received: by 2002:a17:906:b2d3:b0:a36:2df:5ded with SMTP id cf19-20020a170906b2d300b00a3602df5dedmr77560ejb.72.1707415974678; Thu, 08 Feb 2024 10:12:54 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWvDhQpyJ+AI4o6GqNvSoUYNSlJubsBOjQg+Xc46YBKGB6fb5A4QPhJA8Qpq4ro7FWE+jJBo/TTBzS9jO0TY2uJVyx1y5bsi2oFIDF2dthoOQz7rFEY431l2Xx0kxYYWG/fMsd5kF+H0LpsPsd3FCMNkxgWpZUJqc0XChqwItk3ZKEJ4SJYuYMymuSs6V23wgts+eXBsxrhZXqysDE1NT1zUc9Foat5uXaQ1Ib0Xc2YGo+eeCEWiEeoIpYs8ETmK5fyvtV85ae6LE7IwbSBTH6vRE4NlFuP0IoJt7lgKZhBgs56J2HgI6XaHLiC6hh7bHiH4JjqyQ== Received: from m1x-phil.lan ([176.187.218.105]) by smtp.gmail.com with ESMTPSA id y11-20020a17090629cb00b00a3af8158bd7sm297255eje.67.2024.02.08.10.12.52 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 08 Feb 2024 10:12:54 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Mark Cave-Ayland , Zhao Liu , Paolo Bonzini , qemu-block@nongnu.org, John Snow , qemu-ppc@nongnu.org, Eduardo Habkost , Richard Henderson , Markus Armbruster , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= Subject: [PATCH v3 01/11] hw/ide/ich9: Use AHCIPCIState typedef Date: Thu, 8 Feb 2024 19:12:34 +0100 Message-ID: <20240208181245.96617-2-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240208181245.96617-1-philmd@linaro.org> References: <20240208181245.96617-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::62e; envelope-from=philmd@linaro.org; helo=mail-ej1-x62e.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, T_SCC_BODY_TEXT_LINE=-0.01 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 QEMU coding style recommend using structure typedefs: https://www.qemu.org/docs/master/devel/style.html#typedefs Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Peter Maydell --- hw/ide/ich.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/ide/ich.c b/hw/ide/ich.c index 49f8eb8a7d..048ea7e509 100644 --- a/hw/ide/ich.c +++ b/hw/ide/ich.c @@ -99,14 +99,14 @@ static void pci_ich9_reset(DeviceState *dev) static void pci_ich9_ahci_init(Object *obj) { - struct AHCIPCIState *d = ICH9_AHCI(obj); + AHCIPCIState *d = ICH9_AHCI(obj); ahci_init(&d->ahci, DEVICE(obj)); } static void pci_ich9_ahci_realize(PCIDevice *dev, Error **errp) { - struct AHCIPCIState *d; + AHCIPCIState *d; int sata_cap_offset; uint8_t *sata_cap; d = ICH9_AHCI(dev); @@ -154,7 +154,7 @@ static void pci_ich9_ahci_realize(PCIDevice *dev, Error **errp) static void pci_ich9_uninit(PCIDevice *dev) { - struct AHCIPCIState *d; + AHCIPCIState *d; d = ICH9_AHCI(dev); msi_uninit(dev);