From patchwork Sun Apr 10 15:38:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 12808169 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BD3B6C433EF for ; Sun, 10 Apr 2022 15:38:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242170AbiDJPlA (ORCPT ); Sun, 10 Apr 2022 11:41:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240176AbiDJPk6 (ORCPT ); Sun, 10 Apr 2022 11:40:58 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 75DF4286E4 for ; Sun, 10 Apr 2022 08:38:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1649605127; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=tOw89Gf7WnffDCNYXGFd+Pu5U6hzz5IlC9y5yKDKg3A=; b=VqVc66uMa5IyVRiAQ+5J6DtmGJRJNGB5ZghMdLzpzedRvib6LPRAjQww4TimVL7PU2dAls V4lM55eyYaw/5xmdjjLSPY6T2xaH4RJ0FGvdPLLe78pmYl8PbXcmknJVnvCunpGWZvEC+F /4PohIKlaeMit2KOCLUu8MWl2PqOxbk= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-364-sziPtkMKO2mHDiW3X3rM6w-1; Sun, 10 Apr 2022 11:38:44 -0400 X-MC-Unique: sziPtkMKO2mHDiW3X3rM6w-1 Received: by mail-qv1-f69.google.com with SMTP id gh5-20020a05621429c500b004443be8db85so2098300qvb.11 for ; Sun, 10 Apr 2022 08:38:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=tOw89Gf7WnffDCNYXGFd+Pu5U6hzz5IlC9y5yKDKg3A=; b=fKDVxgD6/BOHduvPfTnLqaMok5QwbgjFWi9N8pyAgQ4PVZl3fmBxUa6CB2CJcODbCC PKpDOoLNVHafVq4wPqyyQXIHsg282ERJ7CWIXfj4lsUSVsWsUe2LOG6HkgEmSDI3/GQU 21GGnadSRvvX8/tyO23zwf2ZHLSC/xYk1X2xQsUpilKQxjWAvuW6n0wtvpLZs+Wq1jfx wEqQyYyNc/5J0R01FzE3MquodZSJDzLa3YM6Mxxf37OTsxgKr4eiZhz7z3pEgqEn0gML RHdoop50L0kTF/SLPa9799ePR4+pSjoCuNrN5k9n88gsAHdkjqkRD6jGJNHC3Th5bYu9 euQQ== X-Gm-Message-State: AOAM532RPhaxP0SFth62Cxco4WRHm6bWVrzZqoP/WtEM4ufrKa7o+dmS uO5KHI+/WYSBNrtTC7x17kjzx+ecd2zgej+0JqBVhTOSmnIAgkRwsr/jCWsLtT5zYwvLPoqdKhv l6xee6BmS7r/r X-Received: by 2002:a05:6214:2301:b0:435:38af:2f87 with SMTP id gc1-20020a056214230100b0043538af2f87mr23642045qvb.83.1649605123860; Sun, 10 Apr 2022 08:38:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJ+5M962Hrne2KDB95B2oYdS8HFx62nGUxoPSUqW2CkNgqhYH79Cy0T0/06vEj3SUtI72w1w== X-Received: by 2002:a05:6214:2301:b0:435:38af:2f87 with SMTP id gc1-20020a056214230100b0043538af2f87mr23642039qvb.83.1649605123676; Sun, 10 Apr 2022 08:38:43 -0700 (PDT) Received: from dell-per740-01.7a2m.lab.eng.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id k2-20020a37ba02000000b0067dc1b0104asm17024640qkf.124.2022.04.10.08.38.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Apr 2022 08:38:43 -0700 (PDT) From: Tom Rix To: pbonzini@redhat.com Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Tom Rix Subject: [PATCH] KVM: clean up comments Date: Sun, 10 Apr 2022 11:38:40 -0400 Message-Id: <20220410153840.55506-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org SPDX *.h use /* */ style comments *.c use // style comments Spelling replacements dimishing to diminishing memsot to memslot Signed-off-by: Tom Rix --- virt/kvm/dirty_ring.c | 2 +- virt/kvm/kvm_main.c | 4 ++-- virt/kvm/kvm_mm.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/virt/kvm/dirty_ring.c b/virt/kvm/dirty_ring.c index 222ecc81d7df..f4c2a6eb1666 100644 --- a/virt/kvm/dirty_ring.c +++ b/virt/kvm/dirty_ring.c @@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ +// SPDX-License-Identifier: GPL-2.0-only /* * KVM dirty ring implementation * diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index b22f380e3347..90a2ccaa5b25 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -662,7 +662,7 @@ void kvm_inc_notifier_count(struct kvm *kvm, unsigned long start, kvm->mmu_notifier_range_end = end; } else { /* - * Fully tracking multiple concurrent ranges has dimishing + * Fully tracking multiple concurrent ranges has diminishing * returns. Keep things simple and just find the minimal range * which includes the current and new ranges. As there won't be * enough information to subtract a range after its invalidate @@ -1793,7 +1793,7 @@ static int kvm_set_memslot(struct kvm *kvm, /* * No need to refresh new->arch, changes after dropping slots_arch_lock - * will directly hit the final, active memsot. Architectures are + * will directly hit the final, active memslot. Architectures are * responsible for knowing that new->arch may be stale. */ kvm_commit_memory_region(kvm, old, new, change); diff --git a/virt/kvm/kvm_mm.h b/virt/kvm/kvm_mm.h index 34ca40823260..41da467d99c9 100644 --- a/virt/kvm/kvm_mm.h +++ b/virt/kvm/kvm_mm.h @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0-only +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __KVM_MM_H__ #define __KVM_MM_H__ 1