-
Notifications
You must be signed in to change notification settings - Fork 7.5k
arch: arm: nxp: mpu: fix constant expression result errors #13909
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
arch: arm: nxp: mpu: fix constant expression result errors #13909
Conversation
if (_region_allocate_and_init(index, | ||
(const struct nxp_mpu_region *)&added_sram_region) | ||
== -EINVAL) { | ||
return -EINVAL; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would a better fix be:
if (_region_allocate_and_init(index,
(const struct nxp_mpu_region *)&added_sram_region)
< 0) {
return -EINVAL;
}
??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's fine, i will apply this.
This commit fixes two Constant Expression Result errors, in the NXP MPU driver due to incompatible integer types. Fixes zephyrproject-rtos#13836. Fixes zephyrproject-rtos#13865. Signed-off-by: Ioannis Glaropoulos <[email protected]>
4b5b519
to
552141e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MaureenHelm, updated, based on your suggestion, pls, revisit.
Codecov Report
@@ Coverage Diff @@
## master #13909 +/- ##
==========================================
- Coverage 52.29% 52.25% -0.04%
==========================================
Files 307 307
Lines 45429 45429
Branches 10506 10506
==========================================
- Hits 23756 23740 -16
- Misses 16887 16899 +12
- Partials 4786 4790 +4
Continue to review full report at Codecov.
|
This commit fixes two Constant Expression Result errors,
in the NXP MPU driver due to incompatible integer types.
Fixes #13836.
Fixes #13865.
Signed-off-by: Ioannis Glaropoulos [email protected]