| ada9e227 | 12-Aug-2025 |
Taticharla Venkata Sai <venkatasai.taticharla@amd.com> |
fix(optee): initialize the structure
This corrects the MISRA violation C2012-9.1: Initialize the structure with memset to ensures the structure contains predictable zero values before being passed t
fix(optee): initialize the structure
This corrects the MISRA violation C2012-9.1: Initialize the structure with memset to ensures the structure contains predictable zero values before being passed to functions, preventing potential undefined behavior from uninitialized automatic storage.
Change-Id: Ib89b45b8aeefa211afacc77f948a5888815f9e68 Signed-off-by: Taticharla Venkata Sai <venkatasai.taticharla@amd.com>
show more ...
|
| 6c61ed4d | 09-Sep-2025 |
Taticharla Venkata Sai <venkatasai.taticharla@amd.com> |
fix(optee): add missing curly braces
This corrects the MISRA violation C2012-15.6: The body of an iteration-statement or a selection-statement shall be a compound-statement. Enclosed statement body
fix(optee): add missing curly braces
This corrects the MISRA violation C2012-15.6: The body of an iteration-statement or a selection-statement shall be a compound-statement. Enclosed statement body within the curly braces.
Change-Id: Ic8523f1d6ffa367c1ea3753de367a9c88008b55d Signed-off-by: Taticharla Venkata Sai <venkatasai.taticharla@amd.com>
show more ...
|
| c9535e66 | 23-Jul-2025 |
Taticharla Venkata Sai <venkatasai.taticharla@amd.com> |
fix(optee): add parenthesis for macro expressions
This corrects MISRA violation C2012‑20.7: macro parameters used within expressions were not enclosed in parentheses, risking incorrect operator prec
fix(optee): add parenthesis for macro expressions
This corrects MISRA violation C2012‑20.7: macro parameters used within expressions were not enclosed in parentheses, risking incorrect operator precedence after expansion.
The fix wraps all macro parameters in expressions with parentheses to ensure intended evaluation order and compliance with the rule.
Change-Id: Iaf5626afab2d8d8d945caf96798e0a8b33b32e53 Signed-off-by: Taticharla Venkata Sai <venkatasai.taticharla@amd.com>
show more ...
|
| 18f8d11e | 21-Jul-2025 |
Taticharla Venkata Sai <venkatasai.taticharla@amd.com> |
fix(optee): move function to conditional block
This corrects the MISRA violation C2012-8.4: A compatible declaration shall be visible when an object or function with external linkage is defined.
Mo
fix(optee): move function to conditional block
This corrects the MISRA violation C2012-8.4: A compatible declaration shall be visible when an object or function with external linkage is defined.
Moving the function definition to match its usage scope. The function is only called within a conditional compilation block, so it should be defined within the same conditional scope.
Change-Id: I51071c9bb18591a3017e9ae4a2de1d7fca37de16 Signed-off-by: Taticharla Venkata Sai <venkatasai.taticharla@amd.com>
show more ...
|
| bf7901cd | 21-Jul-2025 |
Taticharla Venkata Sai <venkatasai.taticharla@amd.com> |
fix(optee): add boolean type for expressions
This corrects MISRA violation C2012‑14.4: conditional or loop constructs were using non‑Boolean expressions directly instead of comparisons or Boolean ty
fix(optee): add boolean type for expressions
This corrects MISRA violation C2012‑14.4: conditional or loop constructs were using non‑Boolean expressions directly instead of comparisons or Boolean types.
The fix replaces them with explicit Boolean tests enforcing that all controlling expressions have essentially Boolean type and improving code clarity and type safety.
Change-Id: I150a8a674e8abf9c5409cc3d557af0e288ba1668 Signed-off-by: Taticharla Venkata Sai <venkatasai.taticharla@amd.com>
show more ...
|
| a080ef55 | 20-Jul-2025 |
Taticharla Venkata Sai <venkatasai.taticharla@amd.com> |
fix(optee): evaluate condition for boolean
This corrects the MISRA violation C2012-11.9: The macro NULL shall be the only permitted form of integer null pointer constant.
The condition is compared
fix(optee): evaluate condition for boolean
This corrects the MISRA violation C2012-11.9: The macro NULL shall be the only permitted form of integer null pointer constant.
The condition is compared with NULL to get boolean result.
Change-Id: Ib386b5a3c3a7febbbcb5da7546e72ea6269744dc Signed-off-by: Taticharla Venkata Sai <venkatasai.taticharla@amd.com>
show more ...
|