From nobody Tue Nov 26 13:43:47 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1707909691; cv=none; d=zohomail.com; s=zohoarc; b=lSCfrPOxvKSptnAG+J8nzX/quhbQg79Gosney17K/Sf7mtRokeOhwhPYv7EEjV0rTEQmRpBO1dDifmLNrkwI5DCos1rzHh6JOr6M4b/PcLd3r9IrFGXkfUmRehMQbEzHZEjVVcNvGs4TiF2UjmHhNRfZ00NWA/AFIjw1D/+6G7o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1707909691; h=Content-Type:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=6LsM8D7u878nz29/5qgyEFYwVL8xOaz5pqW5FXboxXM=; b=G2sm9SG/i95S9Tg1WO4ShEy/s259s9kzBX8nieibYWXN21Ne/P8mEKJA8LmLPptN9p3oQrFOpIbQpef13fbp9Y++M3zgfPPxNmS2HwbQmO53/qi0l86s7oFEWKlMB8en4W98zh1USY9HDC1EHn4k2Q+NCI/p80RB7I3vtvXhMls= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1707909691485647.5719746348916; Wed, 14 Feb 2024 03:21:31 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1raDIh-0002sX-2F; Wed, 14 Feb 2024 06:19:39 -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 1raDIe-0002Pz-W9 for qemu-devel@nongnu.org; Wed, 14 Feb 2024 06:19:37 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1raDId-00085T-CK for qemu-devel@nongnu.org; Wed, 14 Feb 2024 06:19:36 -0500 Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-554-CHzqgG5BM_yWN2RUguzeUA-1; Wed, 14 Feb 2024 06:19:32 -0500 Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-a27eddc1c27so115450866b.3 for ; Wed, 14 Feb 2024 03:19:32 -0800 (PST) Received: from redhat.com ([2.52.26.67]) by smtp.gmail.com with ESMTPSA id mm19-20020a1709077a9300b00a3d4d78a769sm404454ejc.1.2024.02.14.03.14.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 03:14:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1707909574; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=6LsM8D7u878nz29/5qgyEFYwVL8xOaz5pqW5FXboxXM=; b=Ktrqfe9qZZGdnLc7kgnSN1tnzRD25A38Ap0obYCrNAUAGv2wjJ5sF8FyHaFhYY7+ccr+qL yswwbtwC+Iybuzbmj8MWSp1ocNnANLDfRbDo0TVHmkY1Nshdh/LRsgiHPOcdtvJiF+QUXn yOpoeQTusaFvpqPAp0j91bKcGD4obf0= X-MC-Unique: CHzqgG5BM_yWN2RUguzeUA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707909268; x=1708514068; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=6LsM8D7u878nz29/5qgyEFYwVL8xOaz5pqW5FXboxXM=; b=N1oMK2bA6io++JJ7nI7RPzkxFS4mYWfHHxzRYDMua7V4sFxIa+xkwQ/1SuT20uwVhz X4S9ev//dG4o2Dx6TKGyS9Tg8JQTAaH253QPLpkecuxYeatu+8VW+xXs9XueyTmlB2C2 2JTymCaK/fa8rHOHufaRHLzGu9bfBrmNdyXZ18HrBKYqcYBa/q3wK9dy5Z0fiKxb1+QL PgnXhSxhPg5JS7UPxLhtRB8FM+PSVKh3FOP5PkHtazKtZH7J2tkW5B6fnvHyMASWrvUk d1T4wgpHRbW3RWlrHrBtnO15ldZbiKk20WrudcgJqSib9lR/h2TAFbYgSi53jGTt8GbC e6wQ== X-Gm-Message-State: AOJu0Yw9ie260NojFyk4+1yoccSD9S7qcE0stmuXqYh3dVKaqZ57tBwe ZQIN6U3iS8Jwc7FYa3u3wEa8CMnUUFlBUSN/ffYOprPdHfCGh3b7e1zFctpelDMIjhpU8G/xBnE /rgGwNEV5RZfnDu0RXRk7gjyj+Z8E4/X8fZEVyvvR/oGL9bSl7omCdSnMqHotefjuoc7W/vPksc SFrKiiUGVsqqmDfDBUfhZkFyUVaTAZ2A== X-Received: by 2002:a17:906:ae09:b0:a3b:7216:3091 with SMTP id le9-20020a170906ae0900b00a3b72163091mr1424060ejb.20.1707909267917; Wed, 14 Feb 2024 03:14:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IEWzxIveWeX6h8076CJoQaqcXY6Vt6chTMkNlDW/mtgaWKVryZy/PnFAp7sNQVQZC1bJl8P9w== X-Received: by 2002:a17:906:ae09:b0:a3b:7216:3091 with SMTP id le9-20020a170906ae0900b00a3b72163091mr1424040ejb.20.1707909267642; Wed, 14 Feb 2024 03:14:27 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXtEz5+bFRwbiGs+0QLbtvQTBsbhklKzO1xNKGN7UMWJxnu5MP3hesH/CjRva1FiwCeHCk/T/W47DP8y0ZMZSvHAD+tBEccLEEZDF7wxQtzw6DLbP83zQ3CRq/XDQvP75eVYmJhWngdo/NOgJPxxxnmCQyukhpArgrWfGPUX9pVchX/qjKYpm1+TE5BFRRm9MS1I0QOacWTCy0wNVBCdLApdDXR Date: Wed, 14 Feb 2024 06:14:24 -0500 From: "Michael S. Tsirkin" To: qemu-devel@nongnu.org Cc: Peter Maydell , Bernhard Beschow , BALATON Zoltan , John Snow , Kevin Wolf , Hanna Reitz , qemu-block@nongnu.org Subject: [PULL 22/60] hw/block/fdc-isa: Move portio_list from FDCtrl to FDCtrlISABus Message-ID: <271c5bb3780773008a936f424cccf181a11b592c.1707909001.git.mst@redhat.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Mailer: git-send-email 2.27.0.106.g8ac3dc51b1 X-Mutt-Fcc: =sent Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=mst@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.504, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1707909692520100004 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Bernhard Beschow FDCtrl::portio_list isn't used inside FDCtrl context but only inside FDCtrlISABus context, so move it there. Signed-off-by: Bernhard Beschow Reviewed-by: BALATON Zoltan Message-Id: <20240114123911.4877-2-shentey@gmail.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/block/fdc-internal.h | 2 -- hw/block/fdc-isa.c | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/block/fdc-internal.h b/hw/block/fdc-internal.h index 036392e9fc..fef2bfbbf5 100644 --- a/hw/block/fdc-internal.h +++ b/hw/block/fdc-internal.h @@ -26,7 +26,6 @@ #define HW_BLOCK_FDC_INTERNAL_H =20 #include "exec/memory.h" -#include "exec/ioport.h" #include "hw/block/block.h" #include "hw/block/fdc.h" #include "qapi/qapi-types-block.h" @@ -140,7 +139,6 @@ struct FDCtrl { /* Timers state */ uint8_t timer0; uint8_t timer1; - PortioList portio_list; }; =20 extern const FDFormat fd_formats[]; diff --git a/hw/block/fdc-isa.c b/hw/block/fdc-isa.c index ad0921c7d3..2d8a98ce7d 100644 --- a/hw/block/fdc-isa.c +++ b/hw/block/fdc-isa.c @@ -42,6 +42,7 @@ #include "sysemu/block-backend.h" #include "sysemu/blockdev.h" #include "sysemu/sysemu.h" +#include "exec/ioport.h" #include "qemu/log.h" #include "qemu/main-loop.h" #include "qemu/module.h" @@ -60,6 +61,7 @@ struct FDCtrlISABus { uint32_t irq; uint32_t dma; struct FDCtrl state; + PortioList portio_list; int32_t bootindexA; int32_t bootindexB; }; @@ -91,7 +93,7 @@ static void isabus_fdc_realize(DeviceState *dev, Error **= errp) FDCtrl *fdctrl =3D &isa->state; Error *err =3D NULL; =20 - isa_register_portio_list(isadev, &fdctrl->portio_list, + isa_register_portio_list(isadev, &isa->portio_list, isa->iobase, fdc_portio_list, fdctrl, "fdc"); =20 --=20 MST