From nobody Sun Feb 8 16:31:40 2026 Received: from mail-io1-f74.google.com (mail-io1-f74.google.com [209.85.166.74]) (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 07EE183CD9 for ; Tue, 22 Oct 2024 00:47:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.74 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729558040; cv=none; b=UEtqhxwo+u4ihD127IFoLMRT9zqBcOLsX7DpUizLtKWw7bRamNInNo5L9fIC7Ro0J6vJB34p4fLOepyP35Inxrvm1pvPIeDKlWiX/1fvshqdGSFhQBQRIKJC4xO6kjtQ6vWqEc1Yy5vo8Dc04DhBcSYNISP4VrLLGgTH9RIVVvw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729558040; c=relaxed/simple; bh=3W9iajvimea6YrR9U732pMuKRx3PZLGRnnVS589DTvs=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=I+/W1EyFpc2ZFgUVGhZOkZwLmQmG3lNCEcVF0DXFdEDM94b3r47uM0LF+Z1oRRixlCNVGa7FZRoQDiPqc6B9qp40KOCJjXTx9Lit4AMplHxgXfvNi22cRXosYeXJmPEVGrD9Yu5eLroGwIx9CAINAiGR2k4RiunnTgeG0iRwMyw= 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=lYUGgy/Q; arc=none smtp.client-ip=209.85.166.74 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="lYUGgy/Q" Received: by mail-io1-f74.google.com with SMTP id ca18e2360f4ac-832160abde4so385569739f.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=1729558038; x=1730162838; 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=fFBeTk/ypl/mbwDh0gs/JhAq5wRwgc/prGa+mqCvt5o=; b=lYUGgy/QGwm5mMpygqQrfSTCgpdB085DCm4QVpnUSHMhxvYfVPDpEGIjps5tIZotlk Mn3k17DOA7Pwd9Qf1rLwSR9JC7+zuET2QHoSPcFop04KwGzVzcKpMMAZxJOvmtfEPg8Y 1iEZjtbpjFfxHo+mCu+eljsnP2VA6GyZNA25cUEH9vvvfjVmhsx+0WpfageveMyFcZLm ILD1VfHvupHGObuJG5aRUEkaHaXneUEF3TsDO2+a6fPSIsvgg8YI/uHaXRPxXRmNc2Wn EkWTy2JmwBWENsZMr3g1YcP9cGModOQgqISlwjLfnMkjtlRWEPhJG0YYespkufIhd0aU GOCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729558038; x=1730162838; 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=fFBeTk/ypl/mbwDh0gs/JhAq5wRwgc/prGa+mqCvt5o=; b=WRU/91xWlOrO5u0eU4xX0Ndzw8gJfazjiZzrBXZs3OU5rNIbhLquoSgQGlgeb+EbZ1 9FyWYUOBcyHDKUi+J1hzkTYIJ+Gx9Z0oLLre8emXLGY5TnmBgoUxMFUX0VHAzLJprf+M IRLhDXxT9Lt6pRw9idjbCyh/DiWchsfEZwx4jTZ4dzQ1i1CJaMEXLkntWH0HcFs02ayG GKIvpuIlLbpAapykwytDm/vUo6X2ekZQqkRB3yqIBKaRxaLkYckxGxrlUBHAQ+Sxs1eu nvEPPz4DcJEqSx2LN3hcP5y+Si60RXcKfZlfbDsCUv4xmdTWFE1B5y5SF4ZBGVJKkfKx T2RA== X-Forwarded-Encrypted: i=1; AJvYcCUw1nFNue6YGZsK1NDwy0B1nZD0O7sKKtIP2Y9YNYOc9hfooEXd8763HzvmITx+nzO4TSAPgbBAtzFS4R0=@vger.kernel.org X-Gm-Message-State: AOJu0YymmlHwPuPYicATl1JWdusYPcjsdwb9vjsm7nHt+NHYoP9Eyh9M CsrU6gSqFDG1trIYoq4Lutg8QKIEFIcX7hCdqn9tggjDpQuidm7ztHYSex2PAxo5gHuv8sQLhuz 7sYDctg== X-Google-Smtp-Source: AGHT+IGzqRDsg2PzRLzqCFl7gr4a8ftn+I8+zYOg3xTOpEKFCEBYRQxWqZwKNprPXM6RvFGVT+CQWKASwGCx X-Received: from rananta-linux.c.googlers.com ([fda3:e722:ac3:cc00:11b:3898:ac11:fac1]) (user=rananta job=sendgmr) by 2002:a02:a613:0:b0:4db:e3a0:c40e with SMTP id 8926c6da1cb9f-4dc44251858mr9721173.0.1729558038062; Mon, 21 Oct 2024 17:47:18 -0700 (PDT) Date: Tue, 22 Oct 2024 00:47:09 +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-3-rananta@google.com> Subject: [kvm-unit-tests PATCH 2/3] arm: fpu: Convert 'q' registers to 'v' to satisfy clang 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" Clang doesn't seem to support 'q' register notation in the clobbered list, and hence throws the following error: arm/fpu.c:235:3: error: unknown register name 'q0' in asm fpu_reg_read(outdata); ^ arm/fpu.c:59:10: note: expanded from macro 'fpu_reg_read' : "q0", "q1", "q2", "q3", \ ^ arm/fpu.c:281:3: error: unknown register name 'q0' in asm fpu_reg_write(*indata); ^ arm/fpu.c:92:10: note: expanded from macro 'fpu_reg_write' : "q0", "q1", "q2", "q3", \ ^ 2 errors generated. Hence, replace 'q' with 'v' registers for the clobbered list. Fixes: d47d370c8f ("arm: Add test for FPU/SIMD context save/restore") Signed-off-by: Raghavendra Rao Ananta --- arm/fpu.c | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/arm/fpu.c b/arm/fpu.c index edbd9a94..587b6ea3 100644 --- a/arm/fpu.c +++ b/arm/fpu.c @@ -56,16 +56,16 @@ static inline bool arch_collect_entropy(uint64_t *rando= m) "stp q30, q31, [%0], #32\n\t" \ : "=3Dr" (__val) \ : \ - : "q0", "q1", "q2", "q3", \ - "q4", "q5", "q6", "q7", \ - "q8", "q9", "q10", "q11", \ - "q12", "q13", "q14", \ - "q15", "q16", "q17", \ - "q18", "q19", "q20", \ - "q21", "q22", "q23", \ - "q24", "q25", "q26", \ - "q27", "q28", "q29", \ - "q30", "q31", "memory"); \ + : "v0", "v1", "v2", "v3", \ + "v4", "v5", "v6", "v7", \ + "v8", "v9", "v10", "v11", \ + "v12", "v13", "v14", \ + "v15", "v16", "v17", \ + "v18", "v19", "v20", \ + "v21", "v22", "v23", \ + "v24", "v25", "v26", \ + "v27", "v28", "v29", \ + "v30", "v31", "memory"); \ }) =20 #define fpu_reg_write(val) \ @@ -89,16 +89,16 @@ do { \ "ldp q30, q31, [%0], #32\n\t" \ : \ : "r" (__val) \ - : "q0", "q1", "q2", "q3", \ - "q4", "q5", "q6", "q7", \ - "q8", "q9", "q10", "q11", \ - "q12", "q13", "q14", \ - "q15", "q16", "q17", \ - "q18", "q19", "q20", \ - "q21", "q22", "q23", \ - "q24", "q25", "q26", \ - "q27", "q28", "q29", \ - "q30", "q31", "memory"); \ + : "v0", "v1", "v2", "v3", \ + "v4", "v5", "v6", "v7", \ + "v8", "v9", "v10", "v11", \ + "v12", "v13", "v14", \ + "v15", "v16", "v17", \ + "v18", "v19", "v20", \ + "v21", "v22", "v23", \ + "v24", "v25", "v26", \ + "v27", "v28", "v29", \ + "v30", "v31", "memory"); \ } while (0) =20 #ifdef CC_HAS_SVE --=20 2.47.0.105.g07ac214952-goog