acrn-hypervisor/hypervisor/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 HV: prototyping non-static function 2018-07-16 10:35:54 +08:00
div.c HV:treewide:fix rest of violations related parameter changed 2018-07-27 16:42:19 +08:00
mdelay.c HV:treewide:fix "Attempt to change parameter passed by value" 2018-07-26 09:35:52 +08:00
memory.c HV: Logical conjunction needs brackets 2018-08-14 09:53:32 +08:00
spinlock.c hv: treewide: fix 'inline function should be declared static' 2018-08-10 10:16:04 +08:00
sprintf.c HV: Logical conjunction needs brackets 2018-08-14 09:53:32 +08:00
string.c hv: treewide: fix multiple MISRAC violations 2018-08-15 11:21:09 +08:00
udelay.c HV: add the missing brackets to loop body 2018-07-12 17:27:29 +08:00