Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp2454196imn; Tue, 2 Aug 2022 03:32:06 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sj/WeHTtY69zmn0MGWoi6F2ePOnsQgtYa4FN2QBY9dbfA4NxWVLOH9MbyiYd/db9vowB20 X-Received: by 2002:a05:6a00:15c3:b0:52b:1675:6dfc with SMTP id o3-20020a056a0015c300b0052b16756dfcmr20545034pfu.52.1659436326335; Tue, 02 Aug 2022 03:32:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659436326; cv=none; d=google.com; s=arc-20160816; b=DYWRwehXQIwbZf3LWSuIsJDl3pWNFHLFTEx+lq8nJ47f7Yn6Z8ql5wnZNLWD5CXaRV LwaEDV2GXdORfbqMfHiXi0O0GAHfTphsBc9nxgApkR616in3p24hKw9QQ6HTwEmAyK1n FxXEgbSXI2Ko61UuCStUr+53JyOKCm4r0VvN00zKzrd6v7wNGZUXaT/dhqzgKtfdK82E O8Mi123AmdXE3OY3yZp+fMsAvIPcC5x4s7ySL2uedn9U6xBbVoCYChsIlt11ucOwKssm xYtt3uNts9VgVy9ahDVOVafjBWZXfs0tGaQnumlvhCKzCw4BU0XGQA9Na02w7x1sSvIV klvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=fWS91HOnYcPg5dE0ildC+1U0SbgjO3xl/PLhDrRtUL0=; b=bsKGH5I0DoolFKPk3zmmwtOm4NTlU+oEwfDmm/4ndKTVGOqq1YAQojiHJNuVlb5dlX M3o88/aQ/qSOc3lYef2AeLwwgfbTmBAcv/70bgTSbGfrojFphr206eFldpLIf+XZuZJN aRmItRMj//IAOpR6dl3/oHQIQMNmDMLVXqCJuRMH5M5zCvH8cb41+3T9D1oN1WAhzfDJ 2xf6Jvl6HNZkzjXkevDfbDwpmE+gWORaPWImpDrPPY5jZWargkxWvpV903oqK8hae4iT GAaM1Y48QPTUi2evOxI6zrxAmeuz+CNfD4FFl+iYfqEwT2jnRqtBnSP9vcMr94PxfELU h3WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=pLJ0h3Aj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bm18-20020a656e92000000b0041983a96371si16145624pgb.613.2022.08.02.03.31.52; Tue, 02 Aug 2022 03:32:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=pLJ0h3Aj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236460AbiHBKAt (ORCPT + 99 others); Tue, 2 Aug 2022 06:00:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232695AbiHBKAr (ORCPT ); Tue, 2 Aug 2022 06:00:47 -0400 Received: from out2.migadu.com (out2.migadu.com [IPv6:2001:41d0:2:aacc::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C87915831; Tue, 2 Aug 2022 03:00:46 -0700 (PDT) Date: Tue, 2 Aug 2022 12:00:44 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1659434444; 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=fWS91HOnYcPg5dE0ildC+1U0SbgjO3xl/PLhDrRtUL0=; b=pLJ0h3AjWnl+yyymFFN6YKAJ2Dx/jHk0ws0sn9sVVa6oKeylP+7YRbsCbxBjkaZi8njWdf g0mvbIaY17MlpWKTDPKjS8rz1WPsFzWU3xB4RlVmY4mB/uezw0ZBglbV7tOZJQtnIVdTYA WkqWhYAo8EdGGqYawoJcGY0D9QrJcWw= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Andrew Jones To: Peter Gonda Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, marcorr@google.com, seanjc@google.com, michael.roth@amd.com, thomas.lendacky@amd.com, joro@8bytes.org, mizhang@google.com, pbonzini@redhat.com Subject: Re: [V2 02/11] KVM: selftests: sparsebit: add const where appropriate Message-ID: <20220802100044.p5kxjzz6avxrkzyh@kamzik> References: <20220801201109.825284-1-pgonda@google.com> <20220801201109.825284-3-pgonda@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220801201109.825284-3-pgonda@google.com> X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 01, 2022 at 01:11:00PM -0700, Peter Gonda wrote: > From: Michael Roth > > Subsequent patches will introduce an encryption bitmap in kvm_util that > would be useful to allow tests to access in read-only fashion. This > will be done via a const sparsebit*. To avoid warnings or the need to > add casts everywhere, add const to the various sparsebit functions that > are applicable for read-only usage of sparsebit. > > Signed-off-by: Michael Roth > Signed-off-by: Peter Gonda > --- > .../testing/selftests/kvm/include/sparsebit.h | 36 +++++++------- > tools/testing/selftests/kvm/lib/sparsebit.c | 48 +++++++++---------- > 2 files changed, 42 insertions(+), 42 deletions(-) > Reviewed-by: Andrew Jones