-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[Silabs] Removing the warning flags for 917SoC #40003
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
base: master
Are you sure you want to change the base?
Conversation
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.
Code Review
This pull request removes unused variables for the 917 SoC to fix compiler warnings. The changes across all files correctly address this by either removing the variables, moving them to the correct scope, or using [[maybe_unused]]
. A potential bug was identified in OTAImageProcessorImpl::HandleProcessBlock
where error return codes are not being checked.
PR #40003: Size comparison from e560a10 to 5079474 Full report (51 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, tizen)
|
PR #40003: Size comparison from f634285 to ded561f Full report (5 builds for cc32xx, stm32, tizen)
|
PR #40003: Size comparison from f634285 to ed758b3 Full report (59 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
@@ -106,7 +106,9 @@ typedef struct | |||
uint8_t public_key[2 * NUM_ECC_BYTES]; | |||
} mbedtls_uecc_keypair; | |||
|
|||
#if !(SLI_SI91X_MCU_INTERFACE) |
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.
This is the SiWX specific file - when would this define not be set?
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.
this was kept, if trng from hardware is not used, for future usage/device where trng is not supported.
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.
I'm not sure i understand the comment - the define is the 917 SoC and that platform is the only to use that file if i am not mistaken?
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.
okay, so if a platform doesn't support H/W TRNG and wanted to use the tinycrypt then this can be borrowed.
Summary
There were multiple unused variable for the 917 SoC
Removing the flags and fixing the warning
Updating the submodule to fix the build for BRD4342A boards.
Testing
Local build for the 917 SoC.