]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
x86/PSR: fix compilation error after 44f126d
authorHe Chen <he.chen@linux.intel.com>
Fri, 16 Oct 2015 15:43:19 +0000 (17:43 +0200)
committerJan 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

index d3dec3a331e36cb8521168b89665e232ff73b8c3..f57ee774142d6aea13218bc5650f84f35b3de9a7 100644 (file)
@@ -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);