projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c787425
)
x86/PSR: fix compilation error after 44f126d
author
He Chen
<he.chen@linux.intel.com>
Fri, 16 Oct 2015 15:43:19 +0000
(17:43 +0200)
committer
Jan Beulich
<jbeulich@suse.com>
Fri, 16 Oct 2015 15:43:19 +0000
(17:43 +0200)
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>
xen/arch/x86/psr.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/psr.c
b/xen/arch/x86/psr.c
index d3dec3a331e36cb8521168b89665e232ff73b8c3..f57ee774142d6aea13218bc5650f84f35b3de9a7 100644
(file)
--- 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);