acrn-hypervisor/hypervisor/arch/x86
Junjie Mao c01a236efb treewide: fix declarations of functions with empty parameter lists
According to C99:

    The empty list in a function declarator that is not part of a definition of
    that function specifies that no information about the number or types of the
    parameters is supplied.

This means gcc is happy with the following code, which is undesirable.

    void foo();    /* declaration with an empty parameter list */

    void bar() {
        foo();     /* OK */
        foo(1);    /* OK */
        foo(1, 2); /* OK */
    }

This patch fixes declarations of functions with empty parameter lists by adding
an unnamed parameter of type void, which is the standard way to specify that a
function has no parameters. The following coccinelle script is used.

    @@
    type T;
    identifier f;
    @@

    -T f();
    +T f(void);

New compilation errors are fixed accordingly.

Signed-off-by: Junjie Mao <junjie.mao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2018-05-15 17:25:23 +08:00
..
guest trusty: implement hypercall to initialize trusty 2018-05-15 17:19:39 +08:00
assign.c ptdev: fix ptdev_hv_owned_intx under release version 2018-05-15 17:19:38 +08:00
cpu.c treewide: fix declarations of functions with empty parameter lists 2018-05-15 17:25:23 +08:00
cpu_primary.S UEFI: change the efi_ctx passing method 2018-05-15 17:19:39 +08:00
cpu_secondary.S initial import 2018-05-11 14:44:28 +08:00
cpuid.c cpuid restruct 2018-05-15 17:19:38 +08:00
ept.c ioreq: only clear vcpu->req when io request needed 2018-05-15 17:19:37 +08:00
gdt.c initial import 2018-05-11 14:44:28 +08:00
idt.S initial import 2018-05-11 14:44:28 +08:00
interrupt.c hv:enable APICv features based on CPU capability 2018-05-15 17:19:37 +08:00
intr_lapic.c hv: lapic: export write_lapic_reg32 2018-05-15 17:19:38 +08:00
intr_main.c uefi: init vlapic according to native lapic 2018-05-15 17:19:37 +08:00
io.c io: remove pio emulation restriction 2018-05-15 17:19:39 +08:00
ioapic.c initial import 2018-05-11 14:44:28 +08:00
irq.c uefi: remove old interrupt injection method 2018-05-15 17:19:37 +08:00
mmu.c mmu: Rename several variables related to page table type 2018-05-15 17:19:37 +08:00
notify.c initial import 2018-05-11 14:44:28 +08:00
retpoline-thunk.S retpoline: add indirect thunk support 2018-05-15 17:19:36 +08:00
softirq.c initial import 2018-05-11 14:44:28 +08:00
timer.c hv: lapic: export write_lapic_reg32 2018-05-15 17:19:38 +08:00
trusty.c hv: Save secure world memory info into vm instead of vm0 2018-05-15 17:19:39 +08:00
vmexit.c cpuid restruct 2018-05-15 17:19:38 +08:00
vmx.c Add cpuinfo_x86 to cache cpu capability/feature 2018-05-15 17:19:37 +08:00
vmx_asm.S Jmp to vm_exit directly to avoid calling vmlaunch again if vm-entry fails in vmresume 2018-05-15 17:19:37 +08:00
vtd.c Rename TIME_MS_DELTA to CYCLES_PER_MS 2018-05-15 17:19:39 +08:00