Hi Nithin,
There is a wiki page about MISRA here: https://developer.trustedfirmware.org/w/tf_a/tf-a-misra-analysis/
And a file attached to it (MISRA-and-TF-Analysis-v1.3.ods). For rule 4.6, I can see that: D 4.6 MISRA C 2012 Advisory No No We use a mix of both. It would be too disruptive for the project to change.
So I can see 2 solutions there: - follow TF-A document and have a deviation for this rule - or make a patch to change 'unsigned int plat_get_syscnt_freq2(void)' to 'uint32_t plat_get_syscnt_freq2(void)' for all platforms and docs
Best regards, Yann
On 12/6/23 13:12, Nithin G via TF-A wrote:
Hello Sandrine,
Thanks for responding,
If the return type of plat_get_syscnt_freq2() is modified to unsigned int, it would result in another violation of Directive 4.6, as it involves using a basic numerical type without providing size and signedness information. To fix this need to change typedef uint32_t in definition and declaration as well. again, it is not possible to change in header file. Please suggest?
Regards, Nithin