diff mbox

[Xen-devel,RFC,11/14] xen/xsm: flask: Add missing header in hooks.c

Message ID 1394640969-25583-12-git-send-email-julien.grall@linaro.org
State Accepted, archived
Commit 952125757787839bad89c8e7f661a962c9f9cbe4
Headers show

Commit Message

Julien Grall March 12, 2014, 4:16 p.m. UTC
nr_static_irqs and nr_irqs is defined in asm/irq.h (on both x86 and ARM).

Include directly the header in hooks.c to avoid compilation failure on ARM.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Cc: Daniel De Graaf <dgdegra@tycho.nsa.gov>
---
 xen/xsm/flask/hooks.c |    1 +
 1 file changed, 1 insertion(+)

Comments

Daniel De Graaf March 13, 2014, 2:34 p.m. UTC | #1
On 03/12/2014 12:16 PM, Julien Grall wrote:
> nr_static_irqs and nr_irqs is defined in asm/irq.h (on both x86 and ARM).
>
> Include directly the header in hooks.c to avoid compilation failure on ARM.
>
> Signed-off-by: Julien Grall <julien.grall@linaro.org>
> Cc: Daniel De Graaf <dgdegra@tycho.nsa.gov>

Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>

> ---
>   xen/xsm/flask/hooks.c |    1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/xen/xsm/flask/hooks.c b/xen/xsm/flask/hooks.c
> index 56c7645..ba719de 100644
> --- a/xen/xsm/flask/hooks.c
> +++ b/xen/xsm/flask/hooks.c
> @@ -9,6 +9,7 @@
>    */
>
>   #include <xen/init.h>
> +#include <xen/irq.h>
>   #include <xen/lib.h>
>   #include <xen/sched.h>
>   #include <xen/paging.h>
>
Ian Campbell March 14, 2014, 5:26 p.m. UTC | #2
On Thu, 2014-03-13 at 10:34 -0400, Daniel De Graaf wrote:
> On 03/12/2014 12:16 PM, Julien Grall wrote:
> > nr_static_irqs and nr_irqs is defined in asm/irq.h (on both x86 and ARM).
> >
> > Include directly the header in hooks.c to avoid compilation failure on ARM.
> >
> > Signed-off-by: Julien Grall <julien.grall@linaro.org>
> > Cc: Daniel De Graaf <dgdegra@tycho.nsa.gov>
> 
> Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>

Acked-by: Ian Campbell <ian.campbell@citrix.com>
diff mbox

Patch

diff --git a/xen/xsm/flask/hooks.c b/xen/xsm/flask/hooks.c
index 56c7645..ba719de 100644
--- a/xen/xsm/flask/hooks.c
+++ b/xen/xsm/flask/hooks.c
@@ -9,6 +9,7 @@ 
  */
 
 #include <xen/init.h>
+#include <xen/irq.h>
 #include <xen/lib.h>
 #include <xen/sched.h>
 #include <xen/paging.h>