Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3925803ybl; Mon, 3 Feb 2020 09:07:45 -0800 (PST) X-Google-Smtp-Source: APXvYqzO08j3apU3b31TC914MJQUp7kqLDbXW3DL7cpfxU2/6W2ZzPEBQF7QUOmznYkLKsNP4TJ2 X-Received: by 2002:a9d:63d6:: with SMTP id e22mr18479674otl.72.1580749665572; Mon, 03 Feb 2020 09:07:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580749665; cv=none; d=google.com; s=arc-20160816; b=AL+PnmcHh/dsXYhec/4XUWIpnBAi7pEoQejO0l8SXLpnx71hXRYX0MthcQBMIJ4FMz BaTHxBIzCEVCnQuSAPaXleDJDqpmBwn9WbeOMBt6hQ22KTM3ltdz0QajJ+COh1SL19zN 4MzwRwPaHaQrl7g4PbSErNvqk+xakzkbPctxpEFi6XOijD4c/yd/P0fQywJOzLSNsNbj xn/YMJ9XoseSfOKgn/zv1IwjTRI7vO3N79Uxmm7mt7AE0Dl89vRYeaDoWzP9bRD3+57z rBJyjl7u+FMjHCOaW97xXT08nTM84jAsnutpkxprc4LB57NNpejA0MDQM10Ux+dUquFg yFBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=htQ1OWvgA/Prm80GOS/V4PBwIpiDoTCT3yYkcEa5uHw=; b=Pf+CHotY6hOjM7ZNKWMv11kvPgQ6bQZrVHSY+qgL6tJhzYavs41d9HrKCGY1rBBPwQ Z98c1sRCw2R/0ecVybrOVbx/i3Lj0aO6KqYQUqXwDzvckTgidgQcuxj1qJ4Q/uq05Kjk m1BNH/Tz5s8LhQAWlgMrqRjkuspfbz5FgDnsse+p157YWriIREOmaRrnRtaO+j2L+LHZ Vx6k15ZR+hkCWw4s3cEzMEigDhTkGnfxvfNJSFjXkiyVPPMqPYWaVlBTZsDQHE0106c1 e1nGPPltglvRcf+x/BGPpkDMkzYQ+DbwZcXAMHl1TDJRtaHTocnyYJVaDkbccMQeewA4 rWrA== ARC-Authentication-Results: i=1; mx.google.com; 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 4si4126259oix.257.2020.02.03.09.07.33; Mon, 03 Feb 2020 09:07:45 -0800 (PST) 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; 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 S1728510AbgBCOmM (ORCPT + 99 others); Mon, 3 Feb 2020 09:42:12 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:59841 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727454AbgBCOmL (ORCPT ); Mon, 3 Feb 2020 09:42:11 -0500 Received: from [89.248.140.14] (helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iycvG-0006rj-Pp; Mon, 03 Feb 2020 15:41:59 +0100 Received: by nanos.tec.linutronix.de (Postfix, from userid 1000) id B8D19100C1B; Mon, 3 Feb 2020 15:41:52 +0100 (CET) From: Thomas Gleixner To: Boqun Feng , linux-pci@vger.kernel.org, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Michael Kelley , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Sasha Levin , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, Lorenzo Pieralisi , Andrew Murray , Bjorn Helgaas , Boqun Feng Subject: Re: [PATCH v2 3/3] PCI: hv: Introduce hv_msi_entry In-Reply-To: <20200203050313.69247-4-boqun.feng@gmail.com> References: <20200203050313.69247-1-boqun.feng@gmail.com> <20200203050313.69247-4-boqun.feng@gmail.com> Date: Mon, 03 Feb 2020 15:41:52 +0100 Message-ID: <87d0av20nj.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Boqun Feng writes: > /* > diff --git a/arch/x86/include/asm/mshyperv.h b/arch/x86/include/asm/mshyperv.h > index 6b79515abb82..3bdaa3b6e68f 100644 > --- a/arch/x86/include/asm/mshyperv.h > +++ b/arch/x86/include/asm/mshyperv.h > @@ -240,6 +240,11 @@ bool hv_vcpu_is_preempted(int vcpu); > static inline void hv_apic_init(void) {} > #endif > > +#define hv_set_msi_address_from_desc(msi_entry, msi_desc) \ > +do { \ > + (msi_entry)->address = (msi_desc)->msg.address_lo; \ > +} while (0) Any reason why this needs to be a macro? inlines are preferrred. They are typesafe and readable. Thanks, tglx