acrn-hypervisor/hypervisor/include/lib
Junjun Shan ca83c09b9f hv: treewide: fix multiple MISRAC violations
MISARC has requirements about  Marco redefinition, usage of ++ or -- and
assignment operator in boolean expression. This patch is used to solve
these violations.

The modifications are summarized as following:
1.The HC_VM_SET_MEMORY_REGION, HC_VM_GPA2HPA, HC_VM_SET_MEMORY_REGIONS are
redefined twice in acrn_hv_des.h, so delete them to solve the macro
redefinition violations.

2.The macro BUS_LOCK are redefined in bits.h and atomic.h, then delete
the declaration in both two files, add a new declaration in cpu.h and
include the header file.

3.modify the code to solve the improper usage of -- operators in string.c.

4.modify the while loop to for loop to avoid assignment operator in
boolean expression in vlapic.c.

v1 -> v2:
 *Modify the format of commit logs and signed-off name.

 *Modify the code format from 'd = d-1;' to 'd--;' to be better.

Signed-off-by: Junjun Shan <junjun.shan@intel.com>
2018-08-15 11:21:09 +08:00
..
crypto license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
atomic.h hv: treewide: fix multiple MISRAC violations 2018-08-15 11:21:09 +08:00
bits.h hv: treewide: fix multiple MISRAC violations 2018-08-15 11:21:09 +08:00
errno.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
list.h HV: Rename functions beginning with "_" 2018-07-30 10:11:54 +08:00
macros.h HV:treewide:avoid using multiple # or ## in a macro 2018-08-02 13:10:16 +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: handle integral issue report by MISRA-C 2018-07-16 16:24:29 +08:00
sprintf.h HV:treewide:fix "Reference parameter to procedure is reassigned" 2018-07-27 12:17:12 +08:00
stdarg.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +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