]> 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>
Thu, 25 Aug 2022 09:17:43 +0000 (11:17 +0200)
commit37aa3fcb12e67e4559ed1ca1a23b07eab1d3daf5
treea7eb71099a3942f412fcd150b216f461a6668798
parentf4e0ddd2c70f892662f4d02d04b0861f2c9a8b1c
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