arm/ffa: deviate violation of MISRA C Rule 20.12

MISRA C Rule 20.12 states: "A macro parameter used as an operand to
the # or ## operators, which is itself subject to further macro replacement,
shall only be used as an operand to these operators".

In this case the 'FFA_*' macros are used both as a regular macro argument and
as an operand for '#' stringification in the expansion of 'FW_ABI()'.
This is deviated using a SAF-x-safe comment.

No functional changes.

Signed-off-by: Dmytro Prokopchuk <dmytro_prokopchuk1@epam.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
This commit is contained in:
Dmytro Prokopchuk1 authored and Andrew Cooper committed 2026-03-13 17:18:04 +00:00
1 parent 2429e82c71
commit 195d754170
1 file changed
+1
+1
View File
@@ -80,6 +80,7 @@ struct ffa_fw_abi {
const char *name;
};
/* SAF-6-safe Rule 20.12 expansion of macro FFA_* with FW_ABI */
#define FW_ABI(abi) {abi,#abi}
/* List of ABI we use from the firmware */
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.