| d7f5bed9 | 24-Nov-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(stm32mp1): add const for strings in stm32mp_get_soc_name()
This corrects MISRA C2012-7.4: A string literal shall not be assigned to an object unless the object's type is "pointer to const-qualif
fix(stm32mp1): add const for strings in stm32mp_get_soc_name()
This corrects MISRA C2012-7.4: A string literal shall not be assigned to an object unless the object's type is "pointer to const-qualified char".
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I0c9f483dce9abd32647d5f5e2df72047cdd376dd
show more ...
|
| 45d2d495 | 21-Nov-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(st): use Boolean type for tests
This corrects MISRA C2012-14.4 The controlling expression of an if statement and the controlling expression of an iteration-statement shall have essentially Boole
fix(st): use Boolean type for tests
This corrects MISRA C2012-14.4 The controlling expression of an if statement and the controlling expression of an iteration-statement shall have essentially Boolean type.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: Ibed7b87b50959f03dc5550dfaffacafd1d79feee
show more ...
|
| 0ebaf222 | 24-Nov-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(st): rework secure-status check in fdt_get_status()
This corrects MISRA C2012-15.7: All if...else if constructs shall be terminated with an else statement.
Signed-off-by: Yann Gautier <yann.gau
fix(st): rework secure-status check in fdt_get_status()
This corrects MISRA C2012-15.7: All if...else if constructs shall be terminated with an else statement.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I3d893d0db0a448323270086923563147008c59b9
show more ...
|
| e7d75448 | 21-Nov-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(st): use indices when counting GPIOs in DT
Fix MISRA C2012-18.4: The +, -, += and -= operators should not be applied to an expression of pointer type. While at it, avoid computing twice the same
fix(st): use indices when counting GPIOs in DT
Fix MISRA C2012-18.4: The +, -, += and -= operators should not be applied to an expression of pointer type. While at it, avoid computing twice the same value, by removing the initial value computation outside the loop.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: Iabfe587bf72535541c94bfa341de10148aa58030
show more ...
|
| 9c1aa125 | 18-Nov-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(st): add U suffix for unsigned numbers
This corrects MISRA c2012-7.2 violation: A "u" or "U" suffix shall be applied to all integer constants that are represented in an unsigned type.
Signed-of
fix(st): add U suffix for unsigned numbers
This corrects MISRA c2012-7.2 violation: A "u" or "U" suffix shall be applied to all integer constants that are represented in an unsigned type.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I92b394572528e7179a314bbad4a032fd65053861
show more ...
|
| 56048fe2 | 18-Nov-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(st): explicitly check operators precedence
This corrects the MISRA violation C2012-12.1: The precedence of operators within expressions should be made explicit. This is done either by adding par
fix(st): explicitly check operators precedence
This corrects the MISRA violation C2012-12.1: The precedence of operators within expressions should be made explicit. This is done either by adding parentheses, or by creating dedicated variables to ease readability.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I5e3f191ee38eca7ef634bd7542e615ab625271f6
show more ...
|
| 4198fa1d | 25-Nov-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(st-clock): avoid arithmetics on pointers
This corrects MISRA C2012-18.4: The +, -, += and -= operators should not be applied to an expression of pointer type.
Signed-off-by: Yann Gautier <yann.
fix(st-clock): avoid arithmetics on pointers
This corrects MISRA C2012-18.4: The +, -, += and -= operators should not be applied to an expression of pointer type.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I9128f567a7c83d8e3381428b07e6bd785be2703b
show more ...
|
| ee21709e | 25-Nov-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(st-clock): give the size for parent_mp13 and dividers_mp13 tables
This corrects MISRA C2012-9.5: Where designated initializers are used to initialize an array object the size of the array shall
fix(st-clock): give the size for parent_mp13 and dividers_mp13 tables
This corrects MISRA C2012-9.5: Where designated initializers are used to initialize an array object the size of the array shall be specified explicitly.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I4c331b0225af975fd022ffe9e5fd1d536ed59879
show more ...
|
| 69a2e320 | 25-Nov-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(st-clock): remove useless switch
This corrects MISRA C2012-16.6: Every switch statement shall have at least two switch-clauses. While at it, remove useless rate variable.
Signed-off-by: Yann Ga
fix(st-clock): remove useless switch
This corrects MISRA C2012-16.6: Every switch statement shall have at least two switch-clauses. While at it, remove useless rate variable.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I123784e7184dbf4146fd0d7faeffd6a0382fc6a1
show more ...
|
| c3ae7da0 | 28-Nov-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(st-clock): use Boolean type for tests
This corrects MISRA C2012-14.4 The controlling expression of an if statement and the controlling expression of an iteration-statement shall have essentially
fix(st-clock): use Boolean type for tests
This corrects MISRA C2012-14.4 The controlling expression of an if statement and the controlling expression of an iteration-statement shall have essentially Boolean type.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: Id217d3da223caf75cd0439d7ce11c9efab87b4d2
show more ...
|
| 9a00daf9 | 28-Nov-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(st-regulator): use Boolean type for tests
This corrects MISRA C2012-14.4 The controlling expression of an if statement and the controlling expression of an iteration-statement shall have essenti
fix(st-regulator): use Boolean type for tests
This corrects MISRA C2012-14.4 The controlling expression of an if statement and the controlling expression of an iteration-statement shall have essentially Boolean type.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: Iacc58349cc3ab558fb4ffe0605a623e84e21e035
show more ...
|
| 91af163c | 25-Nov-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(st-regulator): enclose macro parameters in parentheses
This corrects MISRA C2012-20.7: Expressions resulting from the expansion of macro parameters shall be enclosed in parentheses.
Signed-off-
fix(st-regulator): enclose macro parameters in parentheses
This corrects MISRA C2012-20.7: Expressions resulting from the expansion of macro parameters shall be enclosed in parentheses.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I9989a5aaacf17f6f7a65381c8d41f21a35f6ddd9
show more ...
|
| 6a3ffb53 | 25-Nov-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(st-regulator): rework for_each_*rdev macros
This corrects MISRA C2012-18.4: The +, -, += and -= operators should not be applied to an expression of pointer type.
Signed-off-by: Yann Gautier <ya
fix(st-regulator): rework for_each_*rdev macros
This corrects MISRA C2012-18.4: The +, -, += and -= operators should not be applied to an expression of pointer type.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: Ie1a196b875eae2eff9242cf83abfc1a79bdee6f3
show more ...
|
| 68083e7a | 28-Nov-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(st-regulator): explicitly check operators precedence
This corrects the MISRA violation C2012-12.1: The precedence of operators within expressions should be made explicit. This is done either by
fix(st-regulator): explicitly check operators precedence
This corrects the MISRA violation C2012-12.1: The precedence of operators within expressions should be made explicit. This is done either by adding parentheses, or by creating dedicated variables.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: If8312442222ba848ac1f5e38df1bed0a367646a7
show more ...
|
| 3cebeec2 | 24-Nov-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(st-pmic): define pmic_regs table size
This corrects MISRA C2012-9.5: Where designated initializers are used to initialize an array object the size of the array shall be specified explicitly.
Si
fix(st-pmic): define pmic_regs table size
This corrects MISRA C2012-9.5: Where designated initializers are used to initialize an array object the size of the array shall be specified explicitly.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I4f8da6b0ce73df65b2b45ba10d4ca16ed8b70113
show more ...
|
| be7195d0 | 24-Nov-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(st-pmic): enclose macro parameter in parentheses
This corrects MISRA C2012-20.7 Expressions resulting from the expansion of macro parameters shall be enclosed in parentheses.
Signed-off-by: Yan
fix(st-pmic): enclose macro parameter in parentheses
This corrects MISRA C2012-20.7 Expressions resulting from the expansion of macro parameters shall be enclosed in parentheses.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I9269d7a5b6aa4573bc0ca55b3054c3475dc4b6b2
show more ...
|
| 53cbc949 | 20-Jun-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(mmc): align part config type
This corrects MISRA C2012 10.3: The value of an expression shall not be assigned to an object with a narrower essential type or of a different essential type categor
fix(mmc): align part config type
This corrects MISRA C2012 10.3: The value of an expression shall not be assigned to an object with a narrower essential type or of a different essential type category. Set part_config to be an unsigned char everywhere it is used.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I9cf87848fb016a5630b3c8091290419e3bc62b91
show more ...
|
| bf78a650 | 21-Nov-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(mmc): do not modify r_data in mmc_send_cmd()
Fix MISRA C2012-17.8: A function parameter should not be modified
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I08ed4c6768c7988a98de
fix(mmc): do not modify r_data in mmc_send_cmd()
Fix MISRA C2012-17.8: A function parameter should not be modified
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I08ed4c6768c7988a98de21da181b97b0885139de
show more ...
|
| 14cda516 | 18-Nov-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(mmc): explicitly check operators precedence
This corrects the MISRA violation C2012-12.1: The precedence of operators within expressions should be made explicit While at it put the test on one l
fix(mmc): explicitly check operators precedence
This corrects the MISRA violation C2012-12.1: The precedence of operators within expressions should be made explicit While at it put the test on one line.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: Id19231faaf033c1e7dbe703690e0dddc7aa8f346
show more ...
|
| d1c6c495 | 18-Nov-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(partition): add U suffix for unsigned numbers
This corrects MISRA c2012-7.2 violation: A "u" or "U" suffix shall be applied to all integer constants that are represented in an unsigned type.
Si
fix(partition): add U suffix for unsigned numbers
This corrects MISRA c2012-7.2 violation: A "u" or "U" suffix shall be applied to all integer constants that are represented in an unsigned type.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I5508a7d482213fc4d22e3e7ac53defb4135af596
show more ...
|
| 12906620 | 21-Jun-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(partition): add missing curly braces
Add braces to correct MISRA C2012 15.6 warning: The body of an iteration-statement or a selection-statement shall be a compound-statement.
Signed-off-by: Ya
fix(partition): add missing curly braces
Add braces to correct MISRA C2012 15.6 warning: The body of an iteration-statement or a selection-statement shall be a compound-statement.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I4041b0080b678f5ffdbe074e3cee9ac0afd5e176
show more ...
|
| 8406db14 | 18-Nov-2022 |
Yann Gautier <yann.gautier@st.com> |
fix: add parenthesis for tests in MIN, MAX and CLAMP macros
This corrects the MISRA violation C2012-12.1: The precedence of operators within expressions should be made explicit
Signed-off-by: Yann
fix: add parenthesis for tests in MIN, MAX and CLAMP macros
This corrects the MISRA violation C2012-12.1: The precedence of operators within expressions should be made explicit
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I62083c43b3f633504cac3497efe2e984924c63b2
show more ...
|
| 825641d6 | 07-Dec-2022 |
Sandrine Bailleux <sandrine.bailleux@arm.com> |
Merge changes Ida9abfd5,Iec447d97 into integration
* changes: build: enable adding MbedTLS files for platform feat(lib/psa): add read_measurement API |
| ca32548a | 07-Dec-2022 |
Soby Mathew <soby.mathew@arm.com> |
Merge "fix(trp): preserve RMI SMC X4 when not used as return" into integration |
| b96253db | 24-Nov-2022 |
AlexeiFedorov <Alexei.Fedorov@arm.com> |
fix(trp): preserve RMI SMC X4 when not used as return
This patch adds X2-X6 and 'smc_ret' parameters to trp_rmi_handler(). The last 'smc_ret' parameter passed in X7 contains address of 'trp_smc_resu
fix(trp): preserve RMI SMC X4 when not used as return
This patch adds X2-X6 and 'smc_ret' parameters to trp_rmi_handler(). The last 'smc_ret' parameter passed in X7 contains address of 'trp_smc_result' structure on stack to return result of RMI SMC call.
This allows to preserve X4 if not used as a return argument as per SMCCCv1.2. The patch also removes use of trp_args_t in RMI handling.
Signed-off-by: AlexeiFedorov <Alexei.Fedorov@arm.com> Change-Id: I9e3387a7380b37863eeccc53d13e92e0ac5cffbd
show more ...
|