[PATCH 4.19 0/2] kselftest fails to compile on 4.19

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In the linux-4.19.y kernel kcmp_test and compaction_test kselftest fails to compile.

kcmp_test.c: In function ‘main’:
kcmp_test.c:92:17: warning: implicit declaration of function ‘ksft_set_plan’ [-Wimplicit-function-declaration]
  92 |         ksft_set_plan(3);
   |
         ^~~~~~~~~~~~~
and

compaction_test.c: In function ‘main’:
compaction_test.c:186:9: warning: implicit declaration of function ‘ksft_set_plan’ [-Wimplicit-function-declaration]
 186 |   ksft_set_plan(1);
   |   ^~~~~~~~~~~~~

The function definition for ksft_set_plan() is introduced by commit
5821ba969511 ("selftests: Add test plan API to kselftest.h and adjust
callers") which is present from linux-5.2.y onwards.

Samasth Norway Ananda (2):
  selftests/vm: remove call to ksft_set_plan()
  selftests/kcmp: remove call to ksft_set_plan()

 tools/testing/selftests/kcmp/kcmp_test.c     | 1 -
 tools/testing/selftests/vm/compaction_test.c | 2 --
 2 files changed, 3 deletions(-)

-- 
2.45.2





[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux