Skip to content
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

[Backport v3.7-branch] Bluetooth: Host: Fix incorrect build assert #77580

Merged
merged 2 commits into from
Aug 31, 2024

Conversation

zephyrbot
Copy link
Collaborator

@zephyrbot zephyrbot commented Aug 26, 2024

Backport 4ab8073~2..4ab8073 from #77543.

Fixes #77594

jhedberg and others added 2 commits August 26, 2024 16:51
We want to make sure `struct closure` fits in the user data, so a user data
size of `sizeof(struct closure)` is valid.

Signed-off-by: Johan Hedberg <[email protected]>
(cherry picked from commit 5736b71)
Very very weird behavior.

Deleting the `options & BT_LE_ADV_OPT_USE_NRPA` branch in
`id.c:bt_id_set_adv_own_addr` makes the test pass. But add a log in that
branch, and you'll see that we never take it in the UT binary..

I don't have time for this, maybe some compiler guru or C language
lawyer can look at that decompiled function and figure out the root
cause.

Someone should also really fix the Bluetooth unit tests and make them
run on any Bluetooth related PR. Also nightly.

Signed-off-by: Jonathan Rico <[email protected]>
(cherry picked from commit 4ab8073)
@nashif nashif merged commit 574a6df into v3.7-branch Aug 31, 2024
32 checks passed
@nashif nashif deleted the backport-77543-to-v3.7-branch branch August 31, 2024 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Bluetooth Host area: Bluetooth Backport Backport PR and backport failure issues
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

6 participants