lkml.org 
[lkml]   [2022]   [May]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] linux/time32.h: correct ns_to_kernel_old_timeval prototype
Date
The function argument is defined with const identifier in
kernel/time/time.c but the prototype looks different between time.c and
time32.h. There is a review[1] why it was omitted during review stage but
they should be matched.

- The function is defined in kernel/time/time.c as below:
struct __kernel_old_timeval ns_to_kernel_old_timeval(const s64 nsec)

[1]: https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1637458.html
Fixes: a84d1169164b ("y2038: Introduce struct __kernel_old_timeval")
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
---
include/linux/time32.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/time32.h b/include/linux/time32.h
index 83a400b6ba99..88c135d4c557 100644
--- a/include/linux/time32.h
+++ b/include/linux/time32.h
@@ -67,6 +67,6 @@ int put_old_timex32(struct old_timex32 __user *, const struct __kernel_timex *);
*
* Returns the timeval representation of the nsec parameter.
*/
-extern struct __kernel_old_timeval ns_to_kernel_old_timeval(s64 nsec);
+extern struct __kernel_old_timeval ns_to_kernel_old_timeval(const s64 nsec);

#endif
--
2.36.1
\
 
 \ /
  Last update: 2022-05-31 08:45    [W:2.593 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site