Re: [Xen-devel] [PATCH for staging] fix compile error

2015-10-16 Thread Olaf Hering
Am 16.10.2015 um 12:15 schrieb Wei Liu: > On Fri, Oct 16, 2015 at 06:03:36PM +0800, He Chen wrote: >> In non-debug build ASSERT_UNREACHABLE is nop and some compilers will Should be "all compilers" ;-) Olaf ___ Xen-devel mailing list Xen-devel@lists.xe

Re: [Xen-devel] [PATCH for staging] fix compile error

2015-10-16 Thread Wei Liu
On Fri, Oct 16, 2015 at 06:03:36PM +0800, 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 > ---

[Xen-devel] [PATCH for staging] fix compile error

2015-10-16 Thread He Chen
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 --- xen/arch/x86/psr.c | 1 + 1 file changed, 1 insertion(+) diff --gi