lkml.org 
[lkml]   [2022]   [Aug]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [V2 02/11] KVM: selftests: sparsebit: add const where appropriate
On Mon, Aug 01, 2022 at 01:11:00PM -0700, Peter Gonda wrote:
> From: Michael Roth <michael.roth@amd.com>
>
> 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 <michael.roth@amd.com>
> Signed-off-by: Peter Gonda <pgonda@google.com>
> ---
> .../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 <andrew.jones@linux.dev>

\
 
 \ /
  Last update: 2022-08-02 12:02    [W:0.164 / U:3.800 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site