All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <Ian.Campbell@citrix.com>
To: Julien Grall <julien.grall@linaro.org>
Cc: Keir Fraser <keir@xen.org>,
	Ian Jackson <ian.jackson@eu.citrix.com>,
	tim@xen.org, stefano.stabellini@citrix.com,
	Jan Beulich <jbeulich@suse.com>,
	Chao Peng <chao.p.peng@linux.intel.com>,
	xen-devel@lists.xenproject.org
Subject: Re: [PATCH] xen: random: Add missing include xen/cache.h
Date: Thu, 29 Jan 2015 13:37:50 +0000	[thread overview]
Message-ID: <1422538670.5198.2.camel@citrix.com> (raw)
In-Reply-To: <1422538377-20328-1-git-send-email-julien.grall@linaro.org>

On Thu, 2015-01-29 at 13:32 +0000, Julien Grall wrote:
> 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>

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

> ---
>  xen/common/random.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> 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>



_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

      reply	other threads:[~2015-01-29 13:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-29 13:32 [PATCH] xen: random: Add missing include xen/cache.h Julien Grall
2015-01-29 13:37 ` Ian Campbell [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1422538670.5198.2.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=chao.p.peng@linux.intel.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=jbeulich@suse.com \
    --cc=julien.grall@linaro.org \
    --cc=keir@xen.org \
    --cc=stefano.stabellini@citrix.com \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.