Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xen: fix MISRA regressions on rule 20.9 and 20.12
Commit ea59e7d ("xen/bitops: Cleanup and new infrastructure ahead of rearrangements") introduced new violations on previously clean rules 20.9 and 20.12 (clean on ARM only, right now). The first is introduced because CONFIG_CC_IS_CLANG in xen/self-tests.h is not defined in the configuration under analysis. Using "defined()" instead avoids relying on the preprocessor's behaviour upon encountering an undedfined identifier and addresses the violation. The violation of Rule 20.12 is due to "val" being used both as an ordinary argument in macro RUNTIME_CHECK, and as a stringification operator. No functional change. Fixes: ea59e7d ("xen/bitops: Cleanup and new infrastructure ahead of rearrangements") Signed-off-by: Nicola Vetrini <[email protected]> Acked-by: Andrew Cooper <[email protected]>
- Loading branch information