Hello,
It is observed that device tree functions are present under lib/libfdt/... in Trusted Firmware-A code, but this device tree are not present in symbol table and also if we remove this device tree functions in code, board was successfully booting. However, while doing Coverity build to fix MISRA-C violations getting violations from this device tree code. So, is it possible to leave those violations please suggest? And when it will be enabled, please suggest.
Thanks & Regards Nithin G
Hello Nithin,
Not all platforms use libfdt. I guess yours doesn't, but some do. That being said, we only mandate fixing MISRA-C violations in generic TF-A code. libfdt being a third-party library, this rule does not apply to it. So yes, you can leave those violations - unless you introduced them! but I doubt this is the case, given you seem to say you don't use libfdt on your platform.
Best regards, Sandrine
________________________________ From: Nithin G via TF-A tf-a@lists.trustedfirmware.org Sent: 29 August 2023 11:58 To: tf-a@lists.trustedfirmware.org tf-a@lists.trustedfirmware.org Subject: [TF-A] MISRA-C violation for Device Tree (FDT) in Trusted Firmware-A (TFA) code.
Hello,
It is observed that device tree functions are present under lib/libfdt/... in Trusted Firmware-A code, but this device tree are not present in symbol table and also if we remove this device tree functions in code, board was successfully booting. However, while doing Coverity build to fix MISRA-C violations getting violations from this device tree code. So, is it possible to leave those violations please suggest? And when it will be enabled, please suggest.
Thanks & Regards Nithin G -- TF-A mailing list -- tf-a@lists.trustedfirmware.org To unsubscribe send an email to tf-a-leave@lists.trustedfirmware.org
Hi Sandrine,
Thanks for responding.
Yes, currently we are not introduced device tree in our platform.
Regards, Nithin G
tf-a@lists.trustedfirmware.org