time: fix comment error, change %0 to 0
PATCH 1/1 time: fix comment error, change %0 to 0
Change %0 to 0 in kernel-doc comments.
Signed-off-by Wang Jinchao <[email protected]>
--- kernel/time/time.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
kernel/time/time.c +8 -8
@@ -866,7 +866,7 @@ struct timespec64 timespec64_add_safe(const struct timespec64 lhs,* * Handles compat or 32-bit modes. * -* Return: %0 on success or negative errno on error +* Return: 0 on success or negative errno on error */ int get_timespec64 (struct timespec64 *ts,const struct __kernel_timespec __user *uts)
@@ -897,7 +897,7 @@ EXPORT_SYMBOL_GPL(get_timespec64);* @ts: input &struct timespec64 * @uts: user's &struct __kernel_timespec * -* Return: %0 on success or negative errno on error +* Return: 0 on success or negative errno on error */ int put_timespec64 (const struct timespec64 *ts,struct __kernel_timespec __user *uts)
@@ -944,7 +944,7 @@ static int __put_old_timespec32(const struct timespec64 *ts64,* * Handles X86_X32_ABI compatibility conversion. * -* Return: %0 on success or negative errno on error +* Return: 0 on success or negative errno on error */ int get_old_timespec32 (struct timespec64 *ts,const void __user *uts) {
@@ -963,7 +963,7 @@ EXPORT_SYMBOL_GPL(get_old_timespec32);* * Handles X86_X32_ABI compatibility conversion. * -* Return: %0 on success or negative errno on error +* Return: 0 on success or negative errno on error */ int put_old_timespec32 (const struct timespec64 *ts,void __user *uts) {
@@ -979,7 +979,7 @@ EXPORT_SYMBOL_GPL(put_old_timespec32);* @it: destination &struct itimerspec64 * @uit: user's &struct __kernel_itimerspec * -* Return: %0 on success or negative errno on error +* Return: 0 on success or negative errno on error */ int get_itimerspec64 (struct itimerspec64 *it,const struct __kernel_itimerspec __user *uit)
@@ -1002,7 +1002,7 @@ EXPORT_SYMBOL_GPL(get_itimerspec64);* @it: input &struct itimerspec64 * @uit: user's &struct __kernel_itimerspec * -* Return: %0 on success or negative errno on error +* Return: 0 on success or negative errno on error */ int put_itimerspec64 (const struct itimerspec64 *it,struct __kernel_itimerspec __user *uit)
@@ -1024,7 +1024,7 @@ EXPORT_SYMBOL_GPL(put_itimerspec64);* @its: destination &struct itimerspec64 * @uits: user's &struct old_itimerspec32 * -* Return: %0 on success or negative errno on error +* Return: 0 on success or negative errno on error */ int get_old_itimerspec32 (struct itimerspec64 *its,const struct old_itimerspec32 __user *uits)
@@ -1043,7 +1043,7 @@ EXPORT_SYMBOL_GPL(get_old_itimerspec32);* @its: input &struct itimerspec64 * @uits: user's &struct old_itimerspec32 * -* Return: %0 on success or negative errno on error +* Return: 0 on success or negative errno on error */ int put_old_itimerspec32 (const struct itimerspec64 *its,struct old_itimerspec32 __user *uits)
Signature · 1 line
2.45.0
[tip: timers/core] time: Remove '%' from numeric constant in kernel-doc comment
The following commit has been merged into the timers/core branch of tip:
The following commit has been merged into the timers/core branch of tip:
Commit-ID: a849881a9e5426cb4fa00660529bc501718ef85b Gitweb: https://git.kernel.org/tip/a849881a9e5426cb4fa00660529bc501718ef85b Author: Wang Jinchao <[email protected]> AuthorDate: Wed, 09 Oct 2024 10:21:35 +08:00 Committer: Thomas Gleixner <[email protected]> CommitterDate: Wed, 16 Oct 2024 00:30:26 +02:00
time: Remove '%' from numeric constant in kernel-doc comment
Change %0 to 0 in kernel-doc comments. %0 is not valid.
Signed-off-by Wang Jinchao <[email protected]>
Signed-off-by Thomas Gleixner <[email protected]>
--- kernel/time/time.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
kernel/time/time.c +8 -8
@@ -866,7 +866,7 @@ struct timespec64 timespec64_add_safe(const struct timespec64 lhs,* * Handles compat or 32-bit modes. * -* Return: %0 on success or negative errno on error +* Return: 0 on success or negative errno on error */ int get_timespec64 (struct timespec64 *ts,const struct __kernel_timespec __user *uts)
@@ -897,7 +897,7 @@ EXPORT_SYMBOL_GPL(get_timespec64);* @ts: input &struct timespec64 * @uts: user's &struct __kernel_timespec * -* Return: %0 on success or negative errno on error +* Return: 0 on success or negative errno on error */ int put_timespec64 (const struct timespec64 *ts,struct __kernel_timespec __user *uts)
@@ -944,7 +944,7 @@ static int __put_old_timespec32(const struct timespec64 *ts64,* * Handles X86_X32_ABI compatibility conversion. * -* Return: %0 on success or negative errno on error +* Return: 0 on success or negative errno on error */ int get_old_timespec32 (struct timespec64 *ts,const void __user *uts) {
@@ -963,7 +963,7 @@ EXPORT_SYMBOL_GPL(get_old_timespec32);* * Handles X86_X32_ABI compatibility conversion. * -* Return: %0 on success or negative errno on error +* Return: 0 on success or negative errno on error */ int put_old_timespec32 (const struct timespec64 *ts,void __user *uts) {
@@ -979,7 +979,7 @@ EXPORT_SYMBOL_GPL(put_old_timespec32);* @it: destination &struct itimerspec64 * @uit: user's &struct __kernel_itimerspec * -* Return: %0 on success or negative errno on error +* Return: 0 on success or negative errno on error */ int get_itimerspec64 (struct itimerspec64 *it,const struct __kernel_itimerspec __user *uit)
@@ -1002,7 +1002,7 @@ EXPORT_SYMBOL_GPL(get_itimerspec64);* @it: input &struct itimerspec64 * @uit: user's &struct __kernel_itimerspec * -* Return: %0 on success or negative errno on error +* Return: 0 on success or negative errno on error */ int put_itimerspec64 (const struct itimerspec64 *it,struct __kernel_itimerspec __user *uit)
@@ -1024,7 +1024,7 @@ EXPORT_SYMBOL_GPL(put_itimerspec64);* @its: destination &struct itimerspec64 * @uits: user's &struct old_itimerspec32 * -* Return: %0 on success or negative errno on error +* Return: 0 on success or negative errno on error */ int get_old_itimerspec32 (struct itimerspec64 *its,const struct old_itimerspec32 __user *uits)
@@ -1043,7 +1043,7 @@ EXPORT_SYMBOL_GPL(get_old_itimerspec32);* @its: input &struct itimerspec64 * @uits: user's &struct old_itimerspec32 * -* Return: %0 on success or negative errno on error +* Return: 0 on success or negative errno on error */ int put_old_itimerspec32 (const struct itimerspec64 *its,struct old_itimerspec32 __user *uits)