Skip to content

Commit

Permalink
Merge tag 'linux-kselftest-fixes-6.5-rc3' of git://git.kernel.org/pub…
Browse files Browse the repository at this point in the history
…/scm/linux/kernel/git/shuah/linux-kselftest

Pull Kselftest fixes from Shuah Khan:
 "Fixes to bugs that are interfering with arm64 and risc workflows. Also
  two fixes to timer and mincore tests that are causing test failures"

* tag 'linux-kselftest-fixes-6.5-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
  selftests/arm64: fix build failure during the "emit_tests" step
  selftests/riscv: fix potential build failure during the "emit_tests" step
  tools: timers: fix freq average calculation
  selftests/mincore: fix skip condition for check_huge_pages test
  • Loading branch information
Linus Torvalds committed Jul 18, 2023
2 parents f2f393c + 569f8b5 commit 74f1456
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tools/testing/selftests/arm64/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ run_tests: all
done

# Avoid any output on non arm64 on emit_tests
emit_tests: all
emit_tests:
@for DIR in $(ARM64_SUBTARGETS); do \
BUILD_TARGET=$(OUTPUT)/$$DIR; \
make OUTPUT=$$BUILD_TARGET -C $$DIR $@; \
Expand Down
4 changes: 2 additions & 2 deletions tools/testing/selftests/mincore/mincore_selftest.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ TEST(check_huge_pages)
MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB,
-1, 0);
if (addr == MAP_FAILED) {
if (errno == ENOMEM)
SKIP(return, "No huge pages available.");
if (errno == ENOMEM || errno == EINVAL)
SKIP(return, "No huge pages available or CONFIG_HUGETLB_PAGE disabled.");
else
TH_LOG("mmap error: %s", strerror(errno));
}
Expand Down
2 changes: 1 addition & 1 deletion tools/testing/selftests/riscv/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ run_tests: all
done

# Avoid any output on non riscv on emit_tests
emit_tests: all
emit_tests:
@for DIR in $(RISCV_SUBTARGETS); do \
BUILD_TARGET=$(OUTPUT)/$$DIR; \
$(MAKE) OUTPUT=$$BUILD_TARGET -C $$DIR $@; \
Expand Down
3 changes: 1 addition & 2 deletions tools/testing/selftests/timers/raw_skew.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ int main(int argc, char **argv)
printf("%lld.%i(est)", eppm/1000, abs((int)(eppm%1000)));

/* Avg the two actual freq samples adjtimex gave us */
ppm = (tx1.freq + tx2.freq) * 1000 / 2;
ppm = (long long)tx1.freq * 1000;
ppm = (long long)(tx1.freq + tx2.freq) * 1000 / 2;
ppm = shift_right(ppm, 16);
printf(" %lld.%i(act)", ppm/1000, abs((int)(ppm%1000)));

Expand Down

0 comments on commit 74f1456

Please sign in to comment.