Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2555948rwl; Thu, 6 Apr 2023 11:57:36 -0700 (PDT) X-Google-Smtp-Source: AKy350avX1N+g5TzIhq5FyhxbOlJXYER0SVfbNOtoDPmOXQBb5C7PNJ/WPnoSlwexQjHos8LH8iA X-Received: by 2002:a17:906:1287:b0:930:9197:24d1 with SMTP id k7-20020a170906128700b00930919724d1mr5684366ejb.6.1680807456679; Thu, 06 Apr 2023 11:57:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680807456; cv=none; d=google.com; s=arc-20160816; b=wDZrO0ftvvEmvbUVnUfDwRpDdvBFC9ZWOVmUw5PKuLuMGoxT9WJHRoggVbL4ynFEPR LxMc4DA/Kb3oDN0HfXs0K/ONCo50dGQ4P5hEIId4fQXjuoCsHMJ+06esC9oXKYr3Qvth JDm9mQ2ereH8VIFFqQfgVbD/c/Ixm2JyM0tjw++fZvY4+yCRfuypRoXkMkr556Vdft04 AdtswdV7Fk3KOblImhWjauDDoohKhQoDq/ZwxCPtU9VoQ/ZkZI2P63o45qKMjYuUbioH OHvsoPtHDRKF9dPSmAphDFJpRv+hJ9gFx1fpJy71IBPhPzFaCdX6YWDLP56vC+DbFnUc WSXw== 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=jmcMCPYkjgNm/Ks/7UHcY/hFKn0/H0we3QNTKYvPo+0=; b=Vf1mvc7EFQaMi6IHf54sSe6T4p06kMjnWXCSXHsGAH1XeNeLypU7Z5xEXweI1lw2vy qPB0vrfP3+VQPO9XIplRnDHe08PRy1a3Vz+RQv+9EAVFaRmwTXxfRZx4vTyIGmnTt35e cI5lGNOwL/omhpWr2q++rvmXOnNjcFQPRsxR9uQ4uYHHEW0YcXn4VabwKGNAQN7+80Xb eX2J+tjul+XlGqEOOurB6Iq0tEJc12Y0HgNWFnvK+DXoEZrM4s/KsS7wW5ljDfU9dLe0 sH8DLhMOwy32lwvv3UF4dEKV7YI4qQiyJiWHGEfZv+XXAmt4ACQhDhtitbO1UVayVDVg URBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QrjN0P04; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p11-20020a056402074b00b004fd23c65267si1709820edy.569.2023.04.06.11.57.11; Thu, 06 Apr 2023 11:57:36 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=QrjN0P04; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240533AbjDFSth (ORCPT + 99 others); Thu, 6 Apr 2023 14:49:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240450AbjDFStX (ORCPT ); Thu, 6 Apr 2023 14:49:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82CABB47A; Thu, 6 Apr 2023 11:48:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B829560DD3; Thu, 6 Apr 2023 18:48:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DAA31C433EF; Thu, 6 Apr 2023 18:48:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680806901; bh=pl57oZSe0jdCMT2RcmKFvtRgHAztuw1b3LYiVrGLo1Q=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=QrjN0P04y167ErdLcmrfdZi9m+PVvpY+NzG4FbaVDNQy4pOq0eRKDFUmekp2dc9Sw 766jRVRlaP0+w5GumM7tHcLFzk4zBP3VbFaaZ8gmmw6cf4pFlp1YbcPaY5i5cWI/PQ /b2t69beJjuqCjdCD7gQJ9g0hW0TIh1GLIpNepqYJaTq8zpCmZd4oYKGT00/jR3MBa qXRs/zdejMp7iK5GVA7s7ulqlLE3104zbX12THwUXOuSLhrWmllmDc6xP3M1B1t2S9 4EzClRHoBwg2U0CbBkKTSDOr/dQTokGUpTAAJua96kt8/D8RAcKSVZgHQUB21OyB73 xayIgNDU0iIMQ== Date: Thu, 6 Apr 2023 13:48:19 -0500 From: Bjorn Helgaas To: Reinette Chatre Cc: bhelgaas@google.com, nathan@kernel.org, ndesaulniers@google.com, trix@redhat.com, tglx@linutronix.de, darwi@linutronix.de, kevin.tian@intel.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Arnd Bergmann , Dan Williams , Marc Zyngier , Ira Weiny , Shay Drory , Jacob Keller , Eli Cohen , Saeed Mahameed Subject: Re: [PATCH] PCI/MSI: Provide missing stub for pci_msix_can_alloc_dyn() Message-ID: <20230406184819.GA3722907@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <310ecc4815dae4174031062f525245f0755c70e2.1680119924.git.reinette.chatre@intel.com> X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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 [+cc folks from Arnd's similar patch] On Wed, Mar 29, 2023 at 01:13:11PM -0700, Reinette Chatre wrote: > pci_msix_can_alloc_dyn() is not declared when CONFIG_PCI_MSI > is disabled. > > There is no existing user of pci_msix_can_alloc_dyn() but > work is in progress to change this. This work encounters > the following error when CONFIG_PCI_MSI is disabled: > > drivers/vfio/pci/vfio_pci_intrs.c:427:21: error: implicit declaration \ > of function 'pci_msix_can_alloc_dyn' \ > [-Werror=implicit-function-declaration] > > Provide definition for pci_msix_can_alloc_dyn() in preparation > for users that need to compile when CONFIG_PCI_MSI is disabled. > > Fixes: 34026364df8e ("PCI/MSI: Provide post-enable dynamic allocation interfaces for MSI-X") > Reported-by: kernel test robot > Link: https://lore.kernel.org/oe-kbuild-all/202303291000.PWFqGCxH-lkp@intel.com/ > Signed-off-by: Reinette Chatre Applied with Sathy's reviewed-by to for-linus for v6.3, thanks! I also added the Fixes: line for mlx5 from Arnd's patch. > --- > I missed this one in my previous fix. After this all the functions > in pci.h's #ifdef CONFIG_PCI_MSI portion have stubs when > CONFIG_PCI_MSI is disabled. > > include/linux/pci.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/include/linux/pci.h b/include/linux/pci.h > index b50e5c79f7e3..a5dda515fcd1 100644 > --- a/include/linux/pci.h > +++ b/include/linux/pci.h > @@ -1624,6 +1624,8 @@ pci_alloc_irq_vectors(struct pci_dev *dev, unsigned int min_vecs, > flags, NULL); > } > > +static inline bool pci_msix_can_alloc_dyn(struct pci_dev *dev) > +{ return false; } > static inline struct msi_map pci_msix_alloc_irq_at(struct pci_dev *dev, unsigned int index, > const struct irq_affinity_desc *affdesc) > { > -- > 2.34.1 >