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

HAL: add always_inline attribute for deprecated APIs #2204

Merged
merged 1 commit into from
Oct 5, 2020

Conversation

XuGuohui
Copy link
Member

Problem

If the deprecated APIs are invoked in c files, they might not be inlined by compiler actually, which would encounter "undefined reference xxxx" error.

Solution

Add always_inline attribute for the deprecated functions.

References

N/A


Completeness

  • User is totes amazing for contributing!
  • Contributor has signed CLA (Info here)
  • Problem and Solution clearly stated
  • Run unit/integration/application tests on device
  • Added documentation
  • Added to CHANGELOG.md after merging (add links to docs and issues)

@XuGuohui XuGuohui force-pushed the fix/always_inline_deprecated_apis/ch63831 branch from 5e1525b to d46b26e Compare September 24, 2020 06:09
@XuGuohui XuGuohui added ready to merge PR has been reviewed and tested and removed needs review labels Sep 24, 2020
@avtolstoy avtolstoy modified the milestones: 3.0.0, 2.0.0 Oct 2, 2020
…se APIs are invoked in c file but not inlined by compiler.
@avtolstoy avtolstoy force-pushed the fix/always_inline_deprecated_apis/ch63831 branch from d46b26e to 4344e65 Compare October 5, 2020 19:53
@avtolstoy avtolstoy merged commit da7c0e0 into develop Oct 5, 2020
@avtolstoy avtolstoy deleted the fix/always_inline_deprecated_apis/ch63831 branch October 5, 2020 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ready to merge PR has been reviewed and tested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants