]> xenbits.xensource.com Git - xen.git/commitdiff
random: add missing include xen/cache.h
authorJulien Grall <julien.grall@linaro.org>
Thu, 29 Jan 2015 14:50:00 +0000 (15:50 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 29 Jan 2015 14:50:00 +0000 (15:50 +0100)
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 \91=\92\91,\92\91;\92\91asm\92 or \91__attribute__\92 before \91boot_random\92
 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>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/common/random.c

index cb9187ce9272646b78cd45645a449bd231a9858e..fb805b0ecd950305aed346385ed0783b9f10cf84 100644 (file)
@@ -1,3 +1,4 @@
+#include <xen/cache.h>
 #include <xen/init.h>
 #include <xen/percpu.h>
 #include <xen/random.h>