From patchwork Mon Jun 19 07:41:50 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: 694005 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d91:0:0:0:0:0 with SMTP id b17csp2250210wru; Mon, 19 Jun 2023 00:43:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4fO//q9LC78z9N3CbBcCDGFawYn070W03Mj19AWmYd7zslZcFVxoA2yBtKdo/D/pMEb4XT X-Received: by 2002:a05:6214:491:b0:630:2e1:d555 with SMTP id pt17-20020a056214049100b0063002e1d555mr9087141qvb.44.1687160585755; Mon, 19 Jun 2023 00:43:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687160585; cv=none; d=google.com; s=arc-20160816; b=LYqRL/7MpbjqYIjPHV5NgAv5GLlMvUEo4fsquL41IKBvaCG/1Tjqm0bqcG3wvn5+kS N1NHozZB1MP5O29P/VTSHfmVnbV6zPnJsoWkyC0h1i0BVX9WX3q9k/D4fMllb2wIHkl3 n3YRlEIZR6aR0RGJRNBFZfjfw87OiB/Zdu5xDuOiN2/lPTDeCrofjJ4hMuo0ThReMZhg g0RGoujyY+gM7qRWGlTYTQFgKIvuEnzeR4r6kIZC+04cjdvZwStBsxV8D4ulM+iWLIN6 O5j/E22UmEepPZdaiO6ZPMLtat8UYe5p9KzYyrLY0D+N/B6pyi061eOs4tG7JlUjGE+B aKvg== 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=KL2PYuIs1BVHjdvTGwm0sXveXI5cCApLPfoCdqJW9L8=; b=xTrckGft02//zg7lqMFYHsmobK59MxkmG8XF4IgB4z+zizDVm3PyNvX7YD2ZDdGLs/ iJlEaHunR1gFluSc03a47q5zMxniN7DaHMHuHUg6bE4BQH27XATrjgPLoiCUi/nsHLoB JBaAE8t4/khnhTHBpgNcAJNcFXbZ5nNDlYQsUG30UA/N+ohhtX28sjahoH80RvBf8bDu JsOvqiLUmZJAjkXSL2qGf72rSG6DegXVOg8lz639eY+7c1soYyZFUt5kousRFhicASgk 2+NMv+S2ipkq3keBSxxNFp7SlczOgxsnVCWMJdgIT16H3gSs2U77I1hThxq5Vc2CG/Tw paZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fWsyd2gg; 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 5-20020a0562140dc500b00631e66ae22esi206558qvt.452.2023.06.19.00.43.05 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Jun 2023 00:43:05 -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=fWsyd2gg; 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 1qB9WZ-0006dL-Ks; Mon, 19 Jun 2023 03:42:07 -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 1qB9WX-0006cp-U4 for qemu-devel@nongnu.org; Mon, 19 Jun 2023 03:42:05 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qB9WW-0004Lz-FG for qemu-devel@nongnu.org; Mon, 19 Jun 2023 03:42:05 -0400 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3f8f3786f1dso34314315e9.2 for ; Mon, 19 Jun 2023 00:42:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687160522; x=1689752522; 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=KL2PYuIs1BVHjdvTGwm0sXveXI5cCApLPfoCdqJW9L8=; b=fWsyd2ggatUTsIkjcwt5g1ZFmfbEYT42HpkS7K9Vjb1M1J28yMN6FBZOUOdi44fhFg xS0RUZvl5bZWbYbk3m8JXNMo4W0Gu33O2eIg0Gct8lhXlmVOl3eHEgJjM5RhScMjqJU3 cx5seoqpzZi3GyiSTavTvlu1xp0vWECE65z8xoBFESVRvWiJ8LL9cQwi2yd1+C0Di3PB 2+JXhcWBfwI7somsJ3co4ABECoq9uGUHOZuK9prd29JPfYXri2IU/lfyYKPzzokD4Fdm UmirV6yTdr3aEUilCwlVaXC20kNAcghWzLCShHzAYjqxnBhnSD7kA+qMKQZQ9xloimgt Mi9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687160522; x=1689752522; 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=KL2PYuIs1BVHjdvTGwm0sXveXI5cCApLPfoCdqJW9L8=; b=EotKvcx/+lIa7IkL8ug9yb2nz33lJJiGMtRFwtMd9Ol0SeEsRbkly6LU2Pu37loLgM esRWX3D+GqW5bUaMm3Abvz2uE7sN1+50D1XqV06QTs+JjXuFp5PRc1tU1+1VGsmFeb3l bMd3to1j5mFy7FgPyW5OpY8+WNrBvdSmQqo3vtzWJY8s+sTJGaq7kH4fUJNOGlJxuaUc ZiopsXXnbQyIVqVjTOmmul1IxBpy5smNcFqHQLDC4Snneum7ACOxOlKZ+DBINwfFCKID fyYbbqMrQPakB68ACa8lAckPN7miikDSr4PvRZr3nJytahD0CN0a7Kkh1m0k1geriqH0 hstQ== X-Gm-Message-State: AC+VfDx3tswUQlrvgfe3erXbeXeeQ75CaDIQ5p9YnZihoDgXeUf7IU27 uk0lVw+rZ4FjWMSPcyf3oo9CT0O72AgOkPBDWmPBAw== X-Received: by 2002:a7b:cb56:0:b0:3f7:e48b:974d with SMTP id v22-20020a7bcb56000000b003f7e48b974dmr10200835wmj.27.1687160522051; Mon, 19 Jun 2023 00:42:02 -0700 (PDT) Received: from localhost.localdomain (194.red-95-127-33.staticip.rima-tde.net. [95.127.33.194]) by smtp.gmail.com with ESMTPSA id e6-20020a05600c218600b003f9b3588192sm704769wme.8.2023.06.19.00.42.00 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 19 Jun 2023 00:42:01 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: kvm@vger.kernel.org, "Edgar E. Iglesias" , Helge Deller , Paolo Bonzini , Richard Henderson , Jason Wang , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 1/4] hw/net/i82596: Include missing 'exec/address-spaces.h' header Date: Mon, 19 Jun 2023 09:41:50 +0200 Message-Id: <20230619074153.44268-2-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230619074153.44268-1-philmd@linaro.org> References: <20230619074153.44268-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=philmd@linaro.org; helo=mail-wm1-x331.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=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: 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 --- hw/net/i82596.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/net/i82596.c b/hw/net/i82596.c index ec21e2699a..9b9e3aa792 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"