diff --git a/tools/lkl/lib/posix-host.c b/tools/lkl/lib/posix-host.c index db63ed7e35fb19..f1ae3a2e6dbb37 100644 --- a/tools/lkl/lib/posix-host.c +++ b/tools/lkl/lib/posix-host.c @@ -186,7 +186,7 @@ static void mutex_free(struct lkl_mutex *_mutex) static lkl_thread_t thread_create(void (*fn)(void *), void *arg) { pthread_t thread; - if (WARN_PTHREAD(pthread_create(&thread, NULL, (void* (*)(void *))fn, arg))) + if (WARN_PTHREAD(pthread_create(&thread, NULL, (void *)fn, arg))) return 0; else return (lkl_thread_t) thread; @@ -267,7 +267,7 @@ static void *timer_alloc(void (*fn)(void *), void *arg) .sigev_value = { .sival_ptr = arg, }, - .sigev_notify_function = (void (*)(union sigval))fn, + .sigev_notify_function = (void (*)())fn, }; err = timer_create(CLOCK_REALTIME, &se, &timer);