acrn-hypervisor/hypervisor/include/lib
Junjun Shan eb8c4fb0d5 hv:Fix Implict conversion:actual to formal param
MISRAC has requirement about implict conversion: actual to formal
param. This patch is used to fix part of these violations.

1.Add a new structure seg_desc_vmcs to hold the VMCS field address of
segment selector to clean up seg_desc structure.

2.Add the definition of maximum MSI entry and the relevant judgement.

3.The violations in shell.c, logmsg.c will be fixed in other series of
patches with modification of function snprintf(), vsnprintf() and other
related usages.

v1->v2:
  *Move the definition of struct seg_desc_vmcs from instr_emul.h to
   instr_emul.c.
  *Modify the formal parameter type in function definition from uint8_t
   to char instead of using cast.
  *Drop the const declaration for char data in formal parameter.

v2->v3:
  *update the data missing conversion.
  *change type of internal parameter len to avoid casting in npklog.c.
  *change the conversion from signed char to unsigned int in
   uart16550_getc() to solve sign-extension.

Tracked-On: #861
Signed-off-by: Junjun Shan <junjun.shan@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2018-09-18 13:09:39 +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 'Use of function like macro' 2018-09-11 10:49:48 +08:00
bits.h hv:treewide:fix multiple MISRAC violations 2018-09-13 11:12:29 +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
mem_mgt.h HV:treewide:Update return type of function ffs64 and ffz64 2018-07-02 15:11:22 +08:00
rtl.h hv:Fix Implict conversion:actual to formal param 2018-09-18 13:09:39 +08:00
spinlock.h hv: clean up spinlock 2018-09-14 09:44:44 +08:00
sprintf.h HV:treewide:fix "Reference parameter to procedure is reassigned" 2018-07-27 12:17:12 +08:00
types.h hv: remove unused MACROs 2018-09-18 09:43:43 +08:00
util.h hv: clean up some header files 2018-09-13 13:11:57 +08:00