]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
util_macros.h: fix kernel-doc for u64_to_user_ptr()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 4 Nov 2025 18:38:34 +0000 (19:38 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 20 Nov 2025 22:03:41 +0000 (14:03 -0800)
The added documentation to u64_to_user_ptr() misspelled the function name.
Fix it.

Link: https://lkml.kernel.org/r/20251104183834.1046584-1-andriy.shevchenko@linux.intel.com
Fixes: 029c896c4105 ("kernel.h: move PTR_IF() and u64_to_user_ptr() to util_macros.h")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Alexandru Ardelean <aardelean@baylibre.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/util_macros.h

index 9373962aade9e0ae6743f683c2e53ef1b816277b..2eb528058d0d98ca5d0e488cd8c9fa35e2f31338 100644 (file)
 #define PTR_IF(cond, ptr)      ((cond) ? (ptr) : NULL)
 
 /**
- * to_user_ptr - cast a pointer passed as u64 from user space to void __user *
+ * u64_to_user_ptr - cast a pointer passed as u64 from user space to void __user *
  * @x: The u64 value from user space, usually via IOCTL
  *
- * to_user_ptr() simply casts a pointer passed as u64 from user space to void
+ * u64_to_user_ptr() simply casts a pointer passed as u64 from user space to void
  * __user * correctly. Using this lets us get rid of all the tiresome casts.
  */
 #define u64_to_user_ptr(x)             \