Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3426419pxj; Mon, 7 Jun 2021 10:17:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9eAwyZl9GCo/+s9FpRzzrwKhXzezzWryC4/rKr2eJ1h/WJFY1eVPBkvVPN1zAoAZXmvOL X-Received: by 2002:a17:906:6981:: with SMTP id i1mr18803195ejr.289.1623086223606; Mon, 07 Jun 2021 10:17:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623086223; cv=none; d=google.com; s=arc-20160816; b=kkpY6SSbIj8tVA334MobvnmXJ67GmWI9K7RPGXins0dtcAVMhNcmQxhwZJfohkLGDu 0tIjZTgldWYBcRF/+3C6VfqhAa4nLuEp0s19dgcEd5GWaZC2xMjmfXt8yUXEWntuZ7OQ YX7uFYYGIhao7OicUtoQSMq0wkGdd0KZmjnHqkrjyy7tU8mlGWPxOJqPZrUHPP+7jqr9 KwZeFHlFjf8+UP6/ifq5da0KEbkGwgv/yWEe1lLjl1vGjKztw/U5xzfNe2c0c2NepSeQ 1UYIsWNXorQjtzh3E4HnGkLR2eM7vzvVQmF71o0Jrw1FmWAhC/jRwjg4t77SgoVafto9 7I3Q== 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 :message-id:subject:cc:to:from:date:dkim-signature; bh=omPElTjik/8UyZB3+BlKpPCSe+IvytwAmS9UIJiMWQ0=; b=Edfx9FuKyj86z1+10JuD4iEaW8dmNvz3BepyRSh54+gxd11jWdUuQl1M62gJGTnBYO 6ei6yRje/F9AIw7a8WdIWmzw3EuHlajY1O9cZjJO7lefg+Swk6YLttGibVO7eOIqCULm ddxpehHjtPVa2YmgHNzcITuQlQbazABUXCYWdp2inA0lNsOhK1akUiFzrPrat6IHM28j ky3E4kMtvG9RyWI9njCyQ9ChGwMG79ApI5XKWjluiP1/B1MU3dpCLW9UfYxcKAb4NvW/ 6UxiuF7keacpb0+/oMadWHJckc6AVhBZ3IMItVO248dDRyt3oIa02F8ZCieoPg1SCvIU SgzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VVntAZBJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m26si12182882ejl.628.2021.06.07.10.16.39; Mon, 07 Jun 2021 10:17:03 -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=@kernel.org header.s=k20201202 header.b=VVntAZBJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230523AbhFGRQq (ORCPT + 99 others); Mon, 7 Jun 2021 13:16:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:41438 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230504AbhFGRQp (ORCPT ); Mon, 7 Jun 2021 13:16:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 40FB960FF2; Mon, 7 Jun 2021 17:14:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623086093; bh=9jfypPKUdKJ4TKMPL0HZ70TpD4lRTMsAT/7JugcEW+g=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=VVntAZBJCrFxdag/Jatlnwr8jFp5Nx5XPaS8INk7lj8ha+sgfZkm1atn0T+zkwa1o WnG9n54Sk9Rc+0oErXhzgKHmhPtAb6P+w9e8Dg/RpEISs3INHv+Y6ei59mdcyL+Rmr /XSOytZls8BZwBVLQfN1kMRkOc6gHeLe0SB375T6Fy9tOpG4NyQcnAEFHMzemCDNLO FZfNlhzYTyPKFeDfA0kDvCL1hJYVSA0kMRgoM8imOR9kA10IXCqj7+JLEGAUAY0NUL q3LX212U1Qi1A0ODnfrZezYIhRSf6vvQF3CxG1NwIm5JI4mDDUDS32qEPDGMPgFLzg JeCQb3atcLEtg== Date: Mon, 7 Jun 2021 12:14:51 -0500 From: Bjorn Helgaas To: Andy Shevchenko Cc: Dejin Zheng , corbet@lwn.net, jarkko.nikula@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: <20210607171451.GA2507298@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 07, 2021 at 07:12:34PM +0300, Andy Shevchenko wrote: > 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. > > > > And use pci_free_irq_vectors() to replace some code in pcim_release(), > > they are equivalent, and no functional change. It is more explicit > > that pcim_alloc_irq_vectors() is a device-managed function. > > ... > > > When CONFIG_PCI=n, there is no stub for pci_is_managed(), but > > pcim_alloc_irq_vectors() will use it, so add one like other similar stubs. > > Otherwise there can be build errors, as here by kernel test robot > > reported: > > include/linux/pci.h: In function 'pcim_alloc_irq_vectors': > > >> include/linux/pci.h:1847:7: error: implicit declaration of function 'pci_is_managed' [-Werror=implicit-function-declaration] > > 1847 | if (!pci_is_managed(dev)) > > | ^~~~~~~~~~~~~~ > > This is rather changelog related material. No need to pollute commit message > with this. > > ... > > > Reported-by: kernel test robot > > It's new functionality. Why this tag is here? > Use comments (similar location than changelog) to give a credit if you wish. Agreed, I'll tidy that up, so no need to repost for this.