| 
    
 [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v2][4.17?] core-parking: fix build with gcc12 and NR_CPUS=1
 Hi Jan, On 24/10/2022 08:26, Jan Beulich wrote: On 22.10.2022 17:30, Julien Grall wrote:Is this intended for 4.17?Well, yes, it was meant to be - it has been ...On 09/09/2022 15:30, Jan Beulich wrote:... well over a month since it was sent. I could only spot two upstream in arch/x86/hvm/svm/svm.c and arch/x86/hvm/vmx/vmx.c. But I am not convinced this is a good enough reason to continue to use this approach. There are a few bad code examples in Xen and we have been pushing against continue to spread certain construct. Also note that it's not just the top bit of "op" - we merely assume "op" will never be ~0. Yes, I misread the code. Personally I prefer this way of coding the logic, but if at least one of the other x86 maintainers agreed with you, I'd be okay to switch to using a separate if(). I am curious why, is it just a matter of taste?If you really want to go down this route, then I think you should add "ASSERT(op != ~0U);" to catch someone introducing a value match that one we exclude. Cheers, -- Julien Grall 
 
 
  | 
  
![]()  | 
            
         Lists.xenproject.org is hosted with RackSpace, monitoring our  |