acrn-hypervisor/hypervisor
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
..
Documentation UEFI: update documentation 2018-05-15 17:19:39 +08:00
arch/x86 treewide: fix declarations of functions with empty parameter lists 2018-05-15 17:25:23 +08:00
boot UEFI: bug fix on delivering RSDP 2018-05-15 17:19:39 +08:00
bsp UEFI: add FIXME comments to function emalloc() & __emalloc() 2018-05-15 17:19:39 +08:00
common trusty: implement hypercall to initialize trusty 2018-05-15 17:19:39 +08:00
debug Rename TIME_MS_DELTA to CYCLES_PER_MS 2018-05-15 17:19:39 +08:00
include treewide: fix declarations of functions with empty parameter lists 2018-05-15 17:25:23 +08:00
lib Rename TIME_MS_DELTA to CYCLES_PER_MS 2018-05-15 17:19:39 +08:00
.gitignore .gitignore: add 2 entries to ignore version.h file if present 2018-05-15 17:19:37 +08:00
.travis.yml Update .travis.yml 2018-05-15 17:19:38 +08:00
MAINTAINERS update home page information 2018-05-15 17:19:39 +08:00
Makefile version: v0.1-rc3 2018-05-15 17:25:17 +08:00
README.rst initial import 2018-05-11 14:44:28 +08:00
license_header initial import 2018-05-11 14:44:28 +08:00

README.rst

Embedded-Hypervisor
###################

This open source embedded hypervisor defines a software architecture for
running multiple software subsystems managed securely on a consolidated
system (by means of a virtual machine manager), and defines a reference
framework Device Model implementation for devices emulation

This embedded hypervisor is type-1 reference hypervisor, running
directly on the system hardware. It can be used for building software
defined cockpit (SDC) or In-Vehicle Experience (IVE) solutions running
on Intel Architecture Apollo Lake platforms. As a reference
implementation, it provides the basis for embedded hypervisor vendors to
build solutions with an open source reference I/O mediation solution,
and provides auto makers a reference software stack for SDC usage.

This embedded hypervisor is able to support both Linux* and Android* as
a Guest OS, managed by the hypervisor, where applications can run.

This embedded hypervisor is a partitioning hypervisor reference stack,
also suitable for non-automotive IoT & embedded device solutions. It
will be addressing the gap that currently exists between datacenter
hypervisors, hard partitioning hypervisors, and select industrial
applications.  Extending the scope of this open source embedded
hypervisor relies on the involvement of community developers like you!