]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
y2038: make do_gettimeofday() and get_seconds() inline
authorArnd Bergmann <arnd@arndb.de>
Tue, 14 Aug 2018 13:18:20 +0000 (15:18 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 26 Nov 2019 12:16:58 +0000 (13:16 +0100)
commit43553c06e27874538612544808b2347a3d184200
tree86ac4789bca41b4baa3809623be0a197da06202e
parent2b1f19531ee5455fea54aaff2e3a7f47fffdb403
y2038: make do_gettimeofday() and get_seconds() inline

BugLink: https://bugs.launchpad.net/bugs/1853915
[ Upstream commit 33e26418193f58d1895f2f968e1953b1caf8deb7 ]

get_seconds() and do_gettimeofday() are only used by a few modules now any
more (waiting for the respective patches to get accepted), and they are
among the last holdouts of code that is not y2038 safe in the core kernel.

Move the implementation into the timekeeping32.h header to clean up
the core kernel and isolate the old interfaces further.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
include/linux/timekeeping32.h
kernel/time/time.c
kernel/time/timekeeping.c