2021-09-26 08:02:06

by Harris Song

[permalink] [raw]
Subject: [PATCH] time:Fix an incorrect function name in the comment

We fix the following warning when building kernel with W=1:
kernel/time/time.c:479: warning: expecting prototype for set_normalized_timespec(). Prototype was for set_normalized_timespec64() instead

Signed-off-by: Kai Song <[email protected]>
---
kernel/time/time.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/time/time.c b/kernel/time/time.c
index 29923b20e0e4..77bac462b7da 100644
--- a/kernel/time/time.c
+++ b/kernel/time/time.c
@@ -462,7 +462,7 @@ struct __kernel_old_timeval ns_to_kernel_old_timeval(const s64 nsec)
EXPORT_SYMBOL(ns_to_kernel_old_timeval);

/**
- * set_normalized_timespec - set timespec sec and nsec parts and normalize
+ * set_normalized_timespec64 - set timespec sec and nsec parts and normalize
*
* @ts: pointer to timespec variable to be set
* @sec: seconds to set
--
2.27.0


2021-09-30 05:35:38

by Stephen Boyd

[permalink] [raw]
Subject: Re: [PATCH] time:Fix an incorrect function name in the comment

Quoting Kai Song (2021-09-24 10:43:23)
> We fix the following warning when building kernel with W=1:
> kernel/time/time.c:479: warning: expecting prototype for set_normalized_timespec(). Prototype was for set_normalized_timespec64() instead
>
> Signed-off-by: Kai Song <[email protected]>
> ---

Reviewed-by: Stephen Boyd <[email protected]>