[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen master] random: add missing include xen/cache.h



commit 685b1dcb519e01ad63edc7f3ca7af6383372d41b
Author:     Julien Grall <julien.grall@xxxxxxxxxx>
AuthorDate: Thu Jan 29 15:50:00 2015 +0100
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Thu Jan 29 15:50:00 2015 +0100

    random: add missing include xen/cache.h

    The commit f6c9698 " x86: allow reading MSR_IA32_TSC with XENPF_resource_op"
    introduced a built regression on ARM platform.

    random.c:8:28: error: expected Â?=Â?, Â?,Â?, Â?;Â?, Â?asmÂ? or 
Â?__attribute__Â? before Â?boot_randomÂ?
     unsigned int __read_mostly boot_random;
                                ^
    The define __read_mostly is defined in asm/cache.h which is included by
    other headers on x86 but not on ARM. Include xen/cache.h to fix the
    build.

    Signed-off-by: Julien Grall <julien.grall@xxxxxxxxxx>
    Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---
 xen/common/random.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/xen/common/random.c b/xen/common/random.c
index cb9187c..fb805b0 100644
--- a/xen/common/random.c
+++ b/xen/common/random.c
@@ -1,3 +1,4 @@
+#include <xen/cache.h>
 #include <xen/init.h>
 #include <xen/percpu.h>
 #include <xen/random.h>
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.