mcux: drivers: sha, ltc: fix BUILD_ASSERT #857
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.31) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.31 · 113 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.283
Real PR Conversation Timeline
1 comments
"Review active on #857"
general
weight: 0.35
zejiang0jason
fsl_sha.c and fsl_ltc_dpa.c each define their own
BUILD_ASSERTmacro for one compile-time size check. Under Zephyr,fsl_common.halready pulls in Zephyr'sBUILD_ASSERT, so every Zephyr build that compiles one of these files warns that the macro is redefined (seen with fsl_sha.c on lpcxpresso54628).This gives each driver's macro a driver-specific name (
SHA_BUILD_ASSERT,LTC_DPA_BUILD_ASSERT), the same fix as 3e7a1de6c ("mcux: drivers: hashcrypt: fix BUILD_ASSER") did for fsl_hashcrypt.c. These were the last drivers defining their ownBUILD_ASSERT; the redefinition in the connectivity framework'sfwk_hal_macros.his intentional (#undeffirst) and is left alone.Tested: fsl_sha.c builds warning-free for lpcxpresso54628 and the SHA-256 hash test passes on hardware. fsl_ltc_dpa.c is not compiled by any Zephyr build, so that part is build-untested; it is the same two-line rename.