From nobody Thu Dec 25 10:51:37 2025 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 E9956224C2; Wed, 17 Jan 2024 23:07:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705532840; cv=none; b=NigVH1nI1ysDZI7njiK9OPhcQtNOuEAhZduqoOyXN0GfnB8pszjSLPOEnNU6bChIX4IoIMgPahRFwYEZMDUI9td+SpHw2jNU7LdxN3cUoF4R4YILTAcSoNUwSrugoJa1zbUQE1K8yrvT5+oGXo1Q3TWHKugf7s9goFKOiprTPmo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705532840; c=relaxed/simple; bh=AxL2pBXazAzg//MRXlYnFJ53tGOVmTSBSNMjNVOlrTQ=; h=DKIM-Signature:Received:From:To:Cc:Subject:Date:Message-ID: X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; b=GXdL1HAoH54cFJwrJgYU8758c+ExduJIiWjcjGQ6MWzB9KAlfsrUz1i7kAlEHSN0s2ndt0fZXa4S1j0Lpm5jlDnPlAfC4bxJECQ9PgBZZpALJ/lUiPlM/PjezMuvZiGeLKyypSDLf74D0e2/O7y90fq/DvkBI8Xm1aiErLSUGzg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=Cmnv6kko; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="Cmnv6kko" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=33pXiC615tAp01UX0oIvnU0m5UyE9DId90eSm2AOiDA=; b=Cmnv6kko4O6H4EJIhtFSqIpoQp hhIHa5nLJ04S5KtXMPDlgR2LRpGkaqeRAtoN8iiTsqcAwuv6QsHOS9S3b19eZwO9bxF6Cuc5k4Z2z eeDXeeoaZ5cOj+bJSk32R01arFIetSHojqNyIKi8YA7Q4MPEyGpT4PxiTKkY7WQNDUceL2D+vizAx SYTAllYONNHpFNToNSpWPhDu3O7FX00ZwnA6UikLt66+Xes+jxooifGSV0lwvEHKbdlLMYx84oVbC 9w2UaJ+++NK0WrPCcAI6R5TuIcc/u2doq3w13LM4YR2tsx2PVpEnZIJFrAvq2zXDqSSrOaxXL1nUE TWj7KjRw==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rQF09-0011su-32; Wed, 17 Jan 2024 23:07:18 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, Catalin Marinas , Will Deacon Subject: [PATCH 01/10] KVM: arm64: debug: fix kernel-doc warnings Date: Wed, 17 Jan 2024 15:07:05 -0800 Message-ID: <20240117230714.31025-2-rdunlap@infradead.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240117230714.31025-1-rdunlap@infradead.org> References: <20240117230714.31025-1-rdunlap@infradead.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Change one "/**" comment to a common "/*" comment since the comment is not in kernel-doc format. Add description for the @vcpu function parameter. These changes prevent warnings: debug.c:27: warning: This comment starts with '/**', but isn't a kernel-doc= comment. Refer Documentation/doc-guide/kernel-doc.rst * save/restore_guest_debug_regs debug.c:27: warning: missing initial short description on line: * save/restore_guest_debug_regs debug.c:149: warning: Function parameter or struct member 'vcpu' not descri= bed in 'kvm_arm_reset_debug_ptr' Signed-off-by: Randy Dunlap Cc: Marc Zyngier Cc: Oliver Upton Cc: James Morse Cc: Suzuki K Poulose Cc: Zenghui Yu Cc: linux-arm-kernel@lists.infradead.org Cc: kvmarm@lists.linux.dev Cc: Catalin Marinas Cc: Will Deacon Reviewed-by: Suzuki K Poulose Reviewed-by: Zenghui Yu --- arch/arm64/kvm/debug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -- a/arch/arm64/kvm/debug.c b/arch/arm64/kvm/debug.c --- a/arch/arm64/kvm/debug.c +++ b/arch/arm64/kvm/debug.c @@ -23,7 +23,7 @@ =20 static DEFINE_PER_CPU(u64, mdcr_el2); =20 -/** +/* * save/restore_guest_debug_regs * * For some debug operations we need to tweak some guest registers. As @@ -143,6 +143,7 @@ void kvm_arm_vcpu_init_debug(struct kvm_ =20 /** * kvm_arm_reset_debug_ptr - reset the debug ptr to point to the vcpu state + * @vcpu: the vcpu pointer */ =20 void kvm_arm_reset_debug_ptr(struct kvm_vcpu *vcpu) From nobody Thu Dec 25 10:51:37 2025 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 2C20322EFE; Wed, 17 Jan 2024 23:07:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705532841; cv=none; b=rdQIBAPwEBGdiL4gkbJWikBQYVSZPk7K2zih4tkqsR0OVN8euEwQ+53W0MTYKWj3zxX4twaUy6lgjLoXQHbaxMiTOH0ABt+3wJB0n3Ee57skMMnD5je2ItRN/8kE3Sr9bYMYhDyKWvUMRIZi6ITOcadef4Cvu+lHdRk7fXhNwWc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705532841; c=relaxed/simple; bh=qe4FjNte+EfV+SxIMOllnF2vE+IqSHEb4QBYlyFCKsw=; h=DKIM-Signature:Received:From:To:Cc:Subject:Date:Message-ID: X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; b=QRQSm5IGhuuDI9iP5rFe1ldILdOXBdttVYNgysbjjwPpdWxCrMwhhQJ9IZrXc2j5e6h25ddkZgCgCX10ZXobR7smy2SRjZof5nKPEPGBh5oYSxcJ+tnqL74MFpPWW08stpZym6lwx1dQU6X20C9Jwr2fDgjuHi2RvsArc0mrKHs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=vukh56S4; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="vukh56S4" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=ypndJ3q6jZFQH0yBwkGZzBndYEsmF1d2BBCzWXEQX3w=; b=vukh56S447fwfDPuha9YigmbqP xSj28FnXgN2ji/AhU5njJCQrHUZXD7c2czNhmxmWTBmgs0rUxN7j6I+8+weQYQHM8KloLlg1BRX/O OE+lfxPBfWTWB6sPHlfx1tH9ABKq5PYWkCxxEmrHjpEojMumot9bai3FYKkW7Wg9ozrfFGI49tnn4 oyCbodzxiV6e66TB2CBkVYdEkkKFbReJavH3yrDrsS5Rwr/c5McMrwK+S/1JV0fPWSrIHt7ole8kV bTFg7BrOWIMMAXJSBUVl1PHvUhhPmXmctYj7VeToE+r+OfF86H3AuAgdWDX8laDmcGlzQ6mg45Ll8 gLBz2VZA==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rQF0A-0011su-15; Wed, 17 Jan 2024 23:07:18 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, Catalin Marinas , Will Deacon Subject: [PATCH 02/10] KVM: arm64: guest: fix kernel-doc warnings Date: Wed, 17 Jan 2024 15:07:06 -0800 Message-ID: <20240117230714.31025-3-rdunlap@infradead.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240117230714.31025-1-rdunlap@infradead.org> References: <20240117230714.31025-1-rdunlap@infradead.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Fix multiple function parameter descriptions to prevent warnings: guest.c:718: warning: Function parameter or struct member 'vcpu' not descri= bed in 'kvm_arm_num_regs' guest.c:736: warning: Function parameter or struct member 'vcpu' not descri= bed in 'kvm_arm_copy_reg_indices' guest.c:736: warning: Function parameter or struct member 'uindices' not de= scribed in 'kvm_arm_copy_reg_indices' arch/arm64/kvm/guest.c:915: warning: Excess function parameter 'kvm' descri= ption in 'kvm_arch_vcpu_ioctl_set_guest_debug' arch/arm64/kvm/guest.c:915: warning: Excess function parameter 'kvm_guest_d= ebug' description in 'kvm_arch_vcpu_ioctl_set_guest_debug' Signed-off-by: Randy Dunlap Cc: Marc Zyngier Cc: Oliver Upton Cc: James Morse Cc: Suzuki K Poulose Cc: Zenghui Yu Cc: linux-arm-kernel@lists.infradead.org Cc: kvmarm@lists.linux.dev Cc: Catalin Marinas Cc: Will Deacon Reviewed-by: Suzuki K Poulose Reviewed-by: Zenghui Yu --- arch/arm64/kvm/guest.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff -- a/arch/arm64/kvm/guest.c b/arch/arm64/kvm/guest.c --- a/arch/arm64/kvm/guest.c +++ b/arch/arm64/kvm/guest.c @@ -711,6 +711,7 @@ static int copy_sve_reg_indices(const st =20 /** * kvm_arm_num_regs - how many registers do we present via KVM_GET_ONE_REG + * @vcpu: the vCPU pointer * * This is for all registers. */ @@ -729,6 +730,8 @@ unsigned long kvm_arm_num_regs(struct kv =20 /** * kvm_arm_copy_reg_indices - get indices of all registers. + * @vcpu: the vCPU pointer + * @uindices: register list to copy * * We do core registers right here, then we append system regs. */ @@ -902,8 +905,8 @@ int kvm_arch_vcpu_ioctl_translate(struct =20 /** * kvm_arch_vcpu_ioctl_set_guest_debug - set up guest debugging - * @kvm: pointer to the KVM struct - * @kvm_guest_debug: the ioctl data buffer + * @vcpu: the vCPU pointer + * @dbg: the ioctl data buffer * * This sets up and enables the VM for guest debugging. Userspace * passes in a control flag to enable different debug types and From nobody Thu Dec 25 10:51:37 2025 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 4E08222F16; Wed, 17 Jan 2024 23:07:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705532842; cv=none; b=DtyTJDJiohYqjhUvYR8yMMvt+JHiu9Z/M8Z3UrWRbCA8p6fWJRCBJch17KgIxKDnvsx3wI6WNsMjLdLXlpLNV3p85GvfWHxF7YCaoOv6OF8e3UbGSlVIUHyhABFKYbihiySEgaGRUupDoxeiPzqL5qv7czGW6Ln/mHBQL6c0+T8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705532842; c=relaxed/simple; bh=aeEiGwIx8qsK2ZA3R5/Sp9ad7VIHQstjCj1Q1oj46ws=; h=DKIM-Signature:Received:From:To:Cc:Subject:Date:Message-ID: X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; b=B4Q1bVXh5MJ+1lRVdy2L6kPi4GuWqy1QgTWSaiJ8KE5WsaMDglYmqGNKXIRgSiVFcHwaANrNvCR+d7vvQro8CDWXO6VKqyhJRAWOLOnqIEBD1zD94MWG/4x1hVltwWGSg/KWjb4FQDHAFzl27PQpNgFKu1pDjwM6yB5kBtZVS64= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=WnGLn10S; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="WnGLn10S" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=OkMmSUUzqla7nDqkHEtROz1zMAm2J8YGPaDlVU8GXs0=; b=WnGLn10SkFXQy4WxXtZftFWBvb iIPZ7CI0D/9n6whLhQ3NKJ0z9XsPngXKyZM6CEsFnuoz2MuakwUTTgI/5q7zZcZ8WzOHkcncE3Yz6 BU+e8Hh7AP+GHsNfsl+KC+tqOmaWWyvxrH0DC3jIMhSnIxJIjJKDqVqCV24C5W6YW4NlpfjW/2mht h6/gEFkv96JF5TI673TW/tda4me7yey+3M+kznIC+uWeLmN36LnDxWlsRgxyHYpuedJ1zjt0+jCz8 ELArJDl20U2teOO6xKvMfGn/8lQGF7zDgilUTgIpYC/svoxQOk8aDoMdTw48gEFqGiZDurglEqlRv azcWBpuA==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rQF0A-0011su-2T; Wed, 17 Jan 2024 23:07:18 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, Catalin Marinas , Will Deacon Subject: [PATCH 03/10] KVM: arm64: hyp/aarch32: fix kernel-doc warnings Date: Wed, 17 Jan 2024 15:07:07 -0800 Message-ID: <20240117230714.31025-4-rdunlap@infradead.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240117230714.31025-1-rdunlap@infradead.org> References: <20240117230714.31025-1-rdunlap@infradead.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Use the correct function name in the kernel-doc comments to prevent kernel-doc warnings: arch/arm64/kvm/hyp/vhe/../aarch32.c:97: warning: expecting prototype for ad= just_itstate(). Prototype was for kvm_adjust_itstate() instead arch/arm64/kvm/hyp/vhe/../aarch32.c:127: warning: expecting prototype for k= vm_skip_instr(). Prototype was for kvm_skip_instr32() instead Signed-off-by: Randy Dunlap Cc: Marc Zyngier Cc: Oliver Upton Cc: James Morse Cc: Suzuki K Poulose Cc: Zenghui Yu Cc: linux-arm-kernel@lists.infradead.org Cc: kvmarm@lists.linux.dev Cc: Catalin Marinas Cc: Will Deacon Reviewed-by: Suzuki K Poulose Reviewed-by: Zenghui Yu --- arch/arm64/kvm/hyp/aarch32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -- a/arch/arm64/kvm/hyp/aarch32.c b/arch/arm64/kvm/hyp/aarch32.c --- a/arch/arm64/kvm/hyp/aarch32.c +++ b/arch/arm64/kvm/hyp/aarch32.c @@ -84,7 +84,7 @@ bool kvm_condition_valid32(const struct } =20 /** - * adjust_itstate - adjust ITSTATE when emulating instructions in IT-block + * kvm_adjust_itstate - adjust ITSTATE when emulating instructions in IT-b= lock * @vcpu: The VCPU pointer * * When exceptions occur while instructions are executed in Thumb IF-THEN @@ -120,7 +120,7 @@ static void kvm_adjust_itstate(struct kv } =20 /** - * kvm_skip_instr - skip a trapped instruction and proceed to the next + * kvm_skip_instr32 - skip a trapped instruction and proceed to the next * @vcpu: The vcpu pointer */ void kvm_skip_instr32(struct kvm_vcpu *vcpu) From nobody Thu Dec 25 10:51:37 2025 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 CF11022F17; Wed, 17 Jan 2024 23:07:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705532841; cv=none; b=S9kDCAWmz2Oc+2w7wFFPKNvoWlGySzjDUZliGQ6inWzRy/E+lpTXsx4NayTeYX2SO9+Zx6fljQ9sBDP76EgcPZ1S03yIhCpy02lwFdWLBkucoNdw4WaB0AV5JscZx+PmF8i9vJ5F6NCP3kfqk1vZQ2wigDoYRwQRVkY8MLILSGQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705532841; c=relaxed/simple; bh=n2BhsFjGcr7MuBGXteubepVgpYIPmnI7f0uYF07S+ws=; h=DKIM-Signature:Received:From:To:Cc:Subject:Date:Message-ID: X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; b=NFA+EJ3Edi6Qmw7suZWtP5DoJWFtJ60Alz1vlHuyIczkmW40iAGSJtiBHl8Sx3MIrrcXQSMHyTWV9gnWUfhj97v3el5VK5q1ukV4a9+rrgFrFWU4PCroeiMN5kb7spXpYGVL+vPxXRoif7lNq4CkCrf01tieBSzHw0Hy5iKnuDM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=Sqv8CQ31; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="Sqv8CQ31" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=tL7JHTjwR33SLiqO2gdH0Yo2NTGGiSKZCN1Uyn0m5mI=; b=Sqv8CQ31VYBNhnIc0P7XixwtXT UCNNXnytKrLzNfYcp6PVfgpzgkK1JnH1NAImPVR5rgreMrkMZihTo/UJwut9gap69NUCNqJgn68u9 pOydntKBU8khfOD2OebL/B6gKWtDotkgzZwysWHPecQfpJfnA/LvHZ6rKid/fqmO49qxIAAV2qa/2 dZb63Uzw1ZN4O78teO2NwvYEXgsprzKOxgKXYOaZNXcXslic31f4+nVBrriz20JX9h2exO0SXDbmh VQjarR4Yhn/HYPHZ8koIbUdIbTW/qFemhve23Qgps8zpmwjUlafU0omnlDGq1/QuavHlpLs5FS62H zIubOWZw==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rQF0B-0011su-0O; Wed, 17 Jan 2024 23:07:19 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, Catalin Marinas , Will Deacon Subject: [PATCH 04/10] KVM: arm64: vhe: fix a kernel-doc warning Date: Wed, 17 Jan 2024 15:07:08 -0800 Message-ID: <20240117230714.31025-5-rdunlap@infradead.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240117230714.31025-1-rdunlap@infradead.org> References: <20240117230714.31025-1-rdunlap@infradead.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Use the correct function name in the kernel-doc comment to prevent a warning: arch/arm64/kvm/hyp/vhe/sysreg-sr.c:109: warning: expecting prototype for __= vcpu_put_switch_syregs(). Prototype was for __vcpu_put_switch_sysregs() ins= tead Signed-off-by: Randy Dunlap Cc: Marc Zyngier Cc: Oliver Upton Cc: James Morse Cc: Suzuki K Poulose Cc: Zenghui Yu Cc: linux-arm-kernel@lists.infradead.org Cc: kvmarm@lists.linux.dev Cc: Catalin Marinas Cc: Will Deacon Reviewed-by: Suzuki K Poulose Reviewed-by: Zenghui Yu --- arch/arm64/kvm/hyp/vhe/sysreg-sr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -- a/arch/arm64/kvm/hyp/vhe/sysreg-sr.c b/arch/arm64/kvm/hyp/vhe/sysre= g-sr.c --- a/arch/arm64/kvm/hyp/vhe/sysreg-sr.c +++ b/arch/arm64/kvm/hyp/vhe/sysreg-sr.c @@ -95,7 +95,7 @@ void __vcpu_load_switch_sysregs(struct k } =20 /** - * __vcpu_put_switch_syregs - Restore host system registers to the physica= l CPU + * __vcpu_put_switch_sysregs - Restore host system registers to the physic= al CPU * * @vcpu: The VCPU pointer * From nobody Thu Dec 25 10:51:38 2025 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 4618A24B25; Wed, 17 Jan 2024 23:07:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705532841; cv=none; b=NJ51rsf89Sn71d27x6I4GBsUKwyaDteiw2qTXupsXeKw9DUHelNRir3KEEzVXmNd4uu62nB6vetqfLbzlXe8mW4fucCVRN8TxfYY7Q1K5TFFLKG6Ao7nnQQnNduwkhgm002kaMhfeiunVAZ8Oko+4hHYJfNQ9fQMlnRGsP379Cw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705532841; c=relaxed/simple; bh=+6nIeOFxhPy+roORj2aw1phO7CMig6PwRogWUATtFQs=; h=DKIM-Signature:Received:From:To:Cc:Subject:Date:Message-ID: X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; b=DiKDIJunhydp4+j4VOMHjryK1mOP1S96WUGEIbsmcotm1u+XgwHKxqIEAJ+cNGcM27RifbFm/81WtqKB8ONSIctG2HtVrbO3BV2aKbi16kt06a/sb969jFZii30ckyiPnRE+EBJ1YY02U4AZjVph1yKoUTKwgPlfL4sizqKc1RM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=KxkaUt4P; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="KxkaUt4P" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=rf9WG8QoK+Em5J0jsQlsXY6tjkvOuZcYJxM/46Zr9do=; b=KxkaUt4PI8Mca+F7Kp2LvXFHOr gtPmoYFkMinRaue70E8zThkunG5etxWpKM8R0oeW4vwqKhDWwYtpWE7R4FTYN+FeNSS3e9WbNCN5h na5rG1e5Dzja9o3seH+r28SicPs8xCGkdf2ydmNmSEKBxpwzYXe3dKA7NAVk40kXu5aq7BXX/SM9D e1TcIMn94LOtvKMj9N7W00HDCJgcz+WzwSVDB5+nJheKbjcW5b49VABjQxHBf2eWtZmhW+ozxpacB t0Uwdq62LjsCMLp6dSPTCp98mEHAkSkCjNA2jl7aq1X6UcKBsq++LmXvJCMyNJWWXvwwpCIuEqBVA CFPVnSbg==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rQF0B-0011su-1T; Wed, 17 Jan 2024 23:07:19 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, Catalin Marinas , Will Deacon Subject: [PATCH 05/10] KVM: arm64: mmu: fix a kernel-doc warning Date: Wed, 17 Jan 2024 15:07:09 -0800 Message-ID: <20240117230714.31025-6-rdunlap@infradead.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240117230714.31025-1-rdunlap@infradead.org> References: <20240117230714.31025-1-rdunlap@infradead.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Use the correct function name in a kernel-doc comment to prevent a warning: arch/arm64/kvm/mmu.c:321: warning: expecting prototype for unmap_stage2_ran= ge(). Prototype was for __unmap_stage2_range() instead Signed-off-by: Randy Dunlap Cc: Marc Zyngier Cc: Oliver Upton Cc: James Morse Cc: Suzuki K Poulose Cc: Zenghui Yu Cc: linux-arm-kernel@lists.infradead.org Cc: kvmarm@lists.linux.dev Cc: Catalin Marinas Cc: Will Deacon Reviewed-by: Suzuki K Poulose Reviewed-by: Zenghui Yu --- arch/arm64/kvm/mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -- a/arch/arm64/kvm/mmu.c b/arch/arm64/kvm/mmu.c --- a/arch/arm64/kvm/mmu.c +++ b/arch/arm64/kvm/mmu.c @@ -305,7 +305,7 @@ static void invalidate_icache_guest_page * does. */ /** - * unmap_stage2_range -- Clear stage2 page table entries to unmap a range + * __unmap_stage2_range -- Clear stage2 page table entries to unmap a range * @mmu: The KVM stage-2 MMU pointer * @start: The intermediate physical base address of the range to unmap * @size: The size of the area to unmap From nobody Thu Dec 25 10:51:38 2025 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 8327725620; Wed, 17 Jan 2024 23:07:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705532841; cv=none; b=nWN7/aN8xWpoZtJxVs0W5I612Y7Z10nanoac9kn843RdJaVEOe/ok5g1Gej1F1kjcpLuXFPzKDqjeKyr1vLPb+RDZyThkqFPvJPNYbXJYIvw0FNwRHw8L70znRLOITnZlJvb0zyu903rwB8hWkPdNsJu1B8z48tJP2S8a+BtFHU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705532841; c=relaxed/simple; bh=c7veDcJwfWEy2ceKhYMeTOZaPgtM+ubfAmWRTM5uF/g=; h=DKIM-Signature:Received:From:To:Cc:Subject:Date:Message-ID: X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; b=JNwcbWeCpoiOU5AouKM9hnI3kN0D5SBjcc6oOECQ1gRVX5mTvnVV72eQcPyu5r4xE+oOYGVMdvM4CiZNA9WnuFoo6yO8caEJ334l7FFIujvp3L4CFKMsFybPnaSs0a0IRqNKgA+qnpP+mgUAmoFKyX7b6bshabVGpo4aHd8bmmU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=vUICiNvY; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="vUICiNvY" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=cMT/514E7BqW1l00hy1a7ZbFa058U0qT/SeW8KWVYfY=; b=vUICiNvYk2UTbA5YYdaPLFh/iq fwqIKZm8DRYR4XQTzieARAlxkfsfUd84g7qpVHdkHFWdWPN6vJYjE6zTqhFeTt8fA8ezY5FzWfvey NpTjwquz/xkpsDTLnnmevlTPT4yS2cCIQHFRc2WvaRunwRO9AJ9w+6zTuDautMr/r8fQFe5weS1AN PfSOgNW7AfMIv4XQqjKblU/8+XQ6xEAI3V2P6JPmL/xv/CYpnBxt1CF/AUrppWFI8tfk9IoN5MnoW IcoRyB/eRktNPZl0Ij9Ij8qm3k4X2xnYUQd1oxdYUpkzbsr3pTElJigz8V+evp4Uk2jZ+7jd0+bja 9zP+FKag==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rQF0B-0011su-2b; Wed, 17 Jan 2024 23:07:19 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, Catalin Marinas , Will Deacon Subject: [PATCH 06/10] KVM: arm64: PMU: fix kernel-doc warnings Date: Wed, 17 Jan 2024 15:07:10 -0800 Message-ID: <20240117230714.31025-7-rdunlap@infradead.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240117230714.31025-1-rdunlap@infradead.org> References: <20240117230714.31025-1-rdunlap@infradead.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Change 2 uses of "/**" on non-kernel-doc comments to common "/*" comments to prevent kernel-doc warnings: arch/arm64/kvm/pmu-emul.c:423: warning: This comment starts with '/**', but= isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * When perf interrupt is an NMI, we cannot safely notify the vcpu correspo= nding arch/arm64/kvm/pmu-emul.c:494: warning: This comment starts with '/**', but= isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * When the perf event overflows, set the overflow status and inform the vc= pu. Signed-off-by: Randy Dunlap Cc: Marc Zyngier Cc: Oliver Upton Cc: James Morse Cc: Suzuki K Poulose Cc: Zenghui Yu Cc: linux-arm-kernel@lists.infradead.org Cc: kvmarm@lists.linux.dev Cc: Catalin Marinas Cc: Will Deacon Reviewed-by: Suzuki K Poulose Reviewed-by: Zenghui Yu --- arch/arm64/kvm/pmu-emul.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -- a/arch/arm64/kvm/pmu-emul.c b/arch/arm64/kvm/pmu-emul.c --- a/arch/arm64/kvm/pmu-emul.c +++ b/arch/arm64/kvm/pmu-emul.c @@ -419,7 +419,7 @@ void kvm_pmu_sync_hwstate(struct kvm_vcp kvm_pmu_update_state(vcpu); } =20 -/** +/* * When perf interrupt is an NMI, we cannot safely notify the vcpu corresp= onding * to the event. * This is why we need a callback to do it once outside of the NMI context. @@ -490,7 +490,7 @@ static u64 compute_period(struct kvm_pmc return val; } =20 -/** +/* * When the perf event overflows, set the overflow status and inform the v= cpu. */ static void kvm_pmu_perf_overflow(struct perf_event *perf_event, From nobody Thu Dec 25 10:51:38 2025 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 C3C2128694; Wed, 17 Jan 2024 23:07:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705532842; cv=none; b=OLYR/S3UI1TCnld9PamillUyDDKa7P+wRp2hLNoyzYC0sppKv+Y5dN/MqQGlnCD/YO0KvRnR7zeVOKQYuZbid/QX7x4Llt66fXrD2u8DVHQ1JiKbDyXh5UfH3jEl5WmBWv9igjY55fDnlwxQBy6Hh+AJyaEEbqn1dZJvzsi+iDc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705532842; c=relaxed/simple; bh=bskHYMIoZ8Px7JZI6eA5NMkXx5ScjCITwfg7FUAEcBo=; h=DKIM-Signature:Received:From:To:Cc:Subject:Date:Message-ID: X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; b=HeI3zShOMBgPhYYJcyQmMDfZgHKcfnAJBh12k5KGpoRnu1Zmz5xSOJU6Jworq6XAzbMU7dQ7LiTzKDTXh8FPADijmeSqowaVhci/zlovvwqAReFsNARNp8fz5QlgULFGdfKKOxnwlGFX4gSErGB9HE+jOABIDKwOWZ0d47w9mrk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=dweo1j75; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="dweo1j75" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=iT44W7v/FtTigM/DN0Ec+D1xmeouh8V4OkR9aPPtQ1Q=; b=dweo1j75EEMJ4/8gKndu/Cjl68 7+AwoVbFi0N6WulHFli8LlsqC2vLbjeGU6T1lf2dx51cIyJ0C8gVHKCgiz8ShpiH0T6lYdtoX5jyT 1u2PndgOL/HBnp4xvDDlfQEJKM1tey/n3HSqOyIfwRCXgW2HFUqSp1JkJZIuTuFrnRXgsqZHA0LBK pRWQm6YPMa0Z+v2GUvl3HotindYPuh5Bg1IThp0/zckBYy7/k2YhnN20uYB8HYtpOrvEq+ZSAgDL1 CvDqHOu+9mnU/rOKLkv7Ag07kjCjAnOaoWuchujMlQik2F1O6PBLcnK0wQvHo45z8u/von5umO1NG Wpv1hScg==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rQF0C-0011su-0Z; Wed, 17 Jan 2024 23:07:20 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, Catalin Marinas , Will Deacon Subject: [PATCH 07/10] KVM: arm64: sys_regs: fix kernel-doc warnings Date: Wed, 17 Jan 2024 15:07:11 -0800 Message-ID: <20240117230714.31025-8-rdunlap@infradead.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240117230714.31025-1-rdunlap@infradead.org> References: <20240117230714.31025-1-rdunlap@infradead.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Drop the @run function parameter descriptions and add the actual ones for 2 functions to prevent kernel-doc warnings: arch/arm64/kvm/sys_regs.c:3167: warning: Excess function parameter 'run' de= scription in 'kvm_handle_cp_64' arch/arm64/kvm/sys_regs.c:3335: warning: Excess function parameter 'run' de= scription in 'kvm_handle_cp_32' Signed-off-by: Randy Dunlap Cc: Marc Zyngier Cc: Oliver Upton Cc: James Morse Cc: Suzuki K Poulose Cc: Zenghui Yu Cc: linux-arm-kernel@lists.infradead.org Cc: kvmarm@lists.linux.dev Cc: Catalin Marinas Cc: Will Deacon Reviewed-by: Suzuki K Poulose Reviewed-by: Zenghui Yu --- arch/arm64/kvm/sys_regs.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff -- a/arch/arm64/kvm/sys_regs.c b/arch/arm64/kvm/sys_regs.c --- a/arch/arm64/kvm/sys_regs.c +++ b/arch/arm64/kvm/sys_regs.c @@ -3159,7 +3159,8 @@ static void unhandled_cp_access(struct k /** * kvm_handle_cp_64 -- handles a mrrc/mcrr trap on a guest CP14/CP15 access * @vcpu: The VCPU pointer - * @run: The kvm_run struct + * @global: &struct sys_reg_desc + * @nr_global: size of the @global array */ static int kvm_handle_cp_64(struct kvm_vcpu *vcpu, const struct sys_reg_desc *global, @@ -3326,7 +3327,9 @@ static int kvm_emulate_cp15_id_reg(struc /** * kvm_handle_cp_32 -- handles a mrc/mcr trap on a guest CP14/CP15 access * @vcpu: The VCPU pointer - * @run: The kvm_run struct + * @params: &struct sys_reg_params + * @global: &struct sys_reg_desc + * @nr_global: size of the @global array */ static int kvm_handle_cp_32(struct kvm_vcpu *vcpu, struct sys_reg_params *params, From nobody Thu Dec 25 10:51:38 2025 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 7193328DA5; Wed, 17 Jan 2024 23:07:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705532842; cv=none; b=GF1krz7bgGSzML+Jwtlxgdg8JCfr+rRTJmVUteZ/3V0LtAf4uUzWf/kFcpMpGnc/wLK4pZpNS0Z0uZ7OZucFVm0o5QXCKGeWIqBE7rmh4XVFIXu/3JqErt7B7eMCcC6pAe5/4LK9jtq5Nv6+1xxL1HN6zw11/a8lvB87JXHbmxc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705532842; c=relaxed/simple; bh=TySm173rxyhAdotDK7EIJbVdusDgJzeysg/S3YPerVA=; h=DKIM-Signature:Received:From:To:Cc:Subject:Date:Message-ID: X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; b=QHPMyPIF93uBcwW/KjvUtzSWT1NfXweur4Ry1FYBwoXePtSRdpR2TcnpgWJ69KNbdJs7BzJoIO/HVcFST2QSovc8YXv+p9Szb2nz/Oy4h/RJiYwHhpE/bCI2yE87fKADv0F8NboD2sjtXOzCuzH0HxBNYMOwyKDLmNgZIkZZsjY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=Pkx2RUf0; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="Pkx2RUf0" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=KBv72L9EWa6OscyWF0/gK01Q4M4/AoY4DRCGn5aUvKI=; b=Pkx2RUf0B6Jagv6qaghzuJ1vRL 8jw3ipu/hjZFqdfp5mFtDV2kbQreAwBbsozigWmFC+vY/C5VlLNcwA7agEwO/3uWhCcXYFVkAlXpg wW2bZL49WzxHGWY1ZJMH/Ba40qMyDKjpaSqGayHQz2WdBBvg7sJ+YW6OEuNu6CnDHh+MfOR3XXOfk E9D4IWUcf9N1+83a/8s/BeArV34JPQpHTHTwH3UWuJCgWDtYJbX7mdQrpGSE+DrTs3Wvwuxo3IONL 90KfUG0HkQkrBA1DupXQFb766moo5Hn8R0sl4/ipzDQC5sGXkFGq6ApAiFy4rGfDld6JbQJ88AtA7 msZ++Ddg==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rQF0C-0011su-1m; Wed, 17 Jan 2024 23:07:20 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, Catalin Marinas , Will Deacon Subject: [PATCH 08/10] KVM: arm64: vgic-init: fix a kernel-doc warning Date: Wed, 17 Jan 2024 15:07:12 -0800 Message-ID: <20240117230714.31025-9-rdunlap@infradead.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240117230714.31025-1-rdunlap@infradead.org> References: <20240117230714.31025-1-rdunlap@infradead.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Change the function comment block to kernel-doc format to prevent a kernel-doc warning: arch/arm64/kvm/vgic/vgic-init.c:448: warning: This comment starts with '/**= ', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc= .rst * Map the MMIO regions depending on the VGIC model exposed to the guest Signed-off-by: Randy Dunlap Cc: Marc Zyngier Cc: Oliver Upton Cc: James Morse Cc: Suzuki K Poulose Cc: Zenghui Yu Cc: linux-arm-kernel@lists.infradead.org Cc: kvmarm@lists.linux.dev Cc: Catalin Marinas Cc: Will Deacon Reviewed-by: Suzuki K Poulose Reviewed-by: Zenghui Yu --- arch/arm64/kvm/vgic/vgic-init.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff -- a/arch/arm64/kvm/vgic/vgic-init.c b/arch/arm64/kvm/vgic/vgic-init.c --- a/arch/arm64/kvm/vgic/vgic-init.c +++ b/arch/arm64/kvm/vgic/vgic-init.c @@ -445,13 +445,15 @@ int vgic_lazy_init(struct kvm *kvm) /* RESOURCE MAPPING */ =20 /** + * kvm_vgic_map_resources - map the MMIO regions + * @kvm: kvm struct pointer + * * Map the MMIO regions depending on the VGIC model exposed to the guest * called on the first VCPU run. * Also map the virtual CPU interface into the VM. * v2 calls vgic_init() if not already done. * v3 and derivatives return an error if the VGIC is not initialized. * vgic_ready() returns true if this function has succeeded. - * @kvm: kvm struct pointer */ int kvm_vgic_map_resources(struct kvm *kvm) { From nobody Thu Dec 25 10:51:38 2025 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 D454428DC0; Wed, 17 Jan 2024 23:07:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705532843; cv=none; b=WkBKy1wDPk43lZ7XeQYxdg1WdH7CWjCZomjAhjXyoriuXGTqwHPcNTQcSszATDv2G/IozAv/HAQRvq+IlSNUf7sBCiiNR5E7il6WJXkjlQ0TqiWtuOb7v39R2wpZmDJmZ4nrtqo+8Rph3qZx+ZQOKShb/qwLZAPfOloto7ss9Fk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705532843; c=relaxed/simple; bh=DdymCnLkI27rGLQLx/CbSqqG9VBvyCiclIx2NAPLf98=; h=DKIM-Signature:Received:From:To:Cc:Subject:Date:Message-ID: X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; b=UEvItUAPJdAFyBrsRuxVebjT6lBMp9XQtXmSIQ2h9B5ubBJM4VnJAPDVLJj0+9sFfVq6yxibSwStt6X5QRtlMjfOYDjzesDusp6PYfbABxZpSYlASnYgzu0KxLd1/EVNgR0nDFAHjYbpfc/5Ymc/Qtc+0XO1oRKu9KgjgJ3aXFk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=N1jpdSJ7; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="N1jpdSJ7" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=l0w1dsym1D/QG/0mtlqKSd3j1TQngBvbzezDyJnZL68=; b=N1jpdSJ7XNunvOhxbX1M1L2rJ5 5BkibONmiWR8b3469QCpJWp1VTg1C/4hJL9oYL5qrV8jaCJRvkp4gMbVmb8EfrB4oGsbOn7r2g/Ce sD6oPLKpJkTdyq/pmi+z6FedH5GNDjr952hWAmHX+XlY4cDcCDZoCl/mJ3wDGpsaUdc+OQU4TMbQM cKauxSRRKsPiHyb1a/DWfLFaVW+5smRb9ylQK6FJ2GE+qm1ec5hwBIAvS+wVxuO4Cyv+36+qMGusH gINFg2tPJ89ogG4wu8Oai/iIxDImrx/H9wvqpeWTYewYBomCyxsSvzw9S/lLpq/Zz05r2sTL+Hv3+ xI+U/F+w==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rQF0C-0011su-38; Wed, 17 Jan 2024 23:07:21 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, Catalin Marinas , Will Deacon Subject: [PATCH 09/10] KVM: arm64: vgic-its: fix kernel-doc warnings Date: Wed, 17 Jan 2024 15:07:13 -0800 Message-ID: <20240117230714.31025-10-rdunlap@infradead.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240117230714.31025-1-rdunlap@infradead.org> References: <20240117230714.31025-1-rdunlap@infradead.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Correct the function parameter name "@save tables" -> "@save_tables". Use the "typedef" keyword in the kernel-doc comment for a typedef. These changes prevent kernel-doc warnings: vgic/vgic-its.c:174: warning: Function parameter or struct member 'save_tab= les' not described in 'vgic_its_abi' arch/arm64/kvm/vgic/vgic-its.c:2152: warning: expecting prototype for entry= _fn_t(). Prototype was for int() instead Signed-off-by: Randy Dunlap Cc: Marc Zyngier Cc: Oliver Upton Cc: James Morse Cc: Suzuki K Poulose Cc: Zenghui Yu Cc: linux-arm-kernel@lists.infradead.org Cc: kvmarm@lists.linux.dev Cc: Catalin Marinas Cc: Will Deacon Reviewed-by: Suzuki K Poulose Reviewed-by: Zenghui Yu --- arch/arm64/kvm/vgic/vgic-its.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -- a/arch/arm64/kvm/vgic/vgic-its.c b/arch/arm64/kvm/vgic/vgic-its.c --- a/arch/arm64/kvm/vgic/vgic-its.c +++ b/arch/arm64/kvm/vgic/vgic-its.c @@ -158,7 +158,7 @@ struct vgic_translation_cache_entry { * @cte_esz: collection table entry size * @dte_esz: device table entry size * @ite_esz: interrupt translation table entry size - * @save tables: save the ITS tables into guest RAM + * @save_tables: save the ITS tables into guest RAM * @restore_tables: restore the ITS internal structs from tables * stored in guest RAM * @commit: initialize the registers which expose the ABI settings, @@ -2139,7 +2139,7 @@ static u32 compute_next_eventid_offset(s } =20 /** - * entry_fn_t - Callback called on a table entry restore path + * typedef entry_fn_t - Callback called on a table entry restore path * @its: its handle * @id: id of the entry * @entry: pointer to the entry From nobody Thu Dec 25 10:51:38 2025 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 0AF9B28DCA; Wed, 17 Jan 2024 23:07:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705532843; cv=none; b=CzsVwGPVordeU3IoHehIzl/IxHlrK3qyKofuudYaHGLf6Sxa6b9tFW+gme4GFuqolS4Y4hz9x7YfVTlFO35icMGV7srT4M4eWTiZnmewjee+DLEYqlBvYLIw/jiXDJy2cpK2QJYhf5Db+eLWt5FqLG2TIpl63d8W0TYKHTaEmQA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705532843; c=relaxed/simple; bh=RiiiCFCSg23bdODcmHVKYdCbg7Nx10zpVDFgao209n0=; h=DKIM-Signature:Received:From:To:Cc:Subject:Date:Message-ID: X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; b=h4BxmEstxuH4CRy911oJawEPcPjXXuBPv0IZbUnUPWnlSJ1yB/o57GphPoVts9y7lxc8TcYvV+tPTv7VmzkofvW3jQFwMG6+AleVJa0tVaHY6zsLID1hhV3AMv42crIoddKVbqHFgSozdp0zb56AnnwGkYGD48fRY0v1vMPUxE8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=q4imAu3N; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="q4imAu3N" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=4z//f4SWii73rhmNB7IdhlI7RbSfenJTKTaX55Qhiuk=; b=q4imAu3NSlhLHLEfxBINKlePAf EoW2oKIsUWSxyc0WEiV3W9N9j7vE9sGxXbVt+0UL5AxkvQcn5xvJ1Sy2R+LmuMJPgtuRd2qHPQ8kM p7/5G6sBOXCLfMXJdBQvKZCsjCm1RKQV5kmIm1TudfMVKpUFe41cBFQcIbxNJyu1ESZaxW/ojZ8cX RWntzG7KluBxBZzo06l7bhopvQIupwjEnw9iJV5CwPXAhuBCX5SrvDNgS0+ysKZE1vWN9tKdrvMQQ em/3TFg6TUbMnj6bxjvbKr5ezbAyzmOgO8X1/Q7nMLR5dTM5a0KD5uIWPMXqCkla/8NLDQjI9VUV4 rUXAR+FA==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rQF0D-0011su-11; Wed, 17 Jan 2024 23:07:21 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, Catalin Marinas , Will Deacon Subject: [PATCH 10/10] KVM: arm64: vgic: fix a kernel-doc warning Date: Wed, 17 Jan 2024 15:07:14 -0800 Message-ID: <20240117230714.31025-11-rdunlap@infradead.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240117230714.31025-1-rdunlap@infradead.org> References: <20240117230714.31025-1-rdunlap@infradead.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Use the correct function name in a kernel-doc comment to prevent a warning: arch/arm64/kvm/vgic/vgic.c:217: warning: expecting prototype for kvm_vgic_t= arget_oracle(). Prototype was for vgic_target_oracle() instead Signed-off-by: Randy Dunlap Cc: Marc Zyngier Cc: Oliver Upton Cc: James Morse Cc: Suzuki K Poulose Cc: Zenghui Yu Cc: linux-arm-kernel@lists.infradead.org Cc: kvmarm@lists.linux.dev Cc: Catalin Marinas Cc: Will Deacon Reviewed-by: Suzuki K Poulose Reviewed-by: Zenghui Yu --- arch/arm64/kvm/vgic/vgic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -- a/arch/arm64/kvm/vgic/vgic.c b/arch/arm64/kvm/vgic/vgic.c --- a/arch/arm64/kvm/vgic/vgic.c +++ b/arch/arm64/kvm/vgic/vgic.c @@ -203,7 +203,7 @@ void vgic_irq_set_phys_active(struct vgi } =20 /** - * kvm_vgic_target_oracle - compute the target vcpu for an irq + * vgic_target_oracle - compute the target vcpu for an irq * * @irq: The irq to route. Must be already locked. *