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" From patchwork Mon Jun 19 07:41:51 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: 694003 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d91:0:0:0:0:0 with SMTP id b17csp2250167wru; Mon, 19 Jun 2023 00:42:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6W/j2e0Ehp7+YzFKCWPnXBtkkGjZzefj5b2keZaGkzXlkA+3Lr7r/NeABzS7HpIR4IS8Xn X-Received: by 2002:a05:6214:20a4:b0:623:690c:3cd7 with SMTP id 4-20020a05621420a400b00623690c3cd7mr3686849qvd.47.1687160576326; Mon, 19 Jun 2023 00:42:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687160576; cv=none; d=google.com; s=arc-20160816; b=UBGBxJs7qnTV82sc7p/84BZUkk+IITMOk6tG46YDgj3gf+hqQwjTQrC0yOlKZf+FE1 PCllu6IdKikeRFhV6UlskJQWeiSyvVsEqwV0glxBappH/pjCQFdqCiCU8tLevzWvfOXJ VWOEE79J5CbwwMHkONyfEKjoLgz0fSTZbK1iMGs6SdLGSffz/zRb5D9WCFb8pIXmV3jT bovF9qNaKQw+SC9NI2CaELw2redwlVTLarp2ir+uqUSbN9hx1EyZd1AboLiJblzvek1F afG6QN0vgSxxAePuCLEFYIVv8RX6ymkyrxkmqizS3bSM6k1u4QJ6DqP5Lf/Slk6GKGpS 4LQA== 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=YkXthOPn4E1631VSOfPiqw4sZJp9rt3aVw83F1yxbyc=; b=o2bpras/hcY7uZ8H0d8b2tsg9hGg3Z+9WQPMMUOUY27d5l12BzScob4ImdcJAfTfIc xsuFxVFNZWQ1+m+DdwCDo3bhKmKBOJ32ndhCJqTTvb+CdvDs1dCVsYNj9wQE/z2mPzBt 3ps9RB0sLW9mTtCVrMHJc+5+HW8D6auMhg4HoWgtJp8+e3aplQRoWWvOr37vljA+6YX9 dgy/n+bRUn4du7+YB7KID7BXaFs0iuoA+deVC/2W2+MGgN7FrjXsGXrgOXIRbiRWoeCQ Uvi0afltRRWNQHzdfrovzhhjkYvRO9UYp9FbFuv8l3+hhT9qQ6Oo4QnLK1I9rr3aGIfG T7Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mzlfo3m5; 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 q11-20020a05621419eb00b0062df3f20a48si7142232qvc.376.2023.06.19.00.42.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Jun 2023 00:42:56 -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=mzlfo3m5; 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 1qB9Wf-0006eC-Dn; Mon, 19 Jun 2023 03:42:13 -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 1qB9Wc-0006df-VY for qemu-devel@nongnu.org; Mon, 19 Jun 2023 03:42:10 -0400 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qB9Wb-0004OS-HS for qemu-devel@nongnu.org; Mon, 19 Jun 2023 03:42:10 -0400 Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-3110ab7110aso3084111f8f.3 for ; Mon, 19 Jun 2023 00:42:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687160527; x=1689752527; 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=YkXthOPn4E1631VSOfPiqw4sZJp9rt3aVw83F1yxbyc=; b=mzlfo3m5LYpvP4ytqd3u+umd3HUv3UoWTWvc+meiDxyIoj/bv6hlN6Se8YNnUVIEhR mx8ASvJWiAsEUqzZy5j+O4JwN+S+kRZU9g5SsK3aCw7Tw70pTYHokfMArDu79E8TQYBY hWNke8QI58l9K/UoHtT1hk89d1oFLoqQNrqL3k5x8no9HpYcrFSDB2d/ipK9wZN1pjxz /Nmex6QU/WLFXdmahMWe2jdHg2jhJNDeCdfAHITmr5kTSY7FUMJzmPkQYv6pCO8Cyolx VU+yfzB0KOuy5S5JplBAs09oZ/INK9XJrtiycK8Yb72XlTNLkSwNLC+qGZcWZs0FQVra 2Gfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687160527; x=1689752527; 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=YkXthOPn4E1631VSOfPiqw4sZJp9rt3aVw83F1yxbyc=; b=hmwF/LsL8veD5PUbkpw0lmu/aqN4AqIUQ3QfVWW/ILVimcPGNf2eDUFLhqsGCSr9Ea BdpgUH0Ob+N43nPA5H8pR8V4GPwhFx41HsuwFFQk4FFDvBxdaNGQOJKFjYo02s5S9nuT SkHVMDSj6499tkVhfXt2igw0e5NHcJ1+58vCjGmZgVg7+m5+1DJpm8edW/V5oHepXdgY 3F3cdnjy7tAzFgeBBwxsf7yoMFXp6groljRaQAWl4koDpUV5DJn39s8oJOO09woSh8Ql 12AQKrR+XVSf7UEW+fjNeD/q0KqjNEHZOTURtvUqqPtky8RT274Pb4W90byXQmRgHcS9 4O3Q== X-Gm-Message-State: AC+VfDzahCoOt0lMVJyhXvy+h6CuCQJWFHFq4xOjrDCubyedUZRnYHty KxhWRZGFjLKDuas7kV5lvIYguKMxMXUIje7Mg/tFJw== X-Received: by 2002:adf:f04c:0:b0:30f:c2a3:6281 with SMTP id t12-20020adff04c000000b0030fc2a36281mr7297532wro.64.1687160527690; Mon, 19 Jun 2023 00:42:07 -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 n6-20020a5d6b86000000b003111cbd8009sm9334752wrx.97.2023.06.19.00.42.06 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 19 Jun 2023 00:42:07 -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 2/4] hw/dma/etraxfs: Include missing 'exec/memory.h' header Date: Mon, 19 Jun 2023 09:41:51 +0200 Message-Id: <20230619074153.44268-3-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::42f; envelope-from=philmd@linaro.org; helo=mail-wr1-x42f.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 The 'fs_dma_ctrl' structure has a MemoryRegion 'mmio' field which is initialized in etraxfs_dmac_init() calling memory_region_init_io() and memory_region_add_subregion(). These functions are declared in "exec/memory.h", along with the MemoryRegion structure. Include the missing header. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- hw/dma/etraxfs_dma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/dma/etraxfs_dma.c b/hw/dma/etraxfs_dma.c index a1068b19ea..9c0003de51 100644 --- a/hw/dma/etraxfs_dma.c +++ b/hw/dma/etraxfs_dma.c @@ -28,6 +28,7 @@ #include "qemu/main-loop.h" #include "sysemu/runstate.h" #include "exec/address-spaces.h" +#include "exec/memory.h" #include "hw/cris/etraxfs_dma.h" From patchwork Mon Jun 19 07:41:52 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: 694002 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d91:0:0:0:0:0 with SMTP id b17csp2250115wru; Mon, 19 Jun 2023 00:42:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ486uI0rYzct6jso6G40cmnm6DjpxqC2WxULaS9Qbu/vtBdHRSIirIg5NU4PBu6o9fyphjH X-Received: by 2002:a05:6214:23ca:b0:625:83ab:8a42 with SMTP id hr10-20020a05621423ca00b0062583ab8a42mr10161336qvb.46.1687160563029; Mon, 19 Jun 2023 00:42:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687160563; cv=none; d=google.com; s=arc-20160816; b=pBL1MQovQuk8jbQSLg/Dk/dL4KyP2jgsYYK56Hlx/YL/6v8E2ICQ3+vwUzHYP6fQNZ Q29kLhLBehqt4tNPzvOL3xbK05dmk8E4bF4EGpFY6HktGm6FGiakNmAcfGtdii3VTo3k LdWiQnP2ryVXxu3Xu9ggOs1oX5DDAaFPAMjmHkw0ecDZpldZf0Jh9hgE02RdvoonOOyX k7DGl8N88BHtqFlXaq9YiWQNHZNXP+PAH+SvEtffkreF72Nbp6ZWblgy3QAzGe4xiW/+ dCJYuwTGHcVEZCQ4IpvKrUC1gV6haDZ5ylbScbsAsUvjKTVaPG/WEnEf78hH20SMy0jH IYJw== 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=BT5WpWOETZMXxgChaA/hO32lYMuyGzMiCBmIgxW1Frk=; b=CkMwYV77whFPzkKpesgWLfBxomtY1PdL6wgzDIrSLkInVynrzp46RHURgmtXn7f4Tf yPJ1VBR0zMk9BzddY+GvatZ1XOhhzehXu3kNIifj2BqF0pPEIjLVah+XNRlhFVB8LrlN 8ORl4Mro2A/PdbgPAzTZzOXaScOmbIWvLgolFLT5KPoyS5+lC9B+qDqaWd2ZYcoYw/sd l3jxNVwo5OxMe4y3yTfmutCzXX1bUmlG5EMcrTaZjNhtTMooLYRb3sO7eUs4ohm4+TOe dK/HD3U8m3eljBY0LHSXXNPn1eHymfFkA0P8/Cj+sNm3v+O0JG7LbiiCIpl8ZNGyMQLb HiIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=umUk00Nv; 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 gy12-20020a056214242c00b0062b6f9e8b7bsi13474860qvb.423.2023.06.19.00.42.42 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Jun 2023 00:42:43 -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=umUk00Nv; 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 1qB9Wk-0006eZ-1o; Mon, 19 Jun 2023 03:42:18 -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 1qB9Wi-0006eJ-Bx for qemu-devel@nongnu.org; Mon, 19 Jun 2023 03:42:16 -0400 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qB9Wg-0004RP-Np for qemu-devel@nongnu.org; Mon, 19 Jun 2023 03:42:16 -0400 Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-30adc51b65cso3186555f8f.0 for ; Mon, 19 Jun 2023 00:42:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687160533; x=1689752533; 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=BT5WpWOETZMXxgChaA/hO32lYMuyGzMiCBmIgxW1Frk=; b=umUk00NvLphY0IlIANc5KbQE5bhlJwwKeZcl4fyhJ+EZSz23anx/rnx/RicmWgOAN8 vKdUKaJ+cygAKh8Ag5pABbRBT6My4hLE+VguA6+tWbYsttlF8kUYD9Yv6hJiNOBRF8te MbDEnFWFo2Ll5DnZXAhoXpAj27yUPDZgr9aBArCoCr5Uv+be4fVQtozKE738Gcz5RkRx VAocvAr6xuBWwkmL6iGs/iQSSR4/6yq1FwslQ+NPlwNGNFzkUoJwWsDAUr1eLGci6QwQ ytOjpInInl/HGD7j3iPmU/+pQkNwflfEf9Q71ElIFMPoMRbyBKW8PJfkIQewv9zxyywf Z28Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687160533; x=1689752533; 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=BT5WpWOETZMXxgChaA/hO32lYMuyGzMiCBmIgxW1Frk=; b=N618W5DyUcqbT2P68gEUPCgtlPNytaDUEyD9xUpLlemzKc3YpG0I0mALEzxFmuFOR/ x7vo4eXeuYmofBvhFC2xiADr+EnrQ+RbGN8wGVLSbLZuCmHEXUFphgcQugKFTLeOCWTl 7LXefcPOWQmfO9ILsDCdAFP/LjEBRqyS7s/SESoFoIxJI4FSjCFgJGQkoPx2nlzycByb DdMbzSjIxc1p+0aHM0Epnokq+5Fpg+9JY1xI2+1Mo6UuP2ehDMtIeAAGw4jf5Jwv5lQp EbCOkThXEe2MQerjTJ/gQs2SFHgspt36fw9TU/RVKTX0PRRAZjZ5eDWNgSbNBBHsR9my /yJA== X-Gm-Message-State: AC+VfDzCDD12lUsRObu/LD+cooOgk54JlUQs3l3xWSrJ5dlUYaR6wXlc Qpr9yyh71xU+AYsPh/6tGZnjQLITiiUlZI+AxSHo6Q== X-Received: by 2002:a5d:668c:0:b0:30f:ca58:cb10 with SMTP id l12-20020a5d668c000000b0030fca58cb10mr9968812wru.22.1687160533141; Mon, 19 Jun 2023 00:42:13 -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 t1-20020adfe101000000b0030e5a63e2dbsm31033657wrz.80.2023.06.19.00.42.11 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 19 Jun 2023 00:42:12 -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 3/4] exec/address-spaces.h: Remove unuseful 'exec/memory.h' include Date: Mon, 19 Jun 2023 09:41:52 +0200 Message-Id: <20230619074153.44268-4-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::430; envelope-from=philmd@linaro.org; helo=mail-wr1-x430.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 "exec/address-spaces.h" declares get_system_io() and get_system_memory(), both returning a MemoryRegion pointer. MemoryRegion is forward declared in "qemu/typedefs.h", so we don't need any declaration from "exec/memory.h" here. Remove it. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- include/exec/address-spaces.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/exec/address-spaces.h b/include/exec/address-spaces.h index db8bfa9a92..0d0aa61d68 100644 --- a/include/exec/address-spaces.h +++ b/include/exec/address-spaces.h @@ -19,8 +19,6 @@ * you're one of them. */ -#include "exec/memory.h" - #ifndef CONFIG_USER_ONLY /* Get the root memory region. This interface should only be used temporarily From patchwork Mon Jun 19 07:41:53 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: 694006 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d91:0:0:0:0:0 with SMTP id b17csp2250219wru; Mon, 19 Jun 2023 00:43:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Obs2HbegNACfU9cK5f+YrGy/LlBQL8ewUD3UJE1cI6hpYXprgdltfcsEYXQxGysrENa8U X-Received: by 2002:a05:622a:1707:b0:3fd:b358:14a7 with SMTP id h7-20020a05622a170700b003fdb35814a7mr10539836qtk.49.1687160587749; Mon, 19 Jun 2023 00:43:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687160587; cv=none; d=google.com; s=arc-20160816; b=DExFdtVmndwQpg2zxOSbEQgIUmkiAlguHLH8Cf7L+2DXCC1JofBJjz74kUxKW42t2x IUzJDCO9YIDN8iwymLCguST19oqV7nzGao4B2vWWtwgSQSZqloXhvxk8DeXJ7ukZbH9d 7SqdMY8U18fCRHgKO+rBa8LctnxDy7rtU6GZnTZQaP6HRGB4IRJSyYF70Rbnpr1y2lLO KcLWJrm+PfoktGaSNA/vCgk9KKPYEjbUWTtv+bJGB4qq73aF+ZbMI8GPtWLBQNTMsRSF z8FH5amPpnIiAwlgdb5alGTDuyZjIzl5J655Irse+0IOjSYm/1qFHdEUgc7TYHTmwv8E CI1Q== 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=qnwofEvBkK7OFlWxUNT5Ph9UIp0ImxIpuwb9PIhQ0Pw=; b=FJ/tZxSpl+BFqH0trooeFMCsVcfvzfn8O7Dg49JpIdKzxa2rifztJps0mlJ310zbEW I4WWVJ9mQmMYTG/Fb5EVpJhN9dWfKTDEHq2OMBUaTWpffJcOkk/71FXYDcDNODmhGnh7 mGGUYpukzn+8oVg6AraDvbu+lw7lEkNdb/e2c0R6kmqW67XI3NualX57PGzwygb20wZd aQLpH9M2v1etMw4IweIs60ybZlJeLyJV8jNJXo4S9Y87nNrIDV9w5LgEynCHYMhCT7ow 6QAe/FhXhP5OnifL7zpoTz06dTQimJty8hK8mVx6vS2xXI+i0BStuaAWnIu9pvDq2sZg /BGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EE51AOLw; 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 e22-20020a05622a111600b003f9b941e26asi13237824qty.663.2023.06.19.00.43.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Jun 2023 00:43:07 -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=EE51AOLw; 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 1qB9Wp-0006f9-Lk; Mon, 19 Jun 2023 03:42:23 -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 1qB9Wn-0006ew-Vf for qemu-devel@nongnu.org; Mon, 19 Jun 2023 03:42:22 -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 1qB9Wm-0004SJ-IA for qemu-devel@nongnu.org; Mon, 19 Jun 2023 03:42:21 -0400 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3f90b51ab39so15593415e9.1 for ; Mon, 19 Jun 2023 00:42:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687160539; x=1689752539; 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=qnwofEvBkK7OFlWxUNT5Ph9UIp0ImxIpuwb9PIhQ0Pw=; b=EE51AOLwQ4vmbXoxwULbpzEAfT4nyAiurvU2yp39ByQgEXy0UKU7cnjCHdLEL0BvQP +6ReLwVlYfrLAZP9QUhirZaUU//1i1pJ5u5u3j49gbnHBSxe2mtVKwq3A0D3SQkyOQNQ 2DhJXaFbkSpktv2h3yn4I0bChGkrqy7EOFFrAwH9eO41jBAoI+YS10X9Bsd682E9gk4c PLNGuCeS+Nx9h39sjMeOo2I0boySxK8xc08KTjdu4eSBFYlwJuMAe9YfOpTsVHDOhJaS YUicW8uWn0KYHl5xgQRX/sq+uflnQjGG8EZhzkuQVaGI1bNCIpl1NTHkBHYexPzWUTmD o0rA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687160539; x=1689752539; 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=qnwofEvBkK7OFlWxUNT5Ph9UIp0ImxIpuwb9PIhQ0Pw=; b=OiGE52HsR/rrqOiXEAmzR55i+XXlIl+oithxbgN8/FQyHWIQApodFhlt5rHpJnbGzd mPYjcfeFFKiSGCcv+dyigB8CdS6CeEVXBeqVl+qtSg700tz0aGPIXj0tArF1PoqE0WhU ZFTcz//lUZbqQOC+h5hGNoB2d6FOOgt/SekSW1WGSUfbi/KXI9t7cc8WtXUyaRVDnXtH KUVt4OCaV04OE/3gShqnKpE3/KKv9yk9XHPqdT8StiKditdKhGW1eilNQOdSNdJBgtX4 RXe4Uy1fRQ9rXn5NmK3XXdzKskyXmas/UV/QBdpivg6XIGtx59uXQEe0fmp5rlKpc88a DTiQ== X-Gm-Message-State: AC+VfDwn3RcrZ7iRq7ImAqnMyqZzxIIQjlV+ErSe/r8HepaAq/q7vQo2 HUiHgOR66lxBpRDb4ASiIdXmR/+fCRywITEDCCmBPQ== X-Received: by 2002:a7b:cc8d:0:b0:3f7:3937:f5f2 with SMTP id p13-20020a7bcc8d000000b003f73937f5f2mr9607638wma.22.1687160538850; Mon, 19 Jun 2023 00:42:18 -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 v18-20020a5d43d2000000b0030ae93bd196sm30567287wrr.21.2023.06.19.00.42.17 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 19 Jun 2023 00:42:18 -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 4/4] sysemu/kvm: Re-include "exec/memattrs.h" header Date: Mon, 19 Jun 2023 09:41:53 +0200 Message-Id: <20230619074153.44268-5-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 Commit 1e05888ab5 ("sysemu/kvm: Remove unused headers") was a bit overzealous while cleaning "sysemu/kvm.h" headers: kvm_arch_post_run() returns a MemTxAttrs type, so depends on "exec/memattrs.h" for its definition. Fixes: 1e05888ab5 ("sysemu/kvm: Remove unused headers") Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- include/sysemu/kvm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/sysemu/kvm.h b/include/sysemu/kvm.h index 88f5ccfbce..528966b5a8 100644 --- a/include/sysemu/kvm.h +++ b/include/sysemu/kvm.h @@ -14,6 +14,7 @@ #ifndef QEMU_KVM_H #define QEMU_KVM_H +#include "exec/memattrs.h" #include "qemu/accel.h" #include "qom/object.h"