From: Julien Grall <julien.grall@citrix.com>
To: He Chen <he.chen@linux.intel.com>, xen-devel@lists.xenproject.org
Cc: Olaf Hering <olaf@aepfle.de>, Keir Fraser <keir@xen.org>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Jan Beulich <jbeulich@suse.com>,
Chao Peng <chao.p.peng@linux.intel.com>,
Wei Liu <wei.liu2@citrix.com>
Subject: Re: [PATCH v2 for staging] fix compile error
Date: Fri, 16 Oct 2015 11:48:19 +0100 [thread overview]
Message-ID: <5620D5F3.7060103@citrix.com> (raw)
In-Reply-To: <1444990567-1890-1-git-send-email-he.chen@linux.intel.com>
Hi,
"fix compiler error" is too vast. The commit title should be more
meaningful. Something like:
"x86: psr: fix compilation on non-debug build after 44f126d"
On 16/10/15 11:16, He Chen wrote:
> In non-debug build ASSERT_UNREACHABLE is nop and some compilers will
> complain that cbm_code/cbm_data may be used uninitialized in function
> psr_set_l3_cbm. Add return after ASSERT_UNREACHABLE to fix it.
>
> Signed-off-by: He Chen <he.chen@linux.intel.com>
> ---
> Changes in v2:
> Sorry for mistake in first version of this patch.
> This is the correct patch.
> ---
> xen/arch/x86/psr.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/xen/arch/x86/psr.c b/xen/arch/x86/psr.c
> index d3dec3a..c5bdfce 100644
> --- a/xen/arch/x86/psr.c
> +++ b/xen/arch/x86/psr.c
> @@ -477,6 +477,7 @@ int psr_set_l3_cbm(struct domain *d, unsigned int socket,
>
> default:
> ASSERT_UNREACHABLE();
> + return -EINVAL;
> }
>
> spin_lock(&info->cbm_lock);
>
--
Julien Grall
prev parent reply other threads:[~2015-10-16 10:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-16 10:16 [PATCH v2 for staging] fix compile error He Chen
2015-10-16 10:48 ` Julien Grall [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=5620D5F3.7060103@citrix.com \
--to=julien.grall@citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=chao.p.peng@linux.intel.com \
--cc=he.chen@linux.intel.com \
--cc=jbeulich@suse.com \
--cc=keir@xen.org \
--cc=olaf@aepfle.de \
--cc=wei.liu2@citrix.com \
--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.