From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oi1-f198.google.com (mail-oi1-f198.google.com [209.85.167.198]) (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 2FF7E4BEE49 for ; Thu, 24 Sep 2026 17:30:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790271011; cv=none; b=QH8gpNEh4Xt4QUNeBm/BErUQconYGbNlLeiqwreWRJ1P77Q+NDI4Qkvqfo4d0lqIhL2sWJqegugEkpeU72rX2Ic59RPfUiOY2MdJFzfanAYO4rpki9oKoRwfrT6wgn1Z3y3hlW3S56P1HKbLJLdYmMPazzf7/0Knu+KAk0Quuhs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790271011; c=relaxed/simple; bh=wEtQJcZvj82M47L7Tjmw+DpGbgxUqRqdySWeYlB244k=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=bE99JOsTq1GBF0Gua570v8OsaBSOiGEkdyFG4k+Y1T5J8gitwgxUL3hY68iUkUk4Nq9crBw1E2fhpZYt75s0PFG9v/TioCUG2DIqV2YhYWFprZ9H62vEqOsnQOoGyIp5exulSlJhh9igj4zyAoiAkgGBx/SbbbDLHQ3uVSuFn5s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--coltonlewis.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=laTpR+FP; arc=none smtp.client-ip=209.85.167.198 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--coltonlewis.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="laTpR+FP" Received: by mail-oi1-f198.google.com with SMTP id 5614622812f47-4959c49e054so130325b6e.3 for ; Thu, 24 Sep 2026 10:30:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1790271002; x=1790875802; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=sDXNTscT9mKzWNXLRmPqiMgiEZh+nFQVdJuFACvc/Zg=; b=laTpR+FP/qggqxsaOud590eqYLGib7PBc6zUz21Cf5qzHmbrt3+QjVhHxWR5DHY0GM O0SEsfKpPVfx+ZSJKKEhIcFws3pCqJ3BOl4SzTywEkb2Fq4wKvvS2kyi2JDUihTWznyM gJHUYej13ux/1T3hj+jfEFQVEqpeY7g4rJN9UgcH29t0mAJHYM8uKf3K1Ff94wKK53uN 4PUQ+pC34AU1xp8892UdrYF2DJjMz9gKA5+P5YSbHpit6BrA9AmYWL1RqxJrqUY532ZI ZWmzKaFT99R7y4NsyCmHSqJUTXN0Lj8jBSBbTmhhf+JnGEfc8tWHdOWjXkbIqy0n/7pT aWJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790271002; x=1790875802; h=content-type: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:content-type; bh=sDXNTscT9mKzWNXLRmPqiMgiEZh+nFQVdJuFACvc/Zg=; b=MrSwpMynJY9AHAKbv8p1p7oeCoE2xIKbwETe9GWtBLC9Poesweo87hsoZyqy0IwbgZ kbKpPbvPWyMjd4wVzzbJ1PBtiwQ7KLTqBSbTo4nQnTA6Gu6HdD6Ci/zBn5i0HDcb6wFs l+K+W1JYAv/oP4eclGf9y+i9U9Y7qPBT1TKh8NjrpbDXXEcL09flkf2KM68CkONEo7rP BSqnaWiZWRkR8wgvptdhHMA2APn205KG+GYx0Y2/7gP5pfS4+hwzCdDUjggW3U1LEMDv 7pPJnJ1Qjpn4POISZBLG7EatrG1VqUK011QzS1xAseJWvFpTxv9SeqycTOQquaGEqa1R iiCA== X-Gm-Message-State: AFuF++lwIHqMVduXn98WVbHC0W2STCILWvhF6FR1F67f3nnNwb7twefx kd2pff3OFrhvtvKAj1jV5qfb3k+W/eKjd/HBiXOE5N+C4xJZpLf86avy0E/9xYQ2vESIpYMtfB7 HdqvnERkWX8AeSxrYHPsYQviq++J9XpZbd+BQpxfv4cXgAkqrihxYDrbTXJYyFtmRH3luGHzBFq HdGZuh19LJWgGlAua+CFson8+9SUBXDFUaUkeR3bgZJMV60Ko4cvWsOaXMD2I= X-Received: from jablt1.prod.google.com ([2002:a05:6638:ac01:b0:5f1:a6b8:62bf]) (user=coltonlewis job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6808:11ce:b0:4b9:a88b:888b with SMTP id 5614622812f47-4d72c739696mr3040492b6e.33.1790271001357; Thu, 24 Sep 2026 10:30:01 -0700 (PDT) Date: Thu, 24 Sep 2026 17:29:27 +0000 In-Reply-To: <20260924172928.2110956-1-coltonlewis@google.com> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260924172928.2110956-1-coltonlewis@google.com> X-Mailer: git-send-email 2.56.0.rc1.315.gc6ed9934b7-goog Message-ID: <20260924172928.2110956-22-coltonlewis@google.com> Subject: [PATCH v9 21/22] KVM: selftests: Add find_bit to KVM library From: Colton Lewis To: kvm@vger.kernel.org, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org Cc: Marc Zyngier , Oliver Upton , Oliver Upton , Joey Gouly , Suzuki K Poulose , Zenghui Yu , Fuad Tabba , Catalin Marinas , Will Deacon , Mark Rutland , Paolo Bonzini , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , James Clark , Robin Murphy , Zide Chen , Alexandru Elisei , Ganapatrao Kulkarni , Mingwei Zhang , Jonathan Corbet , Russell King , Shuah Khan , linux-perf-users@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Colton Lewis Content-Type: text/plain; charset="UTF-8" Add lib/find_bit.c to the KVM selftests build using the same wrapper pattern as lib/rbtree.c so selftests that depend on find_bit helpers link cleanly when built standalone. Signed-off-by: Colton Lewis --- tools/testing/selftests/kvm/Makefile.kvm | 1 + tools/testing/selftests/kvm/lib/find_bit.c | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 tools/testing/selftests/kvm/lib/find_bit.c diff --git a/tools/testing/selftests/kvm/Makefile.kvm b/tools/testing/selftests/kvm/Makefile.kvm index 96bab7002d39e..cfd1a4fe09ec4 100644 --- a/tools/testing/selftests/kvm/Makefile.kvm +++ b/tools/testing/selftests/kvm/Makefile.kvm @@ -5,6 +5,7 @@ all: LIBKVM += lib/assert.c LIBKVM += lib/elf.c +LIBKVM += lib/find_bit.c LIBKVM += lib/guest_modes.c LIBKVM += lib/io.c LIBKVM += lib/kvm_util.c diff --git a/tools/testing/selftests/kvm/lib/find_bit.c b/tools/testing/selftests/kvm/lib/find_bit.c new file mode 100644 index 0000000000000..5534248c663f7 --- /dev/null +++ b/tools/testing/selftests/kvm/lib/find_bit.c @@ -0,0 +1,2 @@ +// SPDX-License-Identifier: GPL-2.0 +#include "../../../../lib/find_bit.c" -- 2.56.0.rc1.310.g51773c2048-goog