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 the reference in kernel-doc

In PTR_IF() description the text refers to the parameter as (ptr) while
the kernel-doc format asks for @ptr. Fix this accordingly.

Link: https://lkml.kernel.org/r/20250428072737.3265239-1-andriy.shevchenko@linux.intel.com
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
c91d7862 f3def827

+1 -1
+1 -1
include/linux/util_macros.h
··· 85 85 * @ptr: A pointer to assign if @cond is true. 86 86 * 87 87 * PTR_IF(IS_ENABLED(CONFIG_FOO), ptr) evaluates to @ptr if CONFIG_FOO is set 88 - * to 'y' or 'm', or to NULL otherwise. The (ptr) argument must be a pointer. 88 + * to 'y' or 'm', or to NULL otherwise. The @ptr argument must be a pointer. 89 89 * 90 90 * The macro can be very useful to help compiler dropping dead code. 91 91 *