diff mbox

[Xen-devel] xen: random: Add missing include xen/cache.h

Message ID 1422538377-20328-1-git-send-email-julien.grall@linaro.org
State Accepted, archived
Headers show

Commit Message

Julien Grall Jan. 29, 2015, 1:32 p.m. UTC
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@linaro.org>
Cc: Chao Peng <chao.p.peng@linux.intel.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Jan Beulich <jbeulich@suse.com>
Cc: Keir Fraser <keir@xen.org>
---
 xen/common/random.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

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>