[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] x86/PSR: fix compilation error after 44f126d
commit 73b3bf10b475f4f8f92aba9a9de9ac433e53ead5 Author: He Chen <he.chen@xxxxxxxxxxxxxxx> AuthorDate: Fri Oct 16 17:43:19 2015 +0200 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Fri Oct 16 17:43:19 2015 +0200 x86/PSR: fix compilation error after 44f126d 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@xxxxxxxxxxxxxxx> --- xen/arch/x86/psr.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/xen/arch/x86/psr.c b/xen/arch/x86/psr.c index d3dec3a..f57ee77 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); -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |