automation/eclair: add deviation for MISRA C Rule 17.7

Update ECLAIR configuration to deviate some cases where not using
the return value of a function is not dangerous.

Signed-off-by: Federico Serafini <federico.serafini@bugseng.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
Release-Acked-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
This commit is contained in:
Federico Serafini authored and Stefano Stabellini committed 2024-06-24 16:39:09 -07:00
1 parent c56f1ef577
commit 912412f97a
2 files changed
+13

No files matched your search

@@ -413,6 +413,10 @@ explicit comment indicating the fallthrough intention is present."
-config=MC3R1.R17.1,macros+={hide , "^va_(arg|start|copy|end)$"}
-doc_end
-doc_begin="Not using the return value of a function does not endanger safety if it coincides with an actual argument."
-config=MC3R1.R17.7,calls+={safe, "any()", "decl(name(__builtin_memcpy||__builtin_memmove||__builtin_memset||cpumask_check))"}
-doc_end
#
# Series 18.
#
+9
View File
@@ -364,6 +364,15 @@ Deviations related to MISRA C:2012 Rules:
by `stdarg.h`.
- Tagged as `deliberate` for ECLAIR.
* - R17.7
- Not using the return value of a function does not endanger safety if it
coincides with an actual argument.
- Tagged as `safe` for ECLAIR. Such functions are:
- __builtin_memcpy()
- __builtin_memmove()
- __builtin_memset()
- cpumask_check()
* - R20.4
- The override of the keyword \"inline\" in xen/compiler.h is present so
that section contents checks pass when the compiler chooses not to
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.