Commit 7639eddf authored by Cheng Jian's avatar Cheng Jian Committed by Yang Yingliang
Browse files

selftest/membarrier: fix build error



hulk inclusion
category: bugzilla
bugzilla: 28332
CVE: NA

-------------------------------------------------

commit 2293e84612ef ("selftests, sched/membarrier: Add multi-threaded test")
add a new test for membarrier. Some non-existent functions were used.

ksft_set_plan() was introduced by the following commit :
	5821ba96 ("selftests: Add test plan API to kselftest.h and adjust callers")
which was not be merged.

so we get the next error when compile this testcase :
	membarrier_test_single_thread.c: In function 'main':
	membarrier_test_single_thread.c:15:2: warning: implicit declaration of function 'ksft_set_plan'; did you mean 'ksft_exit_pass'? [-Wimplicit-function-declaration]
	  ksft_set_plan(13);
	  ^~~~~~~~~~~~~
	  ksft_exit_pass

Fixes :  2293e84612ef ("selftests, sched/membarrier: Add multi-threaded test")
Signed-off-by: default avatarCheng Jian <cj.chengjian@huawei.com>
Reviewed-By: default avatarXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 8b9958f0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment