acrn-hypervisor/hypervisor/include/common
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
..
hypercall.h hv: add a hypercall for the hypervisor NPK log 2018-08-23 11:09:25 +08:00
irq.h hv:Changed several APIs to void type 2018-08-23 08:54:54 +08:00
ptdev.h hv: treewide: fix 'Macro parameter not in brackets' 2018-09-07 10:22:00 +08:00
schedule.h HV:treewide:Cleanup the type for parameters of bitmap 2018-07-02 10:46:11 +08:00
softirq.h hv: softirq: refine softirq 2018-08-01 11:36:27 +08:00