Skip to contentSkip to conversation

x86/usercopy: Fix kernel-doc func param name

PATCH Applied Randy Dunlap 2 participants 2 messages Jan 11, 2025 – Feb 23, 2025 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/usercopy: Fix kernel-doc func param name

Use @addr instead of @vaddr in the kernel-doc comment for clean_cache_range() to eliminate warnings:

arch/x86/lib/usercopy_64.c:29: warning: Function parameter or struct member 'addr' not described in 'clean_cache_range' arch/x86/lib/usercopy_64.c:29: warning: Excess function parameter 'vaddr' description in 'clean_cache_range'

Fixes 0aed55af8834 ("x86, uaccess: introduce copy_from_iter_flushcache for pmem / cache-bypass operations")
Cc Thomas Gleixner <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc Dave Hansen <[email protected]>
---
 arch/x86/lib/usercopy_64.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/lib/usercopy_64.c +1 -1
@@ -18,7 +18,7 @@
 #ifdef CONFIG_ARCH_HAS_UACCESS_FLUSHCACHE
 /**
  * clean_cache_range - write back a cache range with CLWB
- * @vaddr:	virtual start address
+ * @addr:	virtual start address
  * @size:	number of bytes to write back
  *
  * Write back a cache range using the CLWB (cache line write back)
merge bot Applied
#1 lore raw

[tip: x86/cleanups] x86/usercopy: Fix kernel-doc func param name in clean_cache_range()'s description

The following commit has been merged into the x86/cleanups branch of tip:

The following commit has been merged into the x86/cleanups branch of tip:

Commit-ID:     51184c3c96a19b5143710ef91426e311f4364bac
Gitweb:        https://git.kernel.org/tip/51184c3c96a19b5143710ef91426e311f4364bac
Author:        Randy Dunlap <[email protected]>
AuthorDate:    Fri, 10 Jan 2025 22:33:33 -08:00
Committer:     Borislav Petkov (AMD) <[email protected]>
CommitterDate: Sun, 23 Feb 2025 11:52:48 +01:00

x86/usercopy: Fix kernel-doc func param name in clean_cache_range()'s description

Use @addr instead of @vaddr in the kernel-doc comment for clean_cache_range() to eliminate warnings:

arch/x86/lib/usercopy_64.c:29: warning: Function parameter or struct member 'addr' not described in 'clean_cache_range' arch/x86/lib/usercopy_64.c:29: warning: Excess function parameter 'vaddr' description in 'clean_cache_range'

Fixes 0aed55af8834 ("x86, uaccess: introduce copy_from_iter_flushcache for pmem / cache-bypass operations")
---
 arch/x86/lib/usercopy_64.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/lib/usercopy_64.c +1 -1
index e9251b8..654280a 100644
@@ -18,7 +18,7 @@
 #ifdef CONFIG_ARCH_HAS_UACCESS_FLUSHCACHE
 /**
  * clean_cache_range - write back a cache range with CLWB
- * @vaddr:	virtual start address
+ * @addr:	virtual start address
  * @size:	number of bytes to write back
  *
  * Write back a cache range using the CLWB (cache line write back)