From nobody Sat Jul 25 03:46:49 2026 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 11F6817BA2 for ; Sun, 19 Jul 2026 05:21:14 +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=1784438477; cv=none; b=VS5kx+DB9IHy099/+rIXs9U3nuA8WxPArIlAgPpBxt1bBh95CWJvtweYdyFNOCUICGNYMeFx7y5KX7aPEXyMAozXk12z1EgCOo+/z1sg21aalZjEUgSQpSIRBN/4tXWXK8T1xRWoAytt5leobH88fG1TkgiGae4wTqWMGuuf0RU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784438477; c=relaxed/simple; bh=kPUYJBdKw49gYciGsCE5y9wlEsGUjGdUN7kTZvJ4ALs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DrOJVMlGdUXnW4ECjuGCoaGrGSeUCCoTAGbCWJjSdtvlwMn0YsQVpU8FAEW101evNnYXGX4RYIOxrHoUN/39ayXW2QGvL8Xn8rpjze6RIKvb40bMAHykV1UoXMWU27ml5v9x0ZZ3SEeQYEcfJFqgt7RN+rKzNPc8p7oQiD7xdmA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org; spf=pass smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=rOG2Eo47; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=pass 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="rOG2Eo47" 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:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=XERLWHS8vl0NQqg0wwGw+ffmEcBAlc208Sk4ZzqBNEc=; b=rOG2Eo47PP6r9SP4vKXWG8kn41 nyg9FUfw28VmYEANqXZeEuzrI67MLRTeF0BLaFuliAK7i2z+hb4MvUwppLcgaGZ1o0R/D3NNJ2ikI ivdsdX3lQCu+x4bkThYDnRiSEwpDaj3v/8a/Bg6KCyh67GHNhfOx/llMHfXtr9fcM8qIoozkj7a5C hhLjeE/4T4Myp5ohLQsjwD96rCc2wI/a6irgnGRRFYpU+gy2G/kd0fbM+DJtzbeVLO6+WVA3w5fg5 Q2PnA0HiOpR46XVhs8gOipw+8A5lBrfOIZ0sxHvxYJL0xLni+I8v2hPwGgpSU1i62MbvLDSnx3EVi TCujN85g==; Received: from [50.53.43.113] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.99.1 #2 (Red Hat Linux)) id 1wlJxh-00000004lXV-3fVH; Sun, 19 Jul 2026 05:21:13 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Alexander Potapenko , Marco Elver , Dmitry Vyukov , kasan-dev@googlegroups.com Subject: [PATCH] kmsan: headers: cleanup function and parameter names Date: Sat, 18 Jul 2026 22:21:13 -0700 Message-ID: <20260719052113.2490964-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.55.0 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 names and function parameter name in the kernel-doc comments to avoid kernel-doc warnings: Warning: include/linux/kmsan.h:146 expecting prototype for kmsan_map_kernel_range_noflush(). Prototype was for kmsan_vmap_pages_range_noflush() instead Warning: include/linux/kmsan.h:156 expecting prototype for kmsan_vunmap_kernel_range_noflush(). Prototype was for kmsan_vunmap_range_noflush() instead Warning: include/linux/kmsan-checks.h:72 function parameter 'to_copy' not described in 'kmsan_memmove' Warning: include/linux/kmsan-checks.h:72 Excess function parameter 'size' description in 'kmsan_memmove' Signed-off-by: Randy Dunlap Reviewed-by: Alexander Potapenko --- Cc: Alexander Potapenko Cc: Marco Elver Cc: Dmitry Vyukov Cc: kasan-dev@googlegroups.com include/linux/kmsan-checks.h | 2 +- include/linux/kmsan.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) --- linux-next-20260717.orig/include/linux/kmsan-checks.h +++ linux-next-20260717/include/linux/kmsan-checks.h @@ -65,7 +65,7 @@ void kmsan_copy_to_user(void __user *to, * kmsan_memmove() - Notify KMSAN about a data copy within kernel. * @to: destination address in the kernel. * @from: source address in the kernel. - * @size: number of bytes to copy. + * @to_copy: number of bytes to copy. * * Invoked after non-instrumented version (e.g. implemented using assembly * code) of memmove()/memcpy() is called, in order to copy KMSAN's metadat= a. --- linux-next-20260717.orig/include/linux/kmsan.h +++ linux-next-20260717/include/linux/kmsan.h @@ -127,7 +127,7 @@ void kmsan_kmalloc_large(const void *ptr void kmsan_kfree_large(const void *ptr); =20 /** - * kmsan_map_kernel_range_noflush() - Notify KMSAN about a vmap. + * kmsan_vmap_pages_range_noflush() - Notify KMSAN about a vmap. * @start: start of vmapped range. * @end: end of vmapped range. * @prot: page protection flags used for vmap. @@ -147,7 +147,7 @@ int __must_check kmsan_vmap_pages_range_ gfp_t gfp_mask); =20 /** - * kmsan_vunmap_kernel_range_noflush() - Notify KMSAN about a vunmap. + * kmsan_vunmap_range_noflush() - Notify KMSAN about a vunmap. * @start: start of vunmapped range. * @end: end of vunmapped range. *