Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932406AbdHYOCL (ORCPT ); Fri, 25 Aug 2017 10:02:11 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:41733 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754632AbdHYOCH (ORCPT ); Fri, 25 Aug 2017 10:02:07 -0400 Date: Fri, 25 Aug 2017 16:02:02 +0200 (CEST) From: Thomas Gleixner To: Boris Ostrovsky cc: LKML , Ingo Molnar , Peter Anvin , Peter Zijlstra , Andy Lutomirski , Borislav Petkov , Steven Rostedt , Juergen Gross Subject: Re: [patch 20/41] x86: Replace access to desc_struct:a/b fields In-Reply-To: Message-ID: References: <20170825103103.287814238@linutronix.de> <20170825104414.553007376@linutronix.de> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 565 Lines: 19 On Fri, 25 Aug 2017, Boris Ostrovsky wrote: > > > > > Index: b/arch/x86/xen/enlighten_pv.c > > =================================================================== > > --- a/arch/x86/xen/enlighten_pv.c > > +++ b/arch/x86/xen/enlighten_pv.c > > @@ -494,7 +494,7 @@ static void __init xen_load_gdt_boot(con > > static inline bool desc_equal(const struct desc_struct *d1, > > const struct desc_struct *d2) > > { > > - return d1->a == d2->a && d1->b == d2->b; > > + return memcmp(d1, d2, sizeof(*d1)); > > } > > Shouldn't this be !memcmp() ? Bah yes.