Skip to content

Bluetooth: Add missing includes #88528

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

Thalley
Copy link
Collaborator

@Thalley Thalley commented Apr 11, 2025

This PR adds missing includes in all Bluetooth host files, as well as fixing some typos found during the same lookthrough.

The purpose of this is to help enforce IWYU (include what you use) and avoid any possible compilation issues if you include things in a way that hasn't been otherwise tested.

There were 2 circular dependencies found that should get fixed in a followed (see TODOs in the commits).

@Thalley Thalley requested a review from Copilot April 11, 2025 21:09
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 64 out of 65 changed files in this pull request and generated 3 comments.

Files not reviewed (1)
  • subsys/bluetooth/host/Kconfig: Language not supported
Comments suppressed due to low confidence (1)

include/zephyr/bluetooth/att.h:152

  • Corrected a spelling typo in the parameter documentation: 'beares' changed to 'bearers'.
* @param num_channels The number of Enhanced ATT bearers to request.

@Thalley Thalley marked this pull request as ready for review April 11, 2025 23:38
@github-actions github-actions bot added area: Bluetooth ISO Bluetooth LE Isochronous Channels area: Bluetooth Host Bluetooth Host (excluding BR/EDR) area: Bluetooth labels Apr 11, 2025
@Thalley Thalley force-pushed the bluetooth_includes branch from abe60e4 to 7d0e763 Compare April 12, 2025 23:05
@Thalley Thalley requested a review from jhedberg April 12, 2025 23:07
jhedberg
jhedberg previously approved these changes Apr 13, 2025
alwa-nordic
alwa-nordic previously approved these changes Apr 14, 2025
Thalley added 3 commits April 16, 2025 16:53
Added missing includes and fixed typos in the header files
for Bluetooth.

There is one exception in hci_vs.h where `struct arch_esf`
is still missing an include, but that is because that
is only specific for ARM.

Signed-off-by: Emil Gydesen <[email protected]>
Added missing includes and fixed typos in the files.

Signed-off-by: Emil Gydesen <[email protected]>
Added missing includes and fixed typos in the files.

Signed-off-by: Emil Gydesen <[email protected]>
@Thalley Thalley dismissed stale reviews from alwa-nordic and jhedberg via 4893895 April 16, 2025 14:53
@Thalley Thalley force-pushed the bluetooth_includes branch from 7d0e763 to 4893895 Compare April 16, 2025 14:53
@Thalley
Copy link
Collaborator Author

Thalley commented Apr 16, 2025

Fixed merge conflict

@Thalley Thalley requested review from alwa-nordic and jhedberg April 16, 2025 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Bluetooth Host Bluetooth Host (excluding BR/EDR) area: Bluetooth ISO Bluetooth LE Isochronous Channels area: Bluetooth
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants