From nobody Sun Nov 24 00:17:40 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=quarantine dis=none) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1725619137; cv=none; d=zohomail.com; s=zohoarc; b=bN13/jWBLMDUjxrDo2mneDrA/y5iRQ2PUgpH4zOKqRl4/4H8d1m6OAfLmtnNvRBpU2UyGK3PJyKO5oo3Axi63y7zpw8VW13VXVRdB5WS4lh1+92sNrqpzhASuQ+jlcbmRwhCpCe5KEijpjDc929jLYT9nemBWJSbYhrni0eKpuk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1725619137; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=etMwq5Fwlf5FAmahbSIFeIv4jQ0dRX1z7sgTVhqsf1M=; b=K9MksoCBgQ1FgSXl8qr4e9ffVIszVCfL1OufBDHsnfFsQHs+iSEsugOaCrPt9AjldD6k7hcCCjsNxu1zBh2JbXdj/E1WPcosUHQndciYYxZqGMBCar61K+5X9l88jUNZOwg5NPZBZVWiVzJUs/kx4n4wOKsSMyf1BKPSo03akW8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 17256191377291022.6621795737839; Fri, 6 Sep 2024 03:38:57 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.791709.1201667 (Exim 4.92) (envelope-from ) id 1smWMM-0004HQ-Ou; Fri, 06 Sep 2024 10:38:34 +0000 Received: by outflank-mailman (output) from mailman id 791709.1201667; Fri, 06 Sep 2024 10:38:34 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1smWMM-0004HJ-Lw; Fri, 06 Sep 2024 10:38:34 +0000 Received: by outflank-mailman (input) for mailman id 791709; Fri, 06 Sep 2024 10:38:33 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1smWML-0004HD-8b for xen-devel@lists.xenproject.org; Fri, 06 Sep 2024 10:38:33 +0000 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [2a00:1450:4864:20::52a]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 295d2800-6c3c-11ef-a0b4-8be0dac302b0; Fri, 06 Sep 2024 12:38:32 +0200 (CEST) Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-5c3c34e3c39so2765292a12.2 for ; Fri, 06 Sep 2024 03:38:32 -0700 (PDT) Received: from [10.156.60.236] (ip-037-024-206-209.um08.pools.vodafone-ip.de. [37.24.206.209]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c3cc698f69sm2305054a12.71.2024.09.06.03.38.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 06 Sep 2024 03:38:31 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 295d2800-6c3c-11ef-a0b4-8be0dac302b0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1725619111; x=1726223911; darn=lists.xenproject.org; h=content-transfer-encoding:autocrypt:subject:from:cc:to :content-language:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=etMwq5Fwlf5FAmahbSIFeIv4jQ0dRX1z7sgTVhqsf1M=; b=WF+/EJbQYXD08xfVln12Tu3Mu5e56cyRcoM+bCdjM1ImOSuWYbkRPMzBGyWX4KbxNd y1riozcu4KmvcZg7G45DxRQ5awBEKH4qXHFFBupilC0c5vEjWgfLI8JI4DQwIPtbqkDx pINN0IRMReXQAJuLK7gLsqAtywihmedklUZCosNVjaANq6E8nSN/eAhExiyUBVBpRCve vIwTzuMyRd/QWS6n4df1F9k9EiGbZSbfGEdE9o9hYvOPLFqmH707C46WC+yIgDfGDSme xgo5EwROWfIgsSsgLHRQ5BOi9OcxzrGI9k80x3hsvyAn3o0hFfqmbfOgGyEwMScSZfIO upFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725619111; x=1726223911; h=content-transfer-encoding:autocrypt:subject:from:cc:to :content-language:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=etMwq5Fwlf5FAmahbSIFeIv4jQ0dRX1z7sgTVhqsf1M=; b=MEhac48PNCtq7kQV2WdWNJJbv+q1UI3rdjTFLMrybL9eCvcrA7s3/Pr3NcnVbF14Yb MBY5WHOhamSlNvQa7KNHq1XkrmoY9ZdaaFwOVFfuI8RMH0wBTGU7jRCV2hFvqklHLcVN W8OOEf3ot4JtgfneWYqhM9W1VIZst/nen+W2DVqmB+x8sfB7fYhUZeCLcUDz9CWXTbkP 9F/ZaU2RytfsLXLB2eH3IuM4zyHu5QwUFhzGGPKLkWLbxBuKPdo6O2M6GQ46eEV5HJ0R D3zI/qGGNuIyyPMOF7tl3UNzuknJiUT3zEUTqUbRWzo5d/eEJpJiHwb8js9WhW2/glbB jgLA== X-Gm-Message-State: AOJu0YwQgsAx2sucIgZbzujwLJ1rQ7+3GyZAT8Q1f+Q94xBtlNRku//m hbhq5HzGuAoMwOBZZTpDv4/dM0R+8at5iLQ7bnJjIW0o4X0IYJgO4T/lasqJsRFqJP0TiV9IxkU = X-Google-Smtp-Source: AGHT+IFaRL9cKCccaIXYRF7PVA+tfD+NSCwerFVgwTfapvv77qfHnvwOzq4UyTOvVkqojJj1A6Yytg== X-Received: by 2002:a05:6402:5285:b0:5c0:c223:48a1 with SMTP id 4fb4d7f45d1cf-5c3dc799afamr1405716a12.21.1725619111391; Fri, 06 Sep 2024 03:38:31 -0700 (PDT) Message-ID: Date: Fri, 6 Sep 2024 12:38:29 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: "xen-devel@lists.xenproject.org" Cc: Andrew Cooper , =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= From: Jan Beulich Subject: [PATCH] x86emul: mark new "cp" local var maybe-unused Autocrypt: addr=jbeulich@suse.com; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj2XbGWIUrZrd70x1eAP9QE3P79Y2oLrsCgbZJfEwCgvz9JjGmQqQkRiTVzlZVCJYcyGGsD /0tbFCzD2h20ahe8rC1gbb3K3qk+LpBtvjBu1RY9drYk0NymiGbJWZgab6t1jM7sk2vuf0Py O9Hf9XBmK0uE9IgMaiCpc32XV9oASz6UJebwkX+zF2jG5I1BfnO9g7KlotcA/v5ClMjgo6Gl MDY4HxoSRu3i1cqqSDtVlt+AOVBJBACrZcnHAUSuCXBPy0jOlBhxPqRWv6ND4c9PH1xjQ3NP n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i+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @suse.com) X-ZM-MESSAGEID: 1725619139346116600 Content-Type: text/plain; charset="utf-8" Just for the sake of the 32-bit build of the test harness. This wants reverting once unconditional uses of the variable appear (AMX, AVX10). Fixes: b20e3fbc3ec9 ("x86emul: introduce a struct cpu_policy * local in x86= _emulate()") Signed-off-by: Jan Beulich Acked-by: Andrew Cooper --- a/xen/arch/x86/x86_emulate/x86_emulate.c +++ b/xen/arch/x86/x86_emulate/x86_emulate.c @@ -1233,7 +1233,7 @@ x86_emulate( { /* Shadow copy of register state. Committed on successful emulation. */ struct cpu_user_regs _regs =3D *ctxt->regs; - const struct cpu_policy *cp =3D ctxt->cpu_policy; + const struct cpu_policy *__maybe_unused cp =3D ctxt->cpu_policy; struct x86_emulate_state state; int rc; uint8_t b, d, *opc =3D NULL;