gcc 6 complains: arch/x86/tests/intel-cqm.c: In function 'spawn': arch/x86/tests/intel-cqm.c:21:3: error: statement is indented as if it were guarded by... [-Werror=misleading-indentation] sleep(5); ^~~~~ arch/x86/tests/intel-cqm.c:20:2: note: ...this 'while' clause, but it is not while(1); ^~~~~ Fixes: 035827e9f2bd ("perf tests: Add Intel CQM test") Signed-off-by: Ben Hutchings --- tools/perf/arch/x86/tests/intel-cqm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/perf/arch/x86/tests/intel-cqm.c b/tools/perf/arch/x86/tests/intel-cqm.c index d28c1b6..bd123a1 100644 --- a/tools/perf/arch/x86/tests/intel-cqm.c +++ b/tools/perf/arch/x86/tests/intel-cqm.c @@ -17,8 +17,9 @@ static pid_t spawn(void) if (pid) return pid; - while(1); - sleep(5); + while (1) + ; + return 0; }