mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-31 03:15:42 +00:00
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> |
||
---|---|---|
.. | ||
configs | ||
debug | ||
guest | ||
assign.c | ||
cpu_primary.S | ||
cpu_state_tbl.c | ||
cpu.c | ||
cpuid.c | ||
ept.c | ||
gdt.c | ||
idt.S | ||
io.c | ||
ioapic.c | ||
irq.c | ||
Kconfig | ||
lapic.c | ||
mmu.c | ||
mtrr.c | ||
notify.c | ||
pagetable.c | ||
pm.c | ||
retpoline-thunk.S | ||
softirq.c | ||
timer.c | ||
trampoline.S | ||
trusty2.c | ||
trusty.c | ||
virq.c | ||
vmexit.c | ||
vmx_asm.S | ||
vmx.c | ||
vtd.c | ||
wakeup.S |