acrn-hypervisor/hypervisor/include/lib
Shiqing Gao 4360235edf hv: treewide: fix 'Macro parameter not in brackets'
Add the brackets for Macro parameter to avoid the unintentional
mistakes.

A simple example that may cause mistakes:
        #define minus(x) -x
When the following call is made,
        z = minus(a-b)
it becomes:
        z = -a-b;
where "-a - b" is equivalent to "(-a) - b" rather than "- (a - b)", as
expected.

v2 -> v3:
 * convert DMAR_WAIT_COMPLETION to inline function
 * remove the macro PIC_PIN_FOREACH and implement the well-formed
   for loop in each case
 * replace __CPP_STRING with STRINGIFY and remove the unused CPP_STRING

v1 -> v2:
 * Remove some changes to function like macro since MISRA-C requires to
   use inline functions if it is possible.
   These MACRO brackets violations will be fixed together when fixing
   other issues related to function like macro.

Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
2018-09-07 10:22:00 +08:00
..
crypto HV: wrap and enable hkdf_sha256 key derivation based on mbedtls 2018-08-27 09:39:05 +08:00
atomic.h hv: treewide: fix multiple MISRAC violations 2018-08-15 11:21:09 +08:00
bits.h hv: lib: add ffz64_ex 2018-08-17 14:27:12 +08:00
errno.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
list.h hv: treewide: fix 'Macro parameter not in brackets' 2018-09-07 10:22:00 +08:00
macros.h hv: treewide: fix 'Macro parameter not in brackets' 2018-09-07 10:22:00 +08:00
mem_mgt.h HV:treewide:Update return type of function ffs64 and ffz64 2018-07-02 15:11:22 +08:00
rtl.h hv: treewide: fix 'Prototype and definition name mismatch' 2018-08-06 16:04:40 +08:00
spinlock.h HV: remove 'spinlock_rfags' declaration 2018-08-16 09:43:04 +08:00
sprintf.h HV:treewide:fix "Reference parameter to procedure is reassigned" 2018-07-27 12:17:12 +08:00
stdarg.h hv: treewide: fix 'Macro parameter not in brackets' 2018-09-07 10:22:00 +08:00
types.h HV:lib:fix "signed/unsigned conversion without cast" 2018-07-04 12:18:38 +08:00
util.h HV: Bracket for the same level of precendence 2018-07-24 10:10:39 +08:00