[Backport v4.0-branch] lib: os: mpsc_pbuf: do not wait when spinlock is held #168772
Annotations
1 error, 1 warning, and 1 notice
Run Compliance Tests
Process completed with exit code 1.
|
check-warns:
ClangFormat.txt#L1
See https://docs.zephyrproject.org/latest/contribute/guidelines.html#clang-format for more details.
You may want to run clang-format on this change:
- packet = (struct test_data_var *)mpsc_pbuf_alloc(
- &buffer, 32, K_MSEC(10));
+ packet = (struct test_data_var *)mpsc_pbuf_alloc(&buffer, 32, K_MSEC(10));
zassert_not_null(packet);
K_SPINLOCK(&l) {
/* Try to allocate another buf */
- packet = (struct test_data_var *)mpsc_pbuf_alloc(
- &buffer, 32, K_MSEC(10));
+ packet = (struct test_data_var *)mpsc_pbuf_alloc(&buffer, 32, K_MSEC(10));
File:tests/lib/mpsc_pbuf/src/main.c
Line:1315
|
Run Compliance Tests:
tests/lib/mpsc_pbuf/src/main.c#L1315
tests/lib/mpsc_pbuf/src/main.c:1315
- packet = (struct test_data_var *)mpsc_pbuf_alloc(
- &buffer, 32, K_MSEC(10));
+ packet = (struct test_data_var *)mpsc_pbuf_alloc(&buffer, 32, K_MSEC(10));
zassert_not_null(packet);
K_SPINLOCK(&l) {
/* Try to allocate another buf */
- packet = (struct test_data_var *)mpsc_pbuf_alloc(
- &buffer, 32, K_MSEC(10));
+ packet = (struct test_data_var *)mpsc_pbuf_alloc(&buffer, 32, K_MSEC(10));
|
Loading