Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp98182rbe; Wed, 28 Feb 2024 13:30:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXBG42ctWla0tYBWdMd7nL/kSxXVPH+no67k1G+PCAPiF9juRBBPXrQCxsbTB3eYfQYRAKOlGCcEWx/g2yq6EsOy3ZqN7cr0tl0Mj/R8w== X-Google-Smtp-Source: AGHT+IHwwL53qD4fnrPnK2BYUJpYGX9ug4F7dmAzKewLQoTrur/PLhZJcGEqo2SNG7Zol52VqjW0 X-Received: by 2002:a17:906:b84b:b0:a43:a628:ff31 with SMTP id ga11-20020a170906b84b00b00a43a628ff31mr112041ejb.26.1709155811691; Wed, 28 Feb 2024 13:30:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709155811; cv=pass; d=google.com; s=arc-20160816; b=IXFW4q264e4xmtHy/knRZKxRG6O7M4xL3PbKSGrzh9lFrlhLgJ1qAB13RG2A+d7SOW ysSR8goQHBsLFXjxVcTfVjOC7xePlHguALG3gKfH+/CQjXgn5eI6/PYbJyGjOjZBgSuy gsqlNI31+bZU9vnqJY4xG9uzFV5Jv6lLuVyNiOb/t8YkoC2aa2HTe0r0xa4WhYc3npD3 WHBrtJzsibXC0Sv+a0aXFIpMPqdI7b4NtTuzVRDcuffj/0XxT50AouhpxUWzQzqVclxF HESM8IPNUanJ/LPw9vAs7Zt6HjZBessqYY3XKZRbrKtCgC8N1xH9X3HeCNuSHHneVrQd Fu/A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:date; bh=LmCqMU+CqRtl1lQzxakvCjnhFpdoPkkukjCHHZwQrbk=; fh=KQjnEogevqnTFQ+xvqC2PuMASfysveGrPEdiM+OZvv0=; b=Wk+P762WsVEl8k/4/9HosQ5CSVNtW9KSwzJR+aWEhPdHiIkmVZ2TMGKyFoL9ATvF+y BV4XTjwFOlhbtINrm40+vGjb7nUHLjx6zlJ4zcEguU+HdxqASIrCb8tsHsIckm666fU0 RRInexmdB1VNZ8DDEySlc3Uu9+6ONHR7tzr54rrNekzg/76oPv62z/MhK4zzddTUh5Ie WYFhImpCATWYSqLfX7SH62wwYvz6xqqrSRyR6VYwSgqB1kPIixGPjoTEqEFgagA6RTZO uFw+pTuD1GqLHS+mbcU1tb6KBpeTEl5ydx/aA6I7OqbJrkB/Z44KmTs2F2JSEsGMzx8c sbmA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=BSVSjaK7; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-85723-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85723-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id jw23-20020a17090776b700b00a43ff1d4250si17737ejc.616.2024.02.28.13.30.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 13:30:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85723-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=BSVSjaK7; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-85723-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85723-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 71BFE1F28F42 for ; Wed, 28 Feb 2024 21:30:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 676B470038; Wed, 28 Feb 2024 21:30:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="BSVSjaK7" Received: from out-189.mta1.migadu.com (out-189.mta1.migadu.com [95.215.58.189]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8EDBF20DF4 for ; Wed, 28 Feb 2024 21:29:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.189 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709155800; cv=none; b=k76sZDxsCfDFBVTw8qKHgeqskC6qlZkdHQx0gbwcMqZQHyqEaPUyP2ZL0BkqEuyjzGyoqGlRzG78eWe7Pc391i2yPVW6RU1tG7SALeTL1eLAaOe8Ftmydf68xgDaBqIIK/4fOIZGVi7CCrne/O9/DV7slHiPab1rO5F7TV8IwjM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709155800; c=relaxed/simple; bh=tKi61AWnzUSUD+C7vq3Rt69JFAHiy6USDczG1BVy7OU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dXh77pKmuiVqsSkbHQRdnM9BGMFti84UxwxuUuzKiv8ycvIgl864vSIF+wRQpJt3UQJSQAJF2iALNVJ8GzrtGNE0dqvBxzY5lrPGVO3MAAhvOv3Ri6LIg2tRY+kawIGtwX3zVZKpv1QZbpgH92Czp+4dm1Ul59RC6uVb8Z80VAw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=BSVSjaK7; arc=none smtp.client-ip=95.215.58.189 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Date: Wed, 28 Feb 2024 21:29:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1709155796; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=LmCqMU+CqRtl1lQzxakvCjnhFpdoPkkukjCHHZwQrbk=; b=BSVSjaK74JZWpc6DMeZ09A3GtVKrqWIxjcmYbzS5bocX+hTEZ/h7EnkF8t/3pDmkXIT5Vy CuTbcrDeccraoahlrnXpFxIYIT+Le+R1sd8x8Tt/lUH7PR96qNdM/2VB/UGQP3LPoT05oy PcAXb0WwO87G3FgZgyi+ASAP4xUVOl0= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Oliver Upton To: Sean Christopherson Cc: Mark Brown , Thomas Huth , kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Paolo Bonzini , Andrew Jones , Marc Zyngier , Aishwarya TCV Subject: Re: [PATCH v3 3/8] KVM: selftests: Move setting a vCPU's entry point to a dedicated API Message-ID: References: <20240208204844.119326-1-thuth@redhat.com> <20240208204844.119326-4-thuth@redhat.com> <501ac94d-11ab-4765-a25d-75013c021be6@sirena.org.uk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT +cc Raghavendra Hey, On Wed, Feb 28, 2024 at 01:19:48PM -0800, Sean Christopherson wrote: > but due to a different issue that is fixed in the kvm-arm tree[*], but not in mine, > I built without -Werror and didn't see the new warn in the sea of GUEST_PRINTF > warnings. > > Ugh, and I still can't enable -Werror, because there are unused functions in > aarch64/vpmu_counter_access.c > > aarch64/vpmu_counter_access.c:96:20: error: unused function 'enable_counter' [-Werror,-Wunused-function] > static inline void enable_counter(int idx) > ^ > aarch64/vpmu_counter_access.c:104:20: error: unused function 'disable_counter' [-Werror,-Wunused-function] > static inline void disable_counter(int idx) > ^ > 2 errors generated. > make: *** [Makefile:278: /usr/local/google/home/seanjc/go/src/kernel.org/nox/tools/testing/selftests/kvm/aarch64/vpmu_counter_access.o] Error 1 > make: *** Waiting for unfinished jobs.... > > Commit 49f31cff9c533d264659356b90445023b04e10fb failed to build with 'make-clang make-arm make -j128'. > > Oliver/Marc, any thoughts on how you want to fix the unused function warnings? > As evidenced by this goof, being able to compile with -Werror is super helpful. Are these the only remaining warnings we have in the arm64 selftests build? Faster than me paging this test back in: Raghu, are we missing any test cases upstream that these helpers were intended for? If no, mind sending a patch to get rid of them? > And another question: is there any reason to not force -Werror for selftests? Nothing comes to mind. We need to bite the bullet and make the switch. There might be breakage, but we can certainly handle that. -- Thanks, Oliver