Files
kernel_arpi/kernel
Youngmin Nam 5bd34b3c34 UPSTREAM: time: Correct the prototype of ns_to_kernel_old_timeval and ns_to_timespec64
In ns_to_kernel_old_timeval() definition, the function argument is defined
with const identifier in kernel/time/time.c, but the prototype in
include/linux/time32.h looks different.

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

- The function is decalared in include/linux/time32.h as below:
  extern struct __kernel_old_timeval ns_to_kernel_old_timeval(s64 nsec);

Because the variable of arithmethic types isn't modified in the calling scope,
there's no need to mark arguments as const, which was already mentioned during
review (Link[1) of the original patch.

Likewise remove the "const" keyword in both definition and declaration of
ns_to_timespec64() as requested by Arnd (Link[2]).

Fixes: a84d116916 ("y2038: Introduce struct __kernel_old_timeval")
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/all/20220712094715.2918823-1-youngmin.nam@samsung.com
Link[1]: https://lore.kernel.org/all/20180310081123.thin6wphgk7tongy@gmail.com/
Link[2]: https://lore.kernel.org/all/CAK8P3a3nknJgEDESGdJH91jMj6R_xydFqWASd8r5BbesdvMBgA@mail.gmail.com/
(cherry picked from commit 46dae32fe625a75f549c3a70edc77b778197bb05)
Signed-off-by: Todd Kjos <tkjos@google.com>
Change-Id: I223421667b583168d4ce95ec1af2f76fef9fcf3d
2022-08-24 14:01:38 -07:00
..
2022-08-02 08:37:15 +02:00
2022-06-14 11:49:05 +02:00
2022-08-04 15:18:41 +02:00
2022-04-20 08:18:54 +02:00
2022-07-13 11:40:42 +02:00
2022-07-13 11:40:42 +02:00
2022-08-02 08:37:15 +02:00
2022-08-02 08:37:15 +02:00
2021-09-08 15:32:35 -07:00
2022-06-14 11:49:05 +02:00
2022-02-23 12:30:26 +01:00
2022-07-22 17:43:50 +02:00
2021-09-08 15:32:34 -07:00
2021-05-07 00:26:33 -07:00
2022-04-24 16:57:32 +02:00
2022-07-13 19:41:43 +02:00
2021-09-28 08:49:54 -07:00
2022-07-22 17:43:50 +02:00
2022-04-24 16:57:32 +02:00
2022-08-02 08:37:15 +02:00