acrn-hypervisor/hypervisor/arch/x86
Xiangyang Wu 27fbf9b215 HV:treewide:Fixing pointer castings
In the hypervisor, there are many casts from
an void pointer to integer pointer, then from
integer pointer to structure pointer.
These pointer castings are detected by static analysis
tool. All pointer casts are violations, There are
some duplicated pointer cast. This will make deviation
analysis complex.
BTW, there are one useless pointer casting and one
wrong pointer casting in the hypervisor.

Remvoe duplicated pointer casts to make deviation analysis
simple;
Remove one useless pointer casting;
Update one wrong pointer casting.

Note: There are many void type pointer casts, non-void type
pointer is casted to void type pointer, char type pointer casts,
non-char type pointer is casted to char type pointer. These pointer
casting is need by the memory management module, IO moudle etc.
Deviation analysis will be made and recoded in the analysis report.

V1-->V2:
	Fix mixing pointer and array voilation.
V2-->V3:
	Remvoe pointer casting from integer pointer into
	non-void/non-char pointer directly;
	Remove redundant type conversion.

Signed-off-by: Xiangyang Wu <xiangyang.wu@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
2018-07-24 10:56:24 +08:00
..
configs HV: config: add Kconfig and defconfigs for sbl & uefi 2018-06-08 17:21:13 +08:00
debug HV: prototyping non-static function 2018-07-16 10:35:54 +08:00
guest HV:treewide:Fixing pointer castings 2018-07-24 10:56:24 +08:00
assign.c fix assign.c interger violations 2018-07-23 10:31:57 +08:00
cpu_primary.S HV:treewide:Replace HOST_GDT_RING0_CODE/DATA_SEL with constant 2018-07-18 12:31:42 +08:00
cpu_state_tbl.c HV:CPU: Add 'U/UL' for unsigned const value 2018-07-09 10:27:21 +08:00
cpu.c HV: logical and high level precedence expression needs brackets 2018-07-24 10:10:39 +08:00
cpuid.c HV: cpuid: Disable Intel RDT for guest OS 2018-07-20 11:59:56 +08:00
ept.c HV: logical and high level precedence expression needs brackets 2018-07-24 10:10:39 +08:00
gdt.c HV:misc:add suffix U to the numeric constant 2018-07-05 11:29:46 +08:00
idt.S HV:treewide:Replace HOST_GDT_RING0_CODE/DATA_SEL with constant 2018-07-18 12:31:42 +08:00
io.c HV: logical and high level precedence expression needs brackets 2018-07-24 10:10:39 +08:00
ioapic.c HV: logical and high level precedence expression needs brackets 2018-07-24 10:10:39 +08:00
irq.c HV: Fixes index out of bounds for addressing irq. 2018-07-19 11:06:42 +08:00
Kconfig HV: build: make relocation-related code configurable 2018-07-11 19:18:26 +08:00
lapic.c HV: treewide: unify the type of bit-field members 2018-07-23 10:23:49 +08:00
mmu.c HV: treewide: unify the type of bit-field members 2018-07-23 10:23:49 +08:00
mtrr.c hv: correct the way to check if a MSR is a fixed MTRR register 2018-07-23 10:34:47 +08:00
notify.c HV: Fix new MISRAC violations for brackets 2018-07-16 11:02:38 +08:00
pagetable.c hv: mmu: revisit mmu modify page table attributes 2018-07-19 11:11:32 +08:00
pm.c HV: pm: cleanup for misra integral type violations 2018-07-12 17:31:11 +08:00
retpoline-thunk.S license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
softirq.c HV: handle integral issue report by MISRA-C 2018-07-16 16:24:29 +08:00
timer.c HV: logical and high level precedence expression needs brackets 2018-07-24 10:10:39 +08:00
trampoline.S HV:treewide:Replace HOST_GDT_RING0_CODE/DATA_SEL with constant 2018-07-18 12:31:42 +08:00
trusty2.c hv: ept: store virtual address of EPT PML4 table 2018-07-20 10:40:32 +08:00
trusty.c HV: Bracket for the same level of precendence 2018-07-24 10:10:39 +08:00
virq.c hv: treewide: fix 'Array has no bounds specified' 2018-07-23 12:00:46 +08:00
vmexit.c HV: Clean up the unused or legacy code-like comment 2018-07-24 10:10:39 +08:00
vmx_asm.S HV:CPU:Constant values replace with CPU MACRO 2018-07-09 09:24:56 +08:00
vmx.c HV:treewide:Fixing pointer castings 2018-07-24 10:56:24 +08:00
vtd.c HV:treewide:Fixing pointer castings 2018-07-24 10:56:24 +08:00
wakeup.S HV: fix bug of restore rsp context 2018-07-23 10:37:13 +08:00