From nobody Tue Nov 26 05:53:35 2024 Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5800548CFC for ; Tue, 22 Oct 2024 00:47:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729558039; cv=none; b=PqszGqB+qv1kzVO5f2nK3wUZNr9OZFLEv8U/zbdnGWVYnctsoDVxPzdrNk1hKK/gVG45zQVDAh/hEXvhs1Z2wAEuZ76TWSppLZISWu7bggvY2LBj5sb1cwUgY0Z3f/ouT36Betb0ELRcQJD/DKKj+ps1IaV5U3acePxY8gVTqTA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729558039; c=relaxed/simple; bh=esQoNZuXsR24jwPl1DfQPAsmfQfBH1AfjOxCgQQxj50=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=irQ8RtLjGIbRtzWB6KSMmkn+1/JBli5KpmbOYvCz2+zYsa4HQE3WRcJ/h87mCkjPKNWPZCnwlkgargoxPB+r00ZBT1uKQvme60QtLLw1lYx7FyOX0rStEfDiVeYbL75cvHlnt2PeLIik4cXsAuFCBaasETw/2MxughZVq3itPgY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--rananta.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=pbkfAGXs; arc=none smtp.client-ip=209.85.219.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--rananta.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="pbkfAGXs" Received: by mail-yb1-f202.google.com with SMTP id 3f1490d57ef6-e29135d1d0cso8131186276.1 for ; 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=vger.kernel.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=pbkfAGXsw5ltPJxt62qcFHuhxfOFJgiMyuPM/HYpxcY2SUq0RfxjBO/HeDkdl5EqCz 9XK5P0Fl5EfRL1a09o4t/oyrMhg9xOIudUbtcCODAvaCcVF+R9uAcJvXC/GfrOGOH2x2 nksiHK+71Mx4joys+NV7OWJYMt6a9j7e3YDcNSdu3a5bJGp3HH969rI9HHpWlREpwnfK gbNMBFRHU+0+W2TX+DkwftB/rLOvqGwP1It6xH4SXAXZDxIKlZ6ZGe2ojwzw6RdwPVq6 4orxHk1NV/QCqSzxN9XF9r1C7oSY9VhiE/T1XM9FslfSwDxniWeYTUvwi3gY01vvPgbF XBGg== 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=aM7mse83O2MtPnUEhQe77sdOOsXBVcUl1fmN9tT7f2GTgiHtBqICYTV3BKgcAEs87a 7DDOZZLdgn4vPQLR113ujvhFIDxOSegx0iu8xe2hZ2Wfn8QOvtV+keucqDSfMKUt1Y3N O6U4AAv080owMcKBt2pX+HK5J6R5e/n9rqlwnQ3wCxJqpChBk9DIO8lRwNhOzeoAnw0O cVTKgCSozl2IxUnthvnNCqg9CbImDEirFIKMOpnAbdJPidh/+73PdIColejcx5lC/zP9 CpBAEDXNjyivbdM47yKrmutcvy+q5eIdEWndbhDIUfr5Vsx9dOG/9mgrDulNWHYPLT3P +Ngg== X-Forwarded-Encrypted: i=1; AJvYcCUz3dqrcVdC89wxNS6b6jiNdwk98zn17V0/reTIrfEJYQ6zqW7CehssP9WO2aWP4/9a5lYml3y+anArlDo=@vger.kernel.org X-Gm-Message-State: AOJu0Yw+bhWgLgP5umcZxAgtUeYB0HCfzRq8fYMMFhSI5Nl2RBxnJKtJ CKDRC8ADYLi5m3r/yyiHbdgkyGPu2VSxsKg2by25wrxRZqUzVRL/NvH3hkxIYmdFw2eWnFVCKbK LB7rQlg== 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 To: Subhasish Ghosh , Joey Gouly , Andrew Jones Cc: Oliver Upton , Marc Zyngier , Raghavendra Rao Anata , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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] : "=3Dr" (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 --- lib/arm64/asm/processor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; =20 asm volatile(".arch_extension sve\n" - "rdvl %0, #8" + "rdvl %w0, #8" : "=3Dr" (vl)); =20 return vl; --=20 2.47.0.105.g07ac214952-goog