Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.4 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4DD5BC388F9 for ; Wed, 11 Nov 2020 07:21:07 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EDF69207BB for ; Wed, 11 Nov 2020 07:21:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="lzUI1NRn" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EDF69207BB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.24254.51395 (Exim 4.92) (envelope-from ) id 1kckR7-0003pF-1I; Wed, 11 Nov 2020 07:20:57 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 24254.51395; Wed, 11 Nov 2020 07:20:57 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kckR6-0003p8-UT; Wed, 11 Nov 2020 07:20:56 +0000 Received: by outflank-mailman (input) for mailman id 24254; Wed, 11 Nov 2020 07:20:55 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kckR5-0003p1-Fs for xen-devel@lists.xenproject.org; Wed, 11 Nov 2020 07:20:55 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 0ecff3b3-488a-4d31-a58a-5cdedda3078b; Wed, 11 Nov 2020 07:20:54 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 70590AC82; Wed, 11 Nov 2020 07:20:53 +0000 (UTC) Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kckR5-0003p1-Fs for xen-devel@lists.xenproject.org; Wed, 11 Nov 2020 07:20:55 +0000 X-Inumbo-ID: 0ecff3b3-488a-4d31-a58a-5cdedda3078b Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 0ecff3b3-488a-4d31-a58a-5cdedda3078b; Wed, 11 Nov 2020 07:20:54 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1605079253; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LQd77mdpS/ziSZ6ksGaT/WYsWU2bwhmwIchfymJzMg8=; b=lzUI1NRnUV/q3O1SxW1ftm/OyQBgyKQCIY+Jv8zgfHw6uNJGah4BlTe4cGMrfNdjKwSWcI 1OWP240VxNoKVIpVFlWhhFlNEeYQymSvfjytb9ahI2gl1zignWnAJilNpE0FxXyOFWln7s g7H+BgPjs1top8oy5s60Lruou5kHcFM= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 70590AC82; Wed, 11 Nov 2020 07:20:53 +0000 (UTC) Subject: Re: [PATCH] xen/events: fix build To: Juergen Gross Cc: Andrew Cooper , George Dunlap , Ian Jackson , Julien Grall , Stefano Stabellini , Wei Liu , xen-devel@lists.xenproject.org References: <20201111054946.3229-1-jgross@suse.com> From: Jan Beulich Message-ID: <8feafd17-851f-9bb2-0fe0-2d6f8bed4d4c@suse.com> Date: Wed, 11 Nov 2020 08:20:49 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.1 MIME-Version: 1.0 In-Reply-To: <20201111054946.3229-1-jgross@suse.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 11.11.2020 06:49, Juergen Gross wrote: > --- a/xen/common/event_channel.c > +++ b/xen/common/event_channel.c > @@ -61,7 +61,9 @@ static inline void evtchn_write_lock(struct evtchn *evtchn) > { > write_lock(&evtchn->lock); > > +#ifndef NDEBUG > evtchn->old_state = evtchn->state; > +#endif > } > > static inline void evtchn_write_unlock(struct evtchn *evtchn) > diff --git a/xen/include/xen/sched.h b/xen/include/xen/sched.h > index 7251b3ae3e..95f96e7a33 100644 > --- a/xen/include/xen/sched.h > +++ b/xen/include/xen/sched.h > @@ -114,9 +114,7 @@ struct evtchn > u16 virq; /* state == ECS_VIRQ */ > } u; > u8 priority; > -#ifndef NDEBUG > u8 old_state; /* State when taking lock in write mode. */ > -#endif > u8 last_priority; > u16 last_vcpu_id; > #ifdef CONFIG_XSM Did you mean just either of the two changes (and then the former), not both? If so Reviewed-by: Jan Beulich and I'll be happy to drop the other half for committing. Jan