Message ID | 20241022004710.1888067-2-rananta@google.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7B99ED1714E for <linux-arm-kernel@archiver.kernel.org>; Tue, 22 Oct 2024 01:06:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:Cc:To:From: Subject:Message-ID:References:Mime-Version:In-Reply-To:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=eTpDcLprhbUi5YHe62ZQ4u0o+/QxbhbJTnRiVU+yROI=; b=YfZDYGJ2c9yY/kXkCW3pL5jChm fc3bMzlB3p32eQm+s45Kq6D0oNoh2KzNY8bPy3kg69Ex6kWnWsRQWDO7XE5sxHAuoS0zT9H5ews1j f6stLfWaFNv+LtfrQdil015mKB1AqSA4Y6xqDxTRfxsiOIe6OI3ogHs1F2XKCpsxHWeEcqWxse/91 nKhTkqYsOcbWJgIkRGu800v1l9tYF1bHCpZIWhL9aAOr1eCn1tVosxWZ6drEW+EHQ21+X0iQ7EYhZ Jc/WJ9xPfz5M79OJT3e/DlnkArai/l9FzHlO8EndePbguIv73GHGu98ocJ9JQ7kqIaP5+ti5y/Xyn wNtpm7qw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t33Lc-000000099Qd-1REy; Tue, 22 Oct 2024 01:06:08 +0000 Received: from mail-yb1-xb4a.google.com ([2607:f8b0:4864:20::b4a]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t333P-000000096z5-1LLs for linux-arm-kernel@lists.infradead.org; Tue, 22 Oct 2024 00:47:20 +0000 Received: by mail-yb1-xb4a.google.com with SMTP id 3f1490d57ef6-e290b8b69f8so8544844276.2 for <linux-arm-kernel@lists.infradead.org>; Mon, 21 Oct 2024 17:47:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1729558037; x=1730162837; darn=lists.infradead.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=eTpDcLprhbUi5YHe62ZQ4u0o+/QxbhbJTnRiVU+yROI=; b=zjuk5CB6k0vgVAj+Zsvm3IAalkCTNlbRcKMSPd6mXD6iWk0i1DodTcEpoDW3xN5i6a ZzWNcq1sBcJM96f4MiYIteKkOX1NeI+dsebXwLVOz85cbPF2sncnhJTaukeEtfLsnqQO O/yAhvq/3O+sEjwYUGBzDB2nBR/lEEsT76rf15nynaDPnelkwI59wlYuwf6kt9TkX0eO sbE0lDK4dq0w0ms2z7oljtAHAIQWD9FaygtoVGRzXKDabDAb7hRnFLVWsrV1uB//I4i0 T2sr/skOzDy9h4trSYHo8FgcAqrK9+wgVED/5oc5h0OQuyd9NFr0798MbjIkNMtyw/QG mYeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729558037; x=1730162837; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=eTpDcLprhbUi5YHe62ZQ4u0o+/QxbhbJTnRiVU+yROI=; b=N0TExep9STw+b7cHCUl3xl2Z0TzwWdcHCVi0OEPJuTI39ZYMSasJQBwosDHFK9Rofg LnkaEEKk2zP+sOx/XJnyk2tI951fDga9h8C3vAu4n1C/5a2n9jb4Kz9DCE4yJqSI8oBY lidI0Y5d03LKKIVB6nMiQplK3tWvT4cfqeTzPwE95dvPGp79PB+g4sCsm4vgneI+GEED 5ch4lBgZpFeHykBbLDIY2bqQchwVxpdF+m5mqWnxxshHGQpXvKHU6eB3B4SddD9sZW3C gl+MfO/OMUheR0End9j2eXiRJEtm9G0PS+uH/CwE+cYl+75RXNHnD+q7ONsb4QD23UL5 cjWg== X-Forwarded-Encrypted: i=1; AJvYcCXk3OnBSAd8sobRJV1f6M9ePDhQyoP2319d2WVkosIpvzKhJgKejwHeDRe7QxPkaste8rx/xni4IKezqa7cp6LC@lists.infradead.org X-Gm-Message-State: AOJu0Yx0lqP2+fMbDIJFPkaJNU5RXjV+ZeoNbPXp9Y7j1hjREBq28UXl BBZMV6b2ZlTxQ8h5Rs+L2MCzOvKvC869Oc+HY/7bKyCFtRzLRoEtadHB1lmfyc6JUDbuLHMw+fO S+MsWhA== X-Google-Smtp-Source: AGHT+IFHeu+s/6VJ8LwG/ln9c8VqGvj+9fWSI0sc1LDHdzQR9YS0qXRVl8XWuhvxBjalS3fnwkBU6xUhXVdb X-Received: from rananta-linux.c.googlers.com ([fda3:e722:ac3:cc00:11b:3898:ac11:fac1]) (user=rananta job=sendgmr) by 2002:a05:6902:1807:b0:e29:7454:a4da with SMTP id 3f1490d57ef6-e2bb12ed271mr8273276.4.1729558037283; Mon, 21 Oct 2024 17:47:17 -0700 (PDT) Date: Tue, 22 Oct 2024 00:47:08 +0000 In-Reply-To: <20241022004710.1888067-1-rananta@google.com> Mime-Version: 1.0 References: <20241022004710.1888067-1-rananta@google.com> X-Mailer: git-send-email 2.47.0.105.g07ac214952-goog Message-ID: <20241022004710.1888067-2-rananta@google.com> Subject: [kvm-unit-tests PATCH 1/3] arm: Fix clang error in sve_vl() From: Raghavendra Rao Ananta <rananta@google.com> To: Subhasish Ghosh <subhasish.ghosh@arm.com>, Joey Gouly <joey.gouly@arm.com>, Andrew Jones <andrew.jones@linux.dev> Cc: Oliver Upton <oliver.upton@linux.dev>, Marc Zyngier <maz@kernel.org>, Raghavendra Rao Anata <rananta@google.com>, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241021_174719_397339_3F2A2EA3 X-CRM114-Status: GOOD ( 12.15 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Fix arm64 clang errors on fpu tests
|
expand
|
diff --git a/lib/arm64/asm/processor.h b/lib/arm64/asm/processor.h index b28d41fd..e261e74d 100644 --- a/lib/arm64/asm/processor.h +++ b/lib/arm64/asm/processor.h @@ -159,7 +159,7 @@ static inline int sve_vl(void) int vl; asm volatile(".arch_extension sve\n" - "rdvl %0, #8" + "rdvl %w0, #8" : "=r" (vl)); return vl;
Fix the following clang error in sve_vl(): In file included from arm/selftest.c:16: kvm-unit-tests/lib/asm/processor.h:163:16: error: value size does not match register size specified by the constraint and modifier [-Werror,-Wasm-operand-widths] : "=r" (vl)); ^ kvm-unit-tests/lib/asm/processor.h:162:14: note: use constraint modifier "w" "rdvl %0, #8" ^~ %w0 1 error generated. Fixes: d47d370c8f ("arm: Add test for FPU/SIMD context save/restore") Signed-off-by: Raghavendra Rao Ananta <rananta@google.com> --- lib/arm64/asm/processor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)