Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp371689pxt; Wed, 11 Aug 2021 23:57:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTAtlEMdN878XmXq1At3oj40fsFL3IJn77LBe4vWN8wBY94Ly1qg27U/vX5m2i/WosFDt0 X-Received: by 2002:a17:907:98b4:: with SMTP id ju20mr2233266ejc.366.1628751467259; Wed, 11 Aug 2021 23:57:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628751467; cv=none; d=google.com; s=arc-20160816; b=p6eLYEvtoBCpcJeajdZvVKAyww6JKQ9Im7Vzcx+sCNbZPdERr+X7A+MNdKozSgonee MyAW56q4EupO1VHVLhPG1Px0odf8XQ532NZPZA7NjDVwwJ5BDYF7W/QAZNWXjmlWbIr+ Hi2yxJCWTbwpfmoyRUdSx+rS59DMU1QMM0ps4DLS7BHKNAnwHJBHOLFuo0iayle4GL/V si5U20JCUIlEiTGhvuMSYDK1ybruSVIwGLyeErdmqgY+DfFW2PMY1S3bC3OjHyyChkHd CBNyemc+NMNTWAxfUDvkYGzv5MIe5gQFDEIZkiufb/3+DXwrw/YtNxaXHPYyB/zj2fxd t7+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=7tumxtnlUFmqcDNOcJ47r7kQUcoYA0a+Ye8p8V4K8f4=; b=EZq1jNF3gOGm9o5rDfECN8kKTQrHsYmt7L7oEQVZPV53TEPFPgKdGLPQIaj1FxOT+G BDsF+M/HgN3+W7wrwkQY3nGa4kM979qAX1ckiAeGtvFHyK52g6PQoDaa2USSGkPiIdW3 bnMmNJwLhL9MAdp7ZF6VlipXQrHnrgQlO5nYrIw3wmSzL+ltny4FwPSFufhy7rmEgXiv rdTZnnlEoIIuF5LCqf8JSAs4BGUFRDzqzBKXQsu/kDcp2mpvd0ajflEaYxMUSxa+w6a4 ZVpSVZZ8SQAybeaurbp4mVy/HZexP28KD54IKuAaKi61kHwfy7p/TmkeWLcRhDN7vpzp 7/1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kroah.com header.s=fm1 header.b="g/5E8jn8"; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=nRfbpaXW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d17si1815400eds.604.2021.08.11.23.57.24; Wed, 11 Aug 2021 23:57:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kroah.com header.s=fm1 header.b="g/5E8jn8"; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=nRfbpaXW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234627AbhHLGtu (ORCPT + 99 others); Thu, 12 Aug 2021 02:49:50 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:45947 "EHLO out2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233567AbhHLGtu (ORCPT ); Thu, 12 Aug 2021 02:49:50 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id DF8255C00EB; Thu, 12 Aug 2021 02:49:24 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 12 Aug 2021 02:49:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=7tumxtnlUFmqcDNOcJ47r7kQUco YA0a+Ye8p8V4K8f4=; b=g/5E8jn8FWxiDYkpiYRmkneKF9SN4WjUCz7ct7j0OQT sEXB3cQ6CqMTn75GHh+X0oG5r7A9gYK2/dqC1rn0Nhy5ayMild9xn1wXIBsLgd8y anuNOwQnpynWmuUy8c+Uo1GcsIEdvUhAVPM8Mx+VMUkqNaodprxX3PAUkgJsEz3a mz9+b36kumggPgFKxL75s7i7FMlIQ2YFfBtcs+a8hQa0jWiiloqdMhQ1hRhfbRAs lZUao9xbGY56Qwk/h6kpU7YBR+uF2j5K9s14BPS5yJ45VK2bqHUq3AMGzpVj4bDA uj/SvD8hQ9D0XZyNgcoBugEoec9QdZWkXwaOsAaAOQA== 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=fm3; bh=7tumxt nlUFmqcDNOcJ47r7kQUcoYA0a+Ye8p8V4K8f4=; b=nRfbpaXW0mrcWyOUxOA3Dp cLQn9yUvRtuuhFejrpsoWoP8QCjyaEepM0FjKqIEprRgB5U9V942gJsPhbA5OnPt VnvI5pq3ubX+9mg1mJUX/yA8kI1Nzw75+hFLKjMwYstjiwgr9SnMYyfpB35O5TJ2 U13ZSiqPajZGRXJhsp7h4rFjz9tT6Tt7eaDYVNSNO8cNjGsXYTD9c9+psFnApu/p ehMKEsTBOZMVnIKYzLCAjgafiJTntwNyJOE6dGrgOUkU1saSU/AUPlFf2NrAbDPg 7JRmHqoSzVRyZ0iaY+Ys9/Suhq2wDCJK36K0sJuKTve8kF2BgmKkZjMXOZlQbSXg == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrkedvgddutdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefirhgvghcu mffjuceoghhrvghgsehkrhhorghhrdgtohhmqeenucggtffrrghtthgvrhhnpeevueehje fgfffgiedvudekvdektdelleelgefhleejieeugeegveeuuddukedvteenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvgheskhhrohgrhh drtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 12 Aug 2021 02:49:24 -0400 (EDT) Date: Thu, 12 Aug 2021 08:49:21 +0200 From: Greg KH To: Utkarsh Verma Cc: Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] PCI: Remove duplicate #ifdef in pci_try_set_mwi() Message-ID: References: <20210811234601.341947-1-utkarshverma294@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210811234601.341947-1-utkarshverma294@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 12, 2021 at 05:16:01AM +0530, Utkarsh Verma wrote: > Remove the unnecessary #ifdef PCI_DISABLE_MWI, because pci_set_mwi() > performs the same check. > > Signed-off-by: Utkarsh Verma > --- > drivers/pci/pci.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c > index aacf575c15cf..7d4c7c294ef2 100644 > --- a/drivers/pci/pci.c > +++ b/drivers/pci/pci.c > @@ -4456,11 +4456,7 @@ EXPORT_SYMBOL(pcim_set_mwi); > */ > int pci_try_set_mwi(struct pci_dev *dev) > { > -#ifdef PCI_DISABLE_MWI > - return 0; > -#else > return pci_set_mwi(dev); > -#endif > } > EXPORT_SYMBOL(pci_try_set_mwi); If this is the case, why do we even need pci_try_set_mwi()? Why not just replace it with calls to pci_set_mwi() and then delete this one? thanks, greg k-h