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 2.28: check_names: extend typo check to PSA macro/enum names #6586

Merged
merged 3 commits into from
Dec 13, 2022

Conversation

lpy4105
Copy link
Contributor

@lpy4105 lpy4105 commented Nov 11, 2022

Description

This PR is a backport of #6558 to branch mbedtls-2.28 which resolves the issue #6416.

Typos of PSA macro and enum names are not checked by check_names.py.
This commit extend the check list to include PSA_XXX references.
The words should be macro/enum names defined as public_macros,
internal_macros, private_macros and enums. This commit also extend
the scope of enums to include those are defined in library/*.c.
A new type of macros "private", which are defined in library/*.c was
also added.

Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
This macro is expected to be defined out of the library, and there
is no definition in the library. Thus it needs to be excluded from
typo check.

Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
Fix the PSA_XXX typos detected by check_names.py.

Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
@lpy4105 lpy4105 added enhancement needs-review Every commit must be reviewed by at least two team members, needs-reviewer This PR needs someone to pick it up for review size-s Estimated task size: small (~2d) component-test Test framework and CI scripts priority-medium Medium priority - this can be reviewed as time permits labels Nov 11, 2022
@lpy4105
Copy link
Contributor Author

lpy4105 commented Nov 18, 2022

Internal CI pass

@AndrzejKurek
Copy link
Contributor

Backport looks good, original PR has one suggested improvement.

@AndrzejKurek AndrzejKurek removed the needs-reviewer This PR needs someone to pick it up for review label Nov 23, 2022
Copy link
Contributor

@yuhaoth yuhaoth left a comment

Choose a reason for hiding this comment

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

LGTM

@yuhaoth yuhaoth added the approved Design and code approved - may be waiting for CI or backports label Dec 12, 2022
@mpg mpg added needs-ci Needs to pass CI tests and removed needs-review Every commit must be reviewed by at least two team members, needs-ci Needs to pass CI tests labels Dec 12, 2022
@mpg mpg merged commit 1d1baa7 into Mbed-TLS:mbedtls-2.28 Dec 13, 2022
@lpy4105 lpy4105 deleted the 2.28-check-psa-name-typo branch December 14, 2022 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Design and code approved - may be waiting for CI or backports component-test Test framework and CI scripts enhancement priority-medium Medium priority - this can be reviewed as time permits size-s Estimated task size: small (~2d)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants