Received: by 2002:a25:d783:0:0:0:0:0 with SMTP id o125csp811454ybg; Thu, 19 Mar 2020 09:10:14 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvwybaNIGXfgDl3jMwSx066KZD3RWE8Mw2Nvv2HC+QDu6c1snGB3XSqcUabTC0IZGdl+NBh X-Received: by 2002:aca:4142:: with SMTP id o63mr2824350oia.118.1584634214580; Thu, 19 Mar 2020 09:10:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584634214; cv=none; d=google.com; s=arc-20160816; b=s1bgKyQZofRsgkq4eh/EDKSdWz5DEZKBgMd56VyfIIsKYJqLR0OCLut26HFXGxuuVs qgIWRkmDidUoCwfrsT9IquilwvhIfxIdYTBrAcrOJ+bbgTkgr4oagO7PKGS+hXLkOHDA FaIB/Rq8i1uRU++A6kbNBFVqEbZPX/sVahtQxgL97fbiHtL0YoqwP4ZmcxZL2To1YdG3 JoavvMEkCsBpMlpySdndiuKtmjYnwju7gdK3VnHP+97cpLpeTXqwmORpMm2gHlyff7s6 FWMZ3HZg/Cr8bypeUzjOvKkDw+puXKTBEtyXE6wU0J2oI/HucUJ8un6VAA7D4LJ+1mi5 i9qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=wWFORMIkzrdKUS43ENF76LKOdqMsS2ZRBw2Ost6Bedk=; b=Nlc5DV1mi6WyE9pNpWRT99Oi6bUWJObe66gTPGyY/rhD6Twx81wtnWsng+4yMJiTm9 xPoWokYKYxMw6vRQQxpda89MCCymCPc4bvHB9o9HP5yz3x3C9u1G212oCx38DxpHOM/8 hRSE0S8IRSkBKiy5+yp2G+P6LkKz6f3Kl+mdiKqkc10Kpied4BPRCfY5JVaXqhKSg8gP Gco5coLuWZ0lnHHRWz7YtI0a9ED2New5hKVkL9HOIpbUkCdtA/cf7vpqlAzsfMmoDllf T93pXy4VvHSzPdv62j3SmIBZFWH9h2pYAEq7tsY9TXawPJWXVhPkoBNtDO3a1Kz6CBx1 cY4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=UpiOUVjN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w10si1409615oti.165.2020.03.19.09.09.22; Thu, 19 Mar 2020 09:10:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=UpiOUVjN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727822AbgCSQFe (ORCPT + 99 others); Thu, 19 Mar 2020 12:05:34 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:55651 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727064AbgCSQFe (ORCPT ); Thu, 19 Mar 2020 12:05:34 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id C5CA65C020F; Thu, 19 Mar 2020 12:05:32 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Thu, 19 Mar 2020 12:05:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=wWFORM IkzrdKUS43ENF76LKOdqMsS2ZRBw2Ost6Bedk=; b=UpiOUVjNjhubGU+xk98dcZ +pBWDcBQKE0scE+jmFJkt8CwffNG9cakLSwvN+FlsU5Upb/Fuwx3GsoN70U2jMRY 6OXKbuo5XnITjcGDjdnRF/C+Vk4LZv61ySbhMBasYhYdGkgzzQmwaZQRC/1RRQBB hjMyEVE5UfjeH2WbMHcEMqg+2bRs02GqBFpSJ/ZdSCm/L6/ZnKrgf1BI93Y2+9Ss Q+aoGkY68+MnhGqz1PujRA3JLxZ5/uKX7RDJ8gCL7hMasVDQ6h83uIQ4BNSuFCoL 0jiS7yUJTI13GQN0a6XMYqDbWJr7dSfxOcV5iO4b0c50fwUc9NeGyNfAoAnVHT1w == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudefledgkeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttdejnecuhfhrohhmpeforghrvghk ucforghrtgiihihkohifshhkihdqifpkrhgvtghkihcuoehmrghrmhgrrhgvkhesihhnvh hishhisghlvghthhhinhhgshhlrggsrdgtohhmqeenucfkphepledurdeihedrfeegrdef feenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrg hrmhgrrhgvkhesihhnvhhishhisghlvghthhhinhhgshhlrggsrdgtohhm X-ME-Proxy: Received: from mail-itl (ip5b412221.dynamic.kabel-deutschland.de [91.65.34.33]) by mail.messagingengine.com (Postfix) with ESMTPA id 51E47328005E; Thu, 19 Mar 2020 12:05:31 -0400 (EDT) Date: Thu, 19 Mar 2020 17:05:24 +0100 From: Marek =?utf-8?Q?Marczykowski-G=C3=B3recki?= To: Boris Ostrovsky Cc: xen-devel@lists.xenproject.org, Juergen Gross , Stefano Stabellini , Roger Pau =?utf-8?B?TW9ubsOp?= , Simon Gaiser , open list Subject: Re: [PATCH] xen-pciback: fix INTERRUPT_TYPE_* defines Message-ID: <20200319160524.GX18599@mail-itl> References: <20200319040648.10396-1-marmarek@invisiblethingslab.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="xaJmculcd5PV2weY" Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --xaJmculcd5PV2weY Content-Type: text/plain; protected-headers=v1; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH] xen-pciback: fix INTERRUPT_TYPE_* defines On Thu, Mar 19, 2020 at 11:07:13AM -0400, Boris Ostrovsky wrote: >=20 > On 3/19/20 12:06 AM, Marek Marczykowski-G=C3=B3recki wrote: > > INTERRUPT_TYPE_NONE should be 0, >=20 >=20 > Would >=20 > =C2=A0 return ret ?: INTERRUPT_TYPE_NONE >=20 > in xen_pcibk_get_interrupt_type() work? >=20 >=20 > I think it's better not to tie macro name to a particular value. I can do that too. But I'd change INTERRUPT_TYPE_NONE to 0 anyway, as more logical value (as the value is a bitmask). > -boris >=20 >=20 > > as it is assumed in > > xen_pcibk_get_interrupt_type(). Fix the definition, and also shift other > > values to not leave holes. > > But also use INTERRUPT_TYPE_NONE in xen_pcibk_get_interrupt_type() to > > avoid similar confusions in the future. > >=20 > > Fixes: 476878e4b2be ("xen-pciback: optionally allow interrupt enable fl= ag writes") > > Signed-off-by: Marek Marczykowski-G=C3=B3recki > >=20 --=20 Best Regards, Marek Marczykowski-G=C3=B3recki Invisible Things Lab A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --xaJmculcd5PV2weY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhrpukzGPukRmQqkK24/THMrX1ywFAl5zmEQACgkQ24/THMrX 1yyYtwf+Pg91y5j0VuyfObz5D6ca2GNocsfVmm3WdXCHHpgx6nmJMWkfq+JWk+De Qqp/HjmenfTPVnYbkRgE9A9qiCT/eQ1WTkfAmk+0oqQIcuNrv4lssV5QtS+b3D8X ToKagzMOYGS0WMcMEbbAs9N9rLnJVOJw0PRI3HcTsoNoWNymyIVrLgoyoBYTGx0O J8vHvSydTsAuwf1KESUnglaEBr/KTLwNOya5lccQaSEYYu2vbqIhinyOI1v2pP27 cTMYNR5TGxjcCCAWB7BvzhUq0Xe4OTYEbB3WMhHnq+OsxrHKsAMYpm+3CCBI/suJ oJ22cTJ/CG7dyGddWmdrkbbtUHuVFA== =uRFZ -----END PGP SIGNATURE----- --xaJmculcd5PV2weY--