Skip to content

Conversation

@tpambor
Copy link
Contributor

@tpambor tpambor commented Jun 17, 2025

Update the input_thread function signature to match the expected k_thread_entry_t type

typedef void (*k_thread_entry_t)(void *p1, void *p2, void *p3);

This fixes the following runtime error generated by UBSAN:

zephyr/lib/os/thread_entry.c:48:2: runtime error: call to function input_thread through pointer to incorrect function type 'void (*)(void *, void *, void *)'
zephyr/subsys/input/input.c:77: note: input_thread defined here

Update the input_thread function signature to match the expected
k_thread_entry_t type:
typedef void (*k_thread_entry_t)(void *p1, void *p2, void *p3);

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
@github-actions github-actions bot added the area: Input Input Subsystem and Drivers label Jun 17, 2025
@github-actions github-actions bot requested a review from fabiobaltieri June 17, 2025 17:43
@sonarqubecloud
Copy link

@fabiobaltieri fabiobaltieri added the Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc. label Jun 17, 2025
@fabiobaltieri fabiobaltieri requested a review from kartben June 17, 2025 17:48
@kartben kartben merged commit 58527c1 into zephyrproject-rtos:main Jun 18, 2025
30 checks passed
@ghost ghost mentioned this pull request Jul 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Input Input Subsystem and Drivers Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants