Skip to content

Commit 780cb57

Browse files
Leo-YanKernel Patches Daemon
authored andcommitted
perf test coresight: Dismiss clang warning for memcpy thread
clang-18.1.3 on Ubuntu 24.04.2 reports warning: memcpy_thread.c:30:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 30 | } | ^ Dismiss the warning with returning NULL from the thread function. Signed-off-by: Leo Yan <[email protected]>
1 parent 54b7be4 commit 780cb57

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/perf/tests/shell/coresight/memcpy_thread/memcpy_thread.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ static void *thrfn(void *arg)
2727
}
2828
for (i = 0; i < len; i++)
2929
memcpy(dst, src, a->size * 1024);
30+
31+
return NULL;
3032
}
3133

3234
static pthread_t new_thr(void *(*fn) (void *arg), void *arg)

0 commit comments

Comments
 (0)