Message ID | 20230109120833.3330-22-philmd@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a17:522:f3c4:b0:4b4:3859:abed with SMTP id in4csp2111186pvb; Mon, 9 Jan 2023 04:44:09 -0800 (PST) X-Google-Smtp-Source: AMrXdXsmclNHiyHeF/foQWfjyuPCVjL6WYWEQRwZ61/InuJUzFCicZ7p9w/i2ZL+cegf+PpDeXTs X-Received: by 2002:a0c:f7c1:0:b0:532:1018:2b22 with SMTP id f1-20020a0cf7c1000000b0053210182b22mr21117393qvo.2.1673268249341; Mon, 09 Jan 2023 04:44:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673268249; cv=none; d=google.com; s=arc-20160816; b=MqixOg0QDDdI7Kv/SNZQIwwvuSUBNJ9djHfB9RMmARGtH0xqQVH5wtZHf17Gh9XLiu GeBCInfbd2laCcJIe1xlt++emUquAoCWipGS7Ef6hh00vB3SRayQpcG3TbJsO3b+8WpN QgjCSgRCIIxk25meV1AAdMns3GDIGyQWqkyOq7QihkgawdtJxO8B4nCjRGdU98b3aqds iaSMi97UvIgpAYEFmZvhpaC3WfGIW8QxVTkXUmkyF1elLPD6gQVAEWlxkW2VC9bjQZqI pWxxQR6Run3VMj1U+joFjntrudi7MjP067DpYb5EL6DAr3alrb/DHClbDJLqdtYEVzDz S7tQ== 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=pvqyemKU409q4RdvR4LnbGo0yAdbFPnALE0Z2BjpZPA=; b=BeAODi3SIPZhTPYjazTS9uLPmFI3CJ4exS8lZcO7IMXFne5fkpZOkJCwjOU+g743BF ZkHKS9MpglGekiRoa1Z1Nb7soSTutDSjsBu/foe/LbXnLx+227hjN8uCl9XaPG/5hMXE nAJ+iYLx5U0IWYHgyx7qjmdYSW2fvZfmvsXJ6WC+NLgPM+enondLShHSg+F8xzcrpOF3 TpzVlhsCjIso7rH7HSdQp+XYd0fibn61PbL595cLJsX7ARKlk2EjHA8yr++YQMh/A9rB UkD9LKSf68wuhzNwI5yWD/CES8ScXD8kpI13Xky1jZ1aFtfVPYWz+nqLk2/Xaa7r9Fci Pc4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=smiB4Wp1; 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 r4-20020a056214212400b004c791803422si4753210qvc.5.2023.01.09.04.44.09 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Jan 2023 04:44:09 -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=smiB4Wp1; 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 1pEqz4-0000d6-JV; Mon, 09 Jan 2023 07:10:34 -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 1pEqyp-0000UZ-0y for qemu-devel@nongnu.org; Mon, 09 Jan 2023 07:10:20 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) 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 1pEqyn-000774-De for qemu-devel@nongnu.org; Mon, 09 Jan 2023 07:10:18 -0500 Received: by mail-wm1-x333.google.com with SMTP id bi26-20020a05600c3d9a00b003d3404a89faso6827933wmb.1 for <qemu-devel@nongnu.org>; Mon, 09 Jan 2023 04:10:16 -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=pvqyemKU409q4RdvR4LnbGo0yAdbFPnALE0Z2BjpZPA=; b=smiB4Wp1FoEGvqd0hHv5B9HuqOAAwVOeF4O6Dvc/Abdx4nMltVpz0tYFN3pzwuo5jQ W0FFABt5Utn+bq+47ItTS3x3Z0UVYic7iPZ/fJE5P4BfLTxxaW0M/iIJovoHneHxfK6Y ZmEXbcA8XYONJiXy//DyEsriafDz2omiuiGUu/1nCtQzHys53uE9wQTccaWVz9e2f7Hi etAtrztaoY5naqlnWLvULO1tmnKVzjq4nok3AvtB5FfLdxuIM+xoVAOqAMhasO6Wooa/ dJ3/9jeSCggWvitHXc3Hk+VaNHx9N0JzhWJ8HNfX06baqSlShvjf8Bdpb7z3DE+GaNJ5 Mkew== 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=pvqyemKU409q4RdvR4LnbGo0yAdbFPnALE0Z2BjpZPA=; b=RJA40aCa5jZWc2cPguiBgzJoGl/FSVe4Kmx/rqHerjd5oZJxrAXbWCKTFVkkXeXrSY Mb+cmlBy7QAfG5F6zE49KRxgLKmvzHmZJjb5mXV4gk+uIoA2UV8G2As19U57n1uHuJiP Mou5Ky1piv4r5/aAk567/Q/kBmWk0TFvpaul3MXYF3z8PoSmMVQmbRRbkeyYs5NCQldc 9BAiajzVxLhcRwKuEg2Fg3++s4RU0U60Svr9Sth9HfG20pCXetcwBC3dCGd/9O7lOej2 rjXxAGYn+TxB4Yk8mxvHd6k8gOcND4fT3sYreTwHsHWDNQON4W5T3Bw5TS4bZBNWsbsd FI7A== X-Gm-Message-State: AFqh2koCNxBSTisjhe8R9kW5M2aaJYcE7yhtR9QF5J1ZEIcCN7W28pEh TAO/ZKjI9Azkl+0Rd+8bJNeI1VL6/6NLXAMn X-Received: by 2002:a05:600c:5405:b0:3d9:ef75:ea6e with SMTP id he5-20020a05600c540500b003d9ef75ea6emr2507566wmb.38.1673266215960; Mon, 09 Jan 2023 04:10:15 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id e18-20020a05600c4e5200b003d9876aa04asm13352736wmq.41.2023.01.09.04.10.15 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 09 Jan 2023 04:10:15 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>, Bin Meng <bmeng.cn@gmail.com> Subject: [PATCH v2 21/21] hw/block: Make PFlashCFI01 QOM declaration internal Date: Mon, 9 Jan 2023 13:08:33 +0100 Message-Id: <20230109120833.3330-22-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230109120833.3330-1-philmd@linaro.org> References: <20230109120833.3330-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::333; envelope-from=philmd@linaro.org; helo=mail-wm1-x333.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: <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: Remove implicit sysbus_mmio_map() from pflash APIs
|
expand
|
diff --git a/hw/block/pflash_cfi01.c b/hw/block/pflash_cfi01.c index 4e74c9e0d9..56f81d3f2c 100644 --- a/hw/block/pflash_cfi01.c +++ b/hw/block/pflash_cfi01.c @@ -59,6 +59,8 @@ #define PFLASH_BE 0 #define PFLASH_SECURE 1 +OBJECT_DECLARE_SIMPLE_TYPE(PFlashCFI01, PFLASH_CFI01) + struct PFlashCFI01 { /*< private >*/ SysBusDevice parent_obj; diff --git a/include/hw/block/flash.h b/include/hw/block/flash.h index 20e5424525..3b7c40afb0 100644 --- a/include/hw/block/flash.h +++ b/include/hw/block/flash.h @@ -8,8 +8,6 @@ #define TYPE_PFLASH_CFI01 "cfi.pflash01" #define TYPE_PFLASH_CFI02 "cfi.pflash02" -OBJECT_DECLARE_SIMPLE_TYPE(PFlashCFI01, PFLASH_CFI01) - BlockBackend *pflash_cfi01_get_blk(DeviceState *dev); MemoryRegion *pflash_cfi01_get_memory(DeviceState *dev);