| 029f81e0 | 21-Nov-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(st-sdmmc): check transfer size before filling register
Fix 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 essent
fix(st-sdmmc): check transfer size before filling register
Fix 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.
Check buffer size is less than 4GB before casting the command argument.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: Iac1afcfe905c99b22cb39dc4104d351b0e647e5d
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 ...
|
| 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 ...
|
| 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 |
| e83812f1 | 17-Oct-2022 |
Maninder Singh <maninder.singh_1@nxp.com> |
fix(nxp-ddr): add checking return value
Coverity Issue 21268351 Fixed unused value of xspi read while reading training values from xspi during warm reset.
Signed-off-by: Maninder Singh <maninder.si
fix(nxp-ddr): add checking return value
Coverity Issue 21268351 Fixed unused value of xspi read while reading training values from xspi during warm reset.
Signed-off-by: Maninder Singh <maninder.singh_1@nxp.com> Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com> Change-Id: I779587afedb1c73d174a132bbfbcb21bf45bdff8
show more ...
|
| 55a7aa92 | 01-Dec-2022 |
David Vincze <david.vincze@arm.com> |
fix(rss): do not consider MHU_ERR_ALREADY_INIT as error
rss_comms_init() should return with success (0) in case of an internal MHU_ERR_ALREADY_INIT error code which is harmless (occurs when rss_comm
fix(rss): do not consider MHU_ERR_ALREADY_INIT as error
rss_comms_init() should return with success (0) in case of an internal MHU_ERR_ALREADY_INIT error code which is harmless (occurs when rss_comms_init() is called multiple times in a row).
Change-Id: Ibb1fef48a60866e80d3a389128cb8eef1332ea01 Signed-off-by: David Vincze <david.vincze@arm.com>
show more ...
|
| 02af589c | 22-Nov-2022 |
Boyan Karatotev <boyan.karatotev@arm.com> |
fix(st-usb): replace redundant checks with asserts
Returning enum usb_status in an enum usb_action function is wrong as they have different meanings. However, usb_dwc2_ep0_out_start() and usb_dwc2_a
fix(st-usb): replace redundant checks with asserts
Returning enum usb_status in an enum usb_action function is wrong as they have different meanings. However, usb_dwc2_ep0_out_start() and usb_dwc2_activate_setup() only return USBD_OK so we will never get to there. Replace these checks with asserts in case the code changes in future.
This also silences a warning when compiling with -Wextra.
Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com> Change-Id: I73dfd5c189a357544c15ceb3f4268da82ce272b9
show more ...
|
| 9f58bfbb | 22-Nov-2022 |
Boyan Karatotev <boyan.karatotev@arm.com> |
fix(brcm): add braces around bodies of conditionals
On release builds EMMC_TRACE doesn't expand to anything. Some conditionals with no braces end up with empty bodies. This produces a warning when c
fix(brcm): add braces around bodies of conditionals
On release builds EMMC_TRACE doesn't expand to anything. Some conditionals with no braces end up with empty bodies. This produces a warning when compiling with -Werror=empty-body (enabled by -Wextra).
Since TF-A coding guidelines require braces to comply with MISRA guidelines anyway, add them in the whole file.
Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com> Change-Id: Ib4e691efc7acdb8fb8692278c7a9772fc894f77f
show more ...
|
| 90c4b3b6 | 22-Nov-2022 |
Boyan Karatotev <boyan.karatotev@arm.com> |
fix(renesas): align incompatible function pointers
secure_boot_api_f is defined to take uint32_t, uint32_t, and void * parameters. However rom_secure_boot_api_f is defined to take uint32_t *, uint32
fix(renesas): align incompatible function pointers
secure_boot_api_f is defined to take uint32_t, uint32_t, and void * parameters. However rom_secure_boot_api_f is defined to take uint32_t *, uint32_t *, void *. These are incompatible and cause a warning when compiling with -Wextra. Align the rom definition to the more generic definition from where it's called.
Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com> Change-Id: Ia030803b3c2335d220aff09fc0eef5c7615276aa
show more ...
|
| f4b8470f | 22-Nov-2022 |
Boyan Karatotev <boyan.karatotev@arm.com> |
fix: remove old-style declarations
TF-A wants to eventually enable -Wold-style-definition globally. Convert the rare few instances where this is still the case.
Signed-off-by: Boyan Karatotev <boya
fix: remove old-style declarations
TF-A wants to eventually enable -Wold-style-definition globally. Convert the rare few instances where this is still the case.
Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com> Change-Id: I9c450fc875cf097e6de2ed577ea3b085821c9f5e
show more ...
|
| e138400d | 18-Nov-2022 |
Boyan Karatotev <boyan.karatotev@arm.com> |
fix: unify fallthrough annotations
Compiling with -Wimplicit-fallthrough=3 (enabled by -Wextra) produces many warnings about fallthrough comments either missing or being wrong. Unify the comments so
fix: unify fallthrough annotations
Compiling with -Wimplicit-fallthrough=3 (enabled by -Wextra) produces many warnings about fallthrough comments either missing or being wrong. Unify the comments so we comply with -Wextra.
Note that Coverity recommends against using the __attribute__ directive. Also, zlib does not build with a higher value of -Wimplicit-fallthrough. Finally, compilers strip comments before expanding macros. As such, checkpatch's fallthrough annotation (or higher levels of the flag) isn't really possible.
Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com> Change-Id: I060cf4f8dc04c02cbb45cf4ceb69569a8369ccee
show more ...
|
| 3be9c276 | 05-Nov-2022 |
Mate Toth-Pal <mate.toth-pal@arm.com> |
build: enable adding MbedTLS files for platform
The platform.mk can add extra MbedTLS source files to LIBMBEDTLS_SRC.
Change-Id: Ida9abfd59d8b02eae23ec0a7f326db060b42bf49 Signed-off-by: Mate Toth-P
build: enable adding MbedTLS files for platform
The platform.mk can add extra MbedTLS source files to LIBMBEDTLS_SRC.
Change-Id: Ida9abfd59d8b02eae23ec0a7f326db060b42bf49 Signed-off-by: Mate Toth-Pal <mate.toth-pal@arm.com>
show more ...
|
| 2d541cbc | 02-Sep-2022 |
Jiafei Pan <Jiafei.Pan@nxp.com> |
fix(nxp-ddr): fix coverity issue
Fixed coverity issue for "shifting by a negtive value", returned before go to the next shifting code.
Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com> Change-Id: I001
fix(nxp-ddr): fix coverity issue
Fixed coverity issue for "shifting by a negtive value", returned before go to the next shifting code.
Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com> Change-Id: I00171b057b8948cb9e9ec5d9405b2e32aba568fb
show more ...
|