Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1442147pxm; Thu, 24 Feb 2022 03:18:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJyiLJs7q94eJ/cnF1meo85Eu+hKslU58UnKYdZ1d5mFcKf2Swzf0EfZzeYcK2qUMQ/8q6FF X-Received: by 2002:a17:902:cf03:b0:14d:7447:1003 with SMTP id i3-20020a170902cf0300b0014d74471003mr1987012plg.143.1645701508201; Thu, 24 Feb 2022 03:18:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645701508; cv=none; d=google.com; s=arc-20160816; b=UDrCKB4Eo6sTdvQwZRnsX7xvkeD0aQn2W8rulA58lDftWHIW7+Xxc8GTBV+ip5VzuW UbH1JFoQq1KkQMgO72zRqNxcacCTsE+YGUuBgCrxA4Yvh9dTxy2EAxXrcbEvAB6PvbEX mQOpJY6DOFtEL1RLP2PRSeAeSPywb/xXfFbeLPbHd7BsvWnhmTHIiCCgHYQ8jwDWV2Ci yhdpsabLtxxcmAxQ+K4bJ3mUzOYbivFsSb5VFZbcAq1w3FRVDbyboxywjcWJQMMSsofd zc0tVhpSSDngXQLgxUFvldifSsCqLeYRatyTQcD1O8PpvuZXvvWjQxq7yypjMEjhFBkQ eKzA== 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; bh=s+oFl0vWOonHrwSeNZUFJERIhMF8rGA7uA4JM5TBN7w=; b=tqXrK4nvQIJtvHAqnRcUcphW6XYx4ykHBknWBBL5bqux8e44TiyirodWYdpishlC8R E6GYFayyjjeiAHqhTdDNSl5cSLfI5FzvnOFCyNza8gLnRAzAhKC2t4ysRBBgBRUjT3Nb v74VzQIhN9v9eNzR2FWmLnymGgZu1ys7ax4ry18LCh8jbO7mHSOorQ/E6eUGjaLKf1VY TN4zKGwYcS5nd/8DYxWfwzRMN95+enht4KHVXjq3o/9tAVqu/vqbbuICaScR0/IOJ903 ci/Fwz62eHWC3hfH7WP2mlHsgtl8alNwQC45Nw1cNw6fe1nYXCxCoOzsBOccGticO1FH 3cdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=kUxeBvzU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b6si2201667pgw.490.2022.02.24.03.18.13; Thu, 24 Feb 2022 03:18:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=kUxeBvzU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233804AbiBXLIC (ORCPT + 99 others); Thu, 24 Feb 2022 06:08:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233051AbiBXLIB (ORCPT ); Thu, 24 Feb 2022 06:08:01 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01A10BCBE; Thu, 24 Feb 2022 03:07:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=s+oFl0vWOonHrwSeNZUFJERIhMF8rGA7uA4JM5TBN7w=; b=kUxeBvzUY8AgM2GJqaBNyJArtC oWGIfnZ7fCzvbuMYVQKU3nmSVqj2tgX3kCOHKuUet29L7jbWdWLcNs+2p7QaHrX8MjRjhs9Duaf2m 7y3OFKdiLqusIlJeagvoxhlI4Mrdf7Xc8BidDGH5f6wrLA23HUDWbnLWN/t2kOthuBT9+ukwjLKam LbrIsB2We6OlEkLsGiL5g/YROcfuPnt2z+cwOniJNujNctFCflqAIXMJR1rW14mRjxPhrOQ0nT+/y rJ4shbiDjvQgRYLZ3xnnz/In0K8UU03fDxamtI6ngc+VhUTCTeuqpS5H/NKSzt/COYWkxIspEPmpt 2aAPQL2Q==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nNBxz-000UeP-EV; Thu, 24 Feb 2022 11:07:23 +0000 Date: Thu, 24 Feb 2022 03:07:23 -0800 From: Christoph Hellwig To: Dejin Zheng Cc: helgaas@kernel.org, corbet@lwn.net, jarkko.nikula@linux.intel.com, andriy.shevchenko@linux.intel.com, mika.westerberg@linux.intel.com, rric@kernel.org, bhelgaas@google.com, wsa@kernel.org, Sanket.Goswami@amd.com, linux-doc@vger.kernel.org, linux-i2c@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, kernel test robot Subject: Re: [PATCH v7 1/4] PCI: Introduce pcim_alloc_irq_vectors() Message-ID: References: <20210607153916.1021016-1-zhengdejin5@gmail.com> <20210607153916.1021016-2-zhengdejin5@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210607153916.1021016-2-zhengdejin5@gmail.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 07, 2021 at 11:39:13PM +0800, Dejin Zheng wrote: > Introduce pcim_alloc_irq_vectors(), a device-managed version of > pci_alloc_irq_vectors(). Introducing this function can simplify > the error handling path in many drivers. How does it do that when it just is a trivial wrapper erroring out for the unmanaged case?