From patchwork Tue Feb 13 13:03:30 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: 772304 Delivered-To: patch@linaro.org Received: by 2002:adf:9dc2:0:b0:33b:4db1:f5b3 with SMTP id q2csp241003wre; Tue, 13 Feb 2024 05:04:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IEKOUX4r3MBAu85/FHvCwMg/AUBemjNnNAIvBEoP79wTyWusTZk1jwtmFaZE494Qx0EDYWm X-Received: by 2002:a67:c989:0:b0:46d:606e:633f with SMTP id y9-20020a67c989000000b0046d606e633fmr7066943vsk.1.1707829457350; Tue, 13 Feb 2024 05:04:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1707829457; cv=none; d=google.com; s=arc-20160816; b=G6t7SM65BrYUIgtXdCkcTSm8jdyTdMRNmlTEj36VhOGoPVnO/Ogy9Q92mZnfKToD+s Adls8z1lymi/PigV/JDJkorZHWdDmxTR+eZx7+VrJsD50jeDKODQJda0BFsgD0k8RxGJ YkiXo8n3wyGBmE9mxWXFClaIKuO2v8x7uFd+ziVdgoLbW1xvZuzVAUcrQhsN67Z3ATqY xMu6a8xmq8zDwivhSQyc/PxxNoLgEkIC63UEooF5eOHDv4NO+Q4ttC2CnX/pdHmB+P+o 8T/5Sn2SkM3tCbNxugknEaqgAjHBYmp/lzAtwTBzt9InrOR/z6YJ5H8kVbPe3CuJqg8G YoyA== 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=8bjV7XbcteO5mP7y6ZVwmid/dNk1Cnsnez4w9DwRe9k=; fh=dfUMsFwXT7PpyXyLuWsTM6vk9dlw8IGgxeMx/j2VweE=; b=EWtuQM1mjRovR16Q02xv9Pk50SfuIXgBLqBe5O5XZW40DuKhn6Yxb/SNRrpOYVG0jS 0IgyENw1KOoC135e7kkjZYtAaF73WdXPVIcuKesE0nEw0jWKUVXPsncAl84MqIyMkhUk HH6PmIJayqwrzqCmwNImbx10PHIZRxfhtPmaFZVLzGJfdnIR/KCA4igdYnjC+48w3faF L7bo85WxlGsj4haGHChv4a2evbPPqgevICmLLataHQNWGXKjVvAMvmzXOgbf/N8k8shE ur75DM9KrxPoIQjLHrqz4YONZAnc0+vOd+Rg69CUxgaaBhkWE/zk6UO9U++ZBywkfXtU FE8Q==; darn=linaro.org ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Iuo2kq4j; 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; AJvYcCWYMbrJrlhYKpTXYZjXxHbVDEWcX/MlxTeCloIVNrjHqZ3MXTlvEwNwoNzkTXNUPRm8QmHEmVa9yrRS6Vpf6+MG Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id jc8-20020a056102128800b0046d23340493si941052vsb.67.2024.02.13.05.04.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Feb 2024 05:04:17 -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=Iuo2kq4j; 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 1rZsSG-0001gN-D7; Tue, 13 Feb 2024 08:04:10 -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 1rZsSD-0001d1-25 for qemu-devel@nongnu.org; Tue, 13 Feb 2024 08:04:05 -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 1rZsS9-000619-07 for qemu-devel@nongnu.org; Tue, 13 Feb 2024 08:04:03 -0500 Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-33ce2121d5dso106300f8f.3 for ; Tue, 13 Feb 2024 05:03:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707829432; x=1708434232; 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=8bjV7XbcteO5mP7y6ZVwmid/dNk1Cnsnez4w9DwRe9k=; b=Iuo2kq4j8ukTmdnLFLBwVBlv141VbxOiud44j19wChyXANllhtKUI+T//6Sl/QusqI bTjeApXT4e/hEI8XqZbtEQv+XPhmREz2tAgahk7xDqQ+gi/Dbvofat2jLmBZc542dq0T 8r6pZG5UzrAVxqTxF4al2lqLFUyuFVgit/uOm3y/NXIw687Ah7OloGGbpYD5DmYWR1NE s0Ay1DGA1OXkF1AMKzBKIAkRxMILStV3jzDlthvA17tQ09IMKGIbKYYKdw283NaT8mIF hHZtvq0e7YLhuOYyHopoRh9gKami3innso6Xs13+dA2tr5kEZTma9CGo3imif4uhVfwq VDzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707829432; x=1708434232; 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=8bjV7XbcteO5mP7y6ZVwmid/dNk1Cnsnez4w9DwRe9k=; b=vvWVHX+mQWn40i8YK+iZ8TeGuzMtNGwqYzo72ucvMMZcUkxAtmHEPssXUnjAbmAna8 Jx13V5pVYUkXFz3SoIf9iR+iwQdwG5otyRGEDPFIebn2fF3RL+ZupfWpyLvYj5Kk02RC RZwWFbjS74gCwWSqKz7o7ALafhyvfK8I98uqcQBjal15lfoLEwDWkSlXKyxmWEBvTQPi I8WoeeZDAnlp0O5H3lkBuVZWtYsJs+ci0VL8xe5BjN3uiQD3CdGpbXuNjPKkqn4T2fWb n1JUjzkW5NUh90MES8pERK9cOPDAoovNxpRToNVWxBWOwxBjkUdIQM4CsOnSWqXTkfcq xrVA== X-Gm-Message-State: AOJu0YwgezkBjWTxs2d3XpinhZI8SWYrEOpUJFK9hn+K2DbJorq+ln77 iCi7DjgUycW65mxeYKt2kw8h4phf9GYZ/2zXkG5AGgEKcQtJ+GrvmWD/hUD1seJfm9Bgj2zvN9K X X-Received: by 2002:adf:f245:0:b0:33b:4908:9bbc with SMTP id b5-20020adff245000000b0033b49089bbcmr8723938wrp.40.1707829432085; Tue, 13 Feb 2024 05:03:52 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXY47e5RknONtOTkkWbiFJ9EVpcCyRgrxnsd/fsLwV/Q5erRYBsZJCd8wguc4lqVNGTqynRqW+lXLbQOx+2QqIckvAqRynoDN0JhflIu7HfMUzfFBLrbHyLxrYOO65ALl0JrLdl43Zv+ivVop/tPheRTaWLT8r6yK5iKrK44N+7co4oOxoXQW5lj8Ru0eMFJfzcr1DOUi5ERdiW8AUYrJo7immmzfb8pKgSsXdZ+qKZ4sk+23oyyeo/abpNGolwangEhaZ5tdAmlgh8SSMNt9dtG2yd2DP0//8+UaUnK0sqb2HNCggRlawgc2as1xW6xbogcVZSM4vRrOzrlx3ROlqa6JZbeVJaxFXNzLroRgpKzWMMwRXSrV0mQfrJXH5ToLiwUA== Received: from m1x-phil.lan ([176.176.128.243]) by smtp.gmail.com with ESMTPSA id ck13-20020a5d5e8d000000b0033b684d6d5csm9745907wrb.20.2024.02.13.05.03.49 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 13 Feb 2024 05:03:51 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Zhao Liu , Bernhard Beschow , Paolo Bonzini , Mark Cave-Ayland , Richard Henderson , BALATON Zoltan , "Michael S. Tsirkin" , qemu-block@nongnu.org, qemu-ppc@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , Peter Maydell , John Snow Subject: [PATCH v4 01/12] hw/ide/ich9: Use AHCIPCIState typedef Date: Tue, 13 Feb 2024 14:03:30 +0100 Message-ID: <20240213130341.1793-2-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240213130341.1793-1-philmd@linaro.org> References: <20240213130341.1793-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, 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);