FYI, we noticed the following commit (built with gcc-7):
commit: 18e589f6a0591296a9483aa91187f2ccc4e0b616 ("selftest: timers: Tweak raw_skew
to SKIP when ADJ_OFFSET/other clock adjustments are in progress")
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git linux-4.9.y
in testcase: kernel-selftests
with following parameters:
group: kselftests-03
test-description: The kernel contains a set of "self tests" under the
tools/testing/selftests/ directory. These are intended to be small unit tests to exercise
individual code paths in the kernel.
test-url:
https://www.kernel.org/doc/Documentation/kselftest.txt
on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 8G
caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
If you fix the issue, kindly add following tag
Reported-by: kernel test robot <rong.a.chen(a)intel.com>
KERNEL SELFTESTS: linux_headers_dir is
/usr/src/linux-headers-x86_64-rhel-7.6-18e589f6a0591296a9483aa91187f2ccc4e0b616
2020-04-13 21:44:27 ln -sf /usr/bin/clang
2020-04-13 21:44:27 ln -sf /usr/bin/llc
2020-04-13 21:44:27 make run_tests -C timers
make: Entering directory
'/usr/src/perf_selftests-x86_64-rhel-7.6-18e589f6a0591296a9483aa91187f2ccc4e0b616/tools/testing/selftests/timers'
gcc -O3 -Wl,-no-as-needed -Wall -DKTEST -lrt -lpthread posix_timers.c -o posix_timers
gcc -O3 -Wl,-no-as-needed -Wall -DKTEST -lrt -lpthread nanosleep.c -o nanosleep
gcc -O3 -Wl,-no-as-needed -Wall -DKTEST -lrt -lpthread nsleep-lat.c -o nsleep-lat
gcc -O3 -Wl,-no-as-needed -Wall -DKTEST -lrt -lpthread set-timer-lat.c -o
set-timer-lat
gcc -O3 -Wl,-no-as-needed -Wall -DKTEST -lrt -lpthread mqueue-lat.c -o mqueue-lat
gcc -O3 -Wl,-no-as-needed -Wall -DKTEST -lrt -lpthread inconsistency-check.c -o
inconsistency-check
gcc -O3 -Wl,-no-as-needed -Wall -DKTEST -lrt -lpthread raw_skew.c -o raw_skew
raw_skew.c: In function ‘main’:
raw_skew.c:152:11: error: too many arguments to function ‘ksft_exit_skip’
return ksft_exit_skip("The clock was adjusted externally. Shutdown NTPd or other
time sync daemons\n");
^~~~~~~~~~~~~~
In file included from raw_skew.c:29:0:
../kselftest.h:64:19: note: declared here
static inline int ksft_exit_skip(void)
^~~~~~~~~~~~~~
<builtin>: recipe for target 'raw_skew' failed
make: *** [raw_skew] Error 1
make: Leaving directory
'/usr/src/perf_selftests-x86_64-rhel-7.6-18e589f6a0591296a9483aa91187f2ccc4e0b616/tools/testing/selftests/timers'
To reproduce:
# build kernel
cd linux
cp config-4.9.128-00097-g18e589f6a0591 .config
make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage
git clone
https://github.com/intel/lkp-tests.git
cd lkp-tests
bin/lkp qemu -k <bzImage> job-script # job-script is attached in this email
Thanks,
Rong Chen