From patchwork Thu Aug 31 12:56:07 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: 718978 Delivered-To: patch@linaro.org Received: by 2002:adf:e5c2:0:b0:31d:da82:a3b4 with SMTP id a2csp453772wrn; Thu, 31 Aug 2023 05:58:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHA3xvVBeuft1BJF082kMpOzjXDWjDrFAOxyyPSfwDKxOMILJYPwI052wvYk+l49yStToMm X-Received: by 2002:a05:620a:34f:b0:767:dd02:e908 with SMTP id t15-20020a05620a034f00b00767dd02e908mr2015170qkm.64.1693486738123; Thu, 31 Aug 2023 05:58:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693486738; cv=none; d=google.com; s=arc-20160816; b=c9ip3soztN7kb+XbGCG9qlmwYA+PdooMA72hZQOvgs+HF75DZOKlYdwXuIt4dQ6/gf 5LoF44wvYwbqOJ+yZ8fvtNI5Qyz388e1qJekmA//pp2T4JqRfJ3SIG/E8TKx1skk0aRl x/BVorKv39KgYVgfzNw3QCqnNNKupVunmHwrkfy/SuYeH62irb1iO4J15quPeqjo+yYU s85ptWhx9SV0QV4urcmgbJsenqXnPf1XnkWhqfXtLMZLQ+SaC5ONWyrQxS7kXqY4VQ44 +xnEp4cbtTBvt2Sn6jnImEzSXRj1aweIIhasuf2RHDaChCgU3UCe9qrp5U8B/8CffyR1 2L7w== 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=XdOtrub1S9PyK3Of9msYB/6KGqYXgpPYDD/KQybr13o=; fh=UEYgv4rifacS13S/IeLIl7IT/RAP0upDkvEvPrlMReE=; b=XMDIwQv2wsD/IWAnUVK6a5v+u8TPOfz4FbkJI+4yBXaa46nYpH/NA/9V9zVeyCmhJ8 ygiGGHyc9ORDRD/65j2fMziYPUpe7LgU/Z99YC58ZC3C3mda4EB1UmZ2cf35Wal+LIK9 uI5CcAurNebvNJof1SfJpLcMoOgB5jOj8i6Q8ceiK9qo3OBZYXqlrh8Aflkhv+9mUVtH zT84Zctm/gEM4/B1nOiuhqCVPNjCVby9qHyqSpHdYleDMPKFePJ4G4e/j8LkorRvupNd wIgO4UKp6dNn0E81HfwiNCnmAC+Jevv0hA/BkvG3X1mc9PFGfNVC+GjtoNUt9pyzPdLk YaDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aMhBDJp2; 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 t14-20020a05620a450e00b00767fb4a3ff0si928231qkp.532.2023.08.31.05.58.57 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 31 Aug 2023 05:58:58 -0700 (PDT) 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=aMhBDJp2; 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 1qbhF8-0002tI-UR; Thu, 31 Aug 2023 08:57:54 -0400 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 1qbhEo-0002ef-1s for qemu-devel@nongnu.org; Thu, 31 Aug 2023 08:57:30 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qbhEg-0005CE-PT for qemu-devel@nongnu.org; Thu, 31 Aug 2023 08:57:29 -0400 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3fbd33a57b6so6960775e9.2 for ; Thu, 31 Aug 2023 05:57:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693486639; x=1694091439; 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=XdOtrub1S9PyK3Of9msYB/6KGqYXgpPYDD/KQybr13o=; b=aMhBDJp2m1IsfWWNidkZRakyhpS0YH5OC36yEBaEA+F7V8+YPTe0YaDey/LKO+n/Sp 1PuX4AG++droWT+ElFFWh8S4EiZuCjNFHxkf10KWLxjqYFtvkdWvUxCy/TxFF672loaU AD9kCUZy+uQlv+YlE0uvp70ZgEXmcjNiu+nqcJT9EhAGA2jq9YUGrTsMTqvcOlmm+Ne5 Fz9/tgH3exrDUGc6038YRDpwAy+YC4KJRiXjUFBBCMXmjjiVonsC6GG8Z9eB2JTY3HaG utHmGsOm7JZWX0cmTo0CoT/9BT4C+xae7Q7ngxzSJNJM6bKt0WMIb/up912jz4J/5SDW ng1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693486639; x=1694091439; 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=XdOtrub1S9PyK3Of9msYB/6KGqYXgpPYDD/KQybr13o=; b=RD2hu2g/JU/HPWdlMONSuEBYH6oBvMe7Chv/Xgjs1YXkn8Dr4A0pNJAvUZ6zgiEuy4 /joGvsJirztDDkVid+ue32jhbz0/UzMsWylBhJnx/nXJwQfS5NxDzvuuuCviRzdqjR5Q +s2gYmtg8veT5gr6IwsxA5uweJWTflVLXYGChvcfaxtO3nieAFgVwH0qqo1nHDDYd2jA 3ekd0qw4POdKyaJFjy/PdBVfvpR2UQRsgI7adgvBYQTrtkslPGpdgztdMyLkQinCIr/w rDA5PnRe0sE4FZPUsvNneeccfCiFmx9FZpRsOVz4C1PXFKVW/1xdin0iRMcRCnc+uN51 avIw== X-Gm-Message-State: AOJu0YwwzXgOM8Qy8cTk7JqE210YLuHn9tJLEbJZa1z/zi64VNl6XmtN I8QX1jMod2UXc8xqGymg6fQwwq7NJin8qfimmjg= X-Received: by 2002:adf:dc8b:0:b0:31a:dd55:e69c with SMTP id r11-20020adfdc8b000000b0031add55e69cmr4260280wrj.60.1693486638982; Thu, 31 Aug 2023 05:57:18 -0700 (PDT) Received: from m1x-phil.lan ([176.187.199.245]) by smtp.gmail.com with ESMTPSA id e5-20020a5d5945000000b003197a4b0f68sm2186305wri.7.2023.08.31.05.57.17 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 31 Aug 2023 05:57:18 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-s390x@nongnu.org, qemu-ppc@nongnu.org, qemu-riscv@nongnu.org, qemu-block@nongnu.org, =?utf-8?q?Philippe_Mathieu-Da?= =?utf-8?q?ud=C3=A9?= , Richard Henderson , Helge Deller , Jason Wang Subject: [PULL 05/41] hw/net/i82596: Include missing 'exec/address-spaces.h' header Date: Thu, 31 Aug 2023 14:56:07 +0200 Message-ID: <20230831125646.67855-6-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230831125646.67855-1-philmd@linaro.org> References: <20230831125646.67855-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=philmd@linaro.org; helo=mail-wm1-x32e.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=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 hw/net/i82596.c access the global 'address_space_memory' calling the ld/st_phys() API. address_space_memory is declared in "exec/address-spaces.h". Currently this header is indirectly pulled in via another header. Explicitly include it to avoid when refactoring unrelated headers: hw/net/i82596.c:91:23: error: use of undeclared identifier 'address_space_memory'; did you mean 'address_space_destroy'? return ldub_phys(&address_space_memory, addr); ^~~~~~~~~~~~~~~~~~~~ address_space_destroy Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20230619074153.44268-2-philmd@linaro.org> --- hw/net/i82596.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/net/i82596.c b/hw/net/i82596.c index ab26f8bea1..6defa9d3a1 100644 --- a/hw/net/i82596.c +++ b/hw/net/i82596.c @@ -15,6 +15,7 @@ #include "hw/irq.h" #include "hw/qdev-properties.h" #include "migration/vmstate.h" +#include "exec/address-spaces.h" #include "qemu/module.h" #include "trace.h" #include "i82596.h"