Skip to content

drivers: modem: replace K_SPINLOCK macro where needed #90200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

FKainka
Copy link
Contributor

@FKainka FKainka commented May 20, 2025

This PR is related to the following Zephyr PR:
#81431
Some compilers (e.g. arm-zephyr-eabi-gcc) don't understand
the K_SPINLOCK() macro and therefore do warn about
uninitialized variables in the modem related modules.
Fix: Replaced the K_SPINLOCK macro with explicit k_spin_lock/k_spin_unlock calls
only at relevant locations in the modem subsystem.

Signed-off-by: Fabian Kainka f.kainka@gmx.de

…needed

This PR is related to the following Zephyr PR:
zephyrproject-rtos#81431
Some compilers (e.g. arm-zephyr-eabi-gcc) don't understand
the K_SPINLOCK() macro and therefore do warn about
uninitialized variables in the modem related modules.
Fix: Replaced the K_SPINLOCK macro with explicit k_spin_lock/k_spin_unlock calls
only at relevant locations in the modem subsystem.

Signed-off-by: Fabian Kainka <f.kainka@gmx.de>
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants