Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

util_macros.h: fix kernel-doc for u64_to_user_ptr()

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>

authored by

Andy Shevchenko and committed by
Andrew Morton
bd97c976 464c7ea5

+2 -2
+2 -2
include/linux/util_macros.h
··· 136 136 #define PTR_IF(cond, ptr) ((cond) ? (ptr) : NULL) 137 137 138 138 /** 139 - * to_user_ptr - cast a pointer passed as u64 from user space to void __user * 139 + * u64_to_user_ptr - cast a pointer passed as u64 from user space to void __user * 140 140 * @x: The u64 value from user space, usually via IOCTL 141 141 * 142 - * to_user_ptr() simply casts a pointer passed as u64 from user space to void 142 + * u64_to_user_ptr() simply casts a pointer passed as u64 from user space to void 143 143 * __user * correctly. Using this lets us get rid of all the tiresome casts. 144 144 */ 145 145 #define u64_to_user_ptr(x) \