From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel De Graaf Subject: Re: [PATCH 30/34] xen: Add missing includes on different files Date: Tue, 25 Mar 2014 13:38:24 -0400 Message-ID: <5331BF10.1050802@tycho.nsa.gov> References: <1395766541-23979-1-git-send-email-julien.grall@linaro.org> <1395766541-23979-31-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WSVJs-00082B-MH for xen-devel@lists.xenproject.org; Tue, 25 Mar 2014 17:39:24 +0000 In-Reply-To: <1395766541-23979-31-git-send-email-julien.grall@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall , xen-devel@lists.xenproject.org Cc: stefano.stabellini@citrix.com, tim@xen.org, ian.campbell@citrix.com List-Id: xen-devel@lists.xenproject.org On 03/25/2014 12:55 PM, Julien Grall wrote: > There is a bunch of functions in xen code which are declared without the > prototypes defined before. This may lead to runtime issue if the propotype > doesn't match the declaration. > > Add missing includes where the prototype of theses functions are defined. > > This was spotted by -Wmissing-prototypes, which we can't enable because there > is exported function for assembly. I'm not sure if we need to add a prototype > for them. > > Signed-off-by: Julien Grall > Cc: Ian Campbell > Cc: Stefano Stabellini > Cc: Tim Deegan > Cc: Konrad Rzeszutek Wilk > Cc: Daniel De Graaf Acked-by: Daniel De Graaf > --- > xen/arch/arm/hvm.c | 1 + > xen/arch/arm/mm.c | 1 + > xen/arch/arm/shutdown.c | 1 + > xen/arch/arm/smp.c | 1 + > xen/arch/arm/time.c | 1 + > xen/arch/arm/vtimer.c | 1 + > xen/common/event_channel.c | 1 + > xen/common/grant_table.c | 1 + > xen/common/multicall.c | 3 +++ > xen/common/sort.c | 1 + > xen/common/tmem.c | 1 + > xen/drivers/video/arm_hdlcd.c | 1 + > xen/xsm/flask/ss/conditional.h | 1 + > 13 files changed, 15 insertions(+) > > diff --git a/xen/arch/arm/hvm.c b/xen/arch/arm/hvm.c > index 471c4cd..b695b26 100644 > --- a/xen/arch/arm/hvm.c > +++ b/xen/arch/arm/hvm.c > @@ -4,6 +4,7 @@ > #include > #include > #include > +#include > > #include > > diff --git a/xen/arch/arm/mm.c b/xen/arch/arm/mm.c > index fc58fc6..84b6ccc 100644 > --- a/xen/arch/arm/mm.c > +++ b/xen/arch/arm/mm.c > @@ -39,6 +39,7 @@ > #include > #include > #include > +#include > > struct domain *dom_xen, *dom_io, *dom_cow; > > diff --git a/xen/arch/arm/shutdown.c b/xen/arch/arm/shutdown.c > index adc0529..43eaf47 100644 > --- a/xen/arch/arm/shutdown.c > +++ b/xen/arch/arm/shutdown.c > @@ -4,6 +4,7 @@ > #include > #include > #include > +#include > #include > > static void raw_machine_reset(void) > diff --git a/xen/arch/arm/smp.c b/xen/arch/arm/smp.c > index 30203b8..7bb602d 100644 > --- a/xen/arch/arm/smp.c > +++ b/xen/arch/arm/smp.c > @@ -1,4 +1,5 @@ > #include > +#include > #include > #include > #include > diff --git a/xen/arch/arm/time.c b/xen/arch/arm/time.c > index 7f4f2b4..3b0feec 100644 > --- a/xen/arch/arm/time.c > +++ b/xen/arch/arm/time.c > @@ -29,6 +29,7 @@ > #include > #include > #include > +#include > #include > #include > #include > diff --git a/xen/arch/arm/vtimer.c b/xen/arch/arm/vtimer.c > index 83f4c0f..6aeae5d 100644 > --- a/xen/arch/arm/vtimer.c > +++ b/xen/arch/arm/vtimer.c > @@ -25,6 +25,7 @@ > #include > #include > #include > +#include "vtimer.h" > > static void phys_timer_expired(void *data) > { > diff --git a/xen/common/event_channel.c b/xen/common/event_channel.c > index db952af..e94e37e 100644 > --- a/xen/common/event_channel.c > +++ b/xen/common/event_channel.c > @@ -28,6 +28,7 @@ > #include > #include > #include > +#include > > #include > #include > diff --git a/xen/common/grant_table.c b/xen/common/grant_table.c > index 107b000..386cdff 100644 > --- a/xen/common/grant_table.c > +++ b/xen/common/grant_table.c > @@ -37,6 +37,7 @@ > #include > #include > #include > +#include > #include > #include > > diff --git a/xen/common/multicall.c b/xen/common/multicall.c > index e66c798..bb7550b 100644 > --- a/xen/common/multicall.c > +++ b/xen/common/multicall.c > @@ -6,6 +6,9 @@ > #include > #include > #include > +#ifndef COMPAT > +#include > +#endif > #include > #include > #include > diff --git a/xen/common/sort.c b/xen/common/sort.c > index d96fc2a..7069888 100644 > --- a/xen/common/sort.c > +++ b/xen/common/sort.c > @@ -5,6 +5,7 @@ > */ > > #include > +#include > > static void u32_swap(void *a, void *b, int size) > { > diff --git a/xen/common/tmem.c b/xen/common/tmem.c > index 5155114..865d154 100644 > --- a/xen/common/tmem.c > +++ b/xen/common/tmem.c > @@ -23,6 +23,7 @@ > #include > #include > #include > +#include > > #define TMEM_SPEC_VERSION 1 > > diff --git a/xen/drivers/video/arm_hdlcd.c b/xen/drivers/video/arm_hdlcd.c > index 841d0d0..04a3091 100644 > --- a/xen/drivers/video/arm_hdlcd.c > +++ b/xen/drivers/video/arm_hdlcd.c > @@ -25,6 +25,7 @@ > #include > #include > #include > +#include > #include "font.h" > #include "lfb.h" > #include "modelines.h" > diff --git a/xen/xsm/flask/ss/conditional.h b/xen/xsm/flask/ss/conditional.h > index d389ecf..65af76b 100644 > --- a/xen/xsm/flask/ss/conditional.h > +++ b/xen/xsm/flask/ss/conditional.h > @@ -13,6 +13,7 @@ > #include "avtab.h" > #include "symtab.h" > #include "policydb.h" > +#include "../include/conditional.h" > > #define COND_EXPR_MAXDEPTH 10 > > -- Daniel De Graaf National Security Agency