Public bug reported:

timers/raw_skew subtest from kernel selftests fails to build on xenial:

17:30:43 DEBUG| [stdout] make[1]: Entering directory 
'/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/timers'
17:30:43 DEBUG| [stdout] gcc -O3 -Wl,-no-as-needed -Wall -DKTEST  -lrt 
-lpthread  posix_timers.c   -o posix_timers
17:30:44 DEBUG| [stdout] gcc -O3 -Wl,-no-as-needed -Wall -DKTEST  -lrt 
-lpthread  nanosleep.c   -o nanosleep
17:30:44 DEBUG| [stdout] gcc -O3 -Wl,-no-as-needed -Wall -DKTEST  -lrt 
-lpthread  nsleep-lat.c   -o nsleep-lat
17:30:44 DEBUG| [stdout] gcc -O3 -Wl,-no-as-needed -Wall -DKTEST  -lrt 
-lpthread  set-timer-lat.c   -o set-timer-lat
17:30:45 DEBUG| [stdout] gcc -O3 -Wl,-no-as-needed -Wall -DKTEST  -lrt 
-lpthread  mqueue-lat.c   -o mqueue-lat
17:30:45 DEBUG| [stdout] gcc -O3 -Wl,-no-as-needed -Wall -DKTEST  -lrt 
-lpthread  inconsistency-check.c   -o inconsistency-check
17:30:45 DEBUG| [stdout] gcc -O3 -Wl,-no-as-needed -Wall -DKTEST  -lrt 
-lpthread  raw_skew.c   -o raw_skew
17:30:45 ERROR| [stderr] raw_skew.c: In function ‘main’:
17:30:45 ERROR| [stderr] raw_skew.c:152:11: error: too many arguments to 
function ‘ksft_exit_skip’
17:30:45 ERROR| [stderr]     return ksft_exit_skip("The clock was adjusted 
externally. Shutdown NTPd or other time sync daemons\n");
17:30:45 ERROR| [stderr]            ^
17:30:45 ERROR| [stderr] In file included from raw_skew.c:29:0:
17:30:45 ERROR| [stderr] ../kselftest.h:64:19: note: declared here
17:30:45 ERROR| [stderr]  static inline int ksft_exit_skip(void)
17:30:45 ERROR| [stderr]                    ^
17:30:45 DEBUG| [stdout] <builtin>: recipe for target 'raw_skew' failed

Upstream commit 1416270f4a1a "selftest: timers: Tweak raw_skew to SKIP
when ADJ_OFFSET/other clock adjustments are in progress" from linux 4.19
was backported incorrectly to stable branch linux-4.4.y. We picked up
the faulty backport with a stable update for xenial:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1798587

In 4.19, as opposed to 4.4 where ksft_exit_skip() does not take any
arguments, the function is defined as

static inline int ksft_exit_skip(const char *msg, ...)

The backport of the patch should not pass a string to the function.

** Affects: ubuntu-kernel-tests
     Importance: Undecided
         Status: New

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: Invalid

** Affects: linux (Ubuntu Xenial)
     Importance: Undecided
         Status: Triaged

** Also affects: linux (Ubuntu)
   Importance: Undecided
       Status: New

** Also affects: linux (Ubuntu Xenial)
   Importance: Undecided
       Status: New

** Changed in: linux (Ubuntu Xenial)
       Status: New => Triaged

** Changed in: linux (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2098848

Title:
  raw_skew test in kernel selftests for timers fails to build

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/2098848/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to