]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: timers: valid-adjtimex: build fix for newer toolchains
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 13 Jul 2022 20:46:13 +0000 (22:46 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:23:30 +0000 (14:23 +0200)
commit6fd4e88232adffa977153f9a85b2191a8270db48
treeaa1438f4deb6717b903c086038f2eece87a74001
parentbbaaa6d79cc360fca79d78209dfb977c3d944705
selftests: timers: valid-adjtimex: build fix for newer toolchains

[ Upstream commit 92f83690671df056f2628cecd4d07f405269cbef ]

Toolchains with an include file 'sys/timex.h' based on 3.18 will have a
'clock_adjtime' definition added, so it can't be static in the code:

valid-adjtimex.c:43:12: error: static declaration of ‘clock_adjtime’ follows non-static declaration

Fixes: db12473a5912 ("kselftests: timers: Add adjtimex SETOFFSET validity tests")
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: John Stultz <jstultz@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/timers/valid-adjtimex.c