acrn-hypervisor/hypervisor/include/arch/x86/guest
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
..
gpr.h hv: move define of struct cpu_gp_regs to a separate headfile 2018-08-09 16:43:58 +08:00
guest_pm.h hv: treewide: fix 'No definition in system for prototyped procedure' 2018-07-20 10:38:32 +08:00
guest.h hv: treewide: fix 'Macro parameter not in brackets' 2018-09-07 10:22:00 +08:00
mptable.h HV: Adding mptable support for partition mode ACRN 2018-08-03 13:36:40 +08:00
ucode.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
vcpu.h hv: code clean up regarding to guest_msrs 2018-08-28 11:08:48 +08:00
vioapic.h hv:Replace vioapic pointer with instance in structure vm 2018-08-27 09:49:12 +08:00
vlapic.h HV: Refine APICv capabilities detection 2018-08-24 09:58:58 +08:00
vm0_boot.h hv: move boot_ctx offset definitions 2018-08-14 13:05:06 +08:00
vm.h hv:Replace vioapic pointer with instance in structure vm 2018-08-27 09:49:12 +08:00
vpic.h hv: fix 'Procedure is not called or referenced in code analysed' 2018-09-06 12:01:30 +08:00