Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1918976rdb; Wed, 31 Jan 2024 13:14:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IErcoxr/UOJSwd5ukWQcsoXpzDcvy2durP12ctBsLalkuHJUKkcImIl7/JTZFiRZlcltn7X X-Received: by 2002:a05:6870:7247:b0:218:4fdd:7f6b with SMTP id y7-20020a056870724700b002184fdd7f6bmr2969407oaf.51.1706735639675; Wed, 31 Jan 2024 13:13:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706735639; cv=pass; d=google.com; s=arc-20160816; b=AV/8OhKw/E6cSgz6OMbScQPUZXs35m/hrQTw6nyJd2Lmv3tyLBkln0k0oEEWV8Trom 1PfCYFoMlui0JeFz6U5AEEZbx8V3dsWkQySXjV4EaScBGJRiL/mDpO6j3I6UbUq3OVvR cpG+34bSCWw01w1Qa8F48N+vVecKciw41z/v9HX+mpCLt2b/CYPrLyShVWvl0whq3VyC hvOjo0urNNthZpuF3ZAiN/kGqxTzGodUni9zp8DvxHOUUeGwLJTM0hl1W5RwsFgywSm+ oQrknU41qTgU2eZBQIJx98ZClU/S4/1T8vzkAkBddQtqqN03qSlFTmcu/rmS7GwF2WDH 4dWg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:subject:cc:to:from :date:dkim-signature; bh=bZa+P/kpzyjwO6fyYKUTNirvF/UZqLPl9mmLbTNZAPI=; fh=rYNLEpO0J2wuIa3dJXxTBo+wVkYfcdtynf+YcnuPhfk=; b=NwPiBbrh/afC4/wOMSxte/FACoNtuyFFxAmqMnMi2jgEdC3trNFXEnkQlgz8/m18f4 b8SamK9cOeIzhmzt+yg39p6F0wsbjecxeegshctwrtEFxv/ZAblfq+G1A8q/QOgAyqyk lO1l6V01TXaBRVj6/KQ29SJYQcQRVu2n+kPzCHVCB5TG3R9PWQmtWGtuBhUh+HcGwtK1 2y8LfziHn0l3ECCh2jlzHNUChVLevb9T+oR0spifU5/NsdtO4tKOZaiVtRnmuDwJCLVi /B+HhSSoiK+U3plmirnhT77P5gApgbT6TB5zPUtOVC7hi/j9+GGQQ0Giv1YRXe4ZeUYa C3jA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZSWiyHKf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-47113-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47113-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCXFeDoSOU1aV5Iq8ziU10RQkFl9Ffv8VntXcqsGJr1+VZF/PkmzEC/o9teFA5S/L59AtwJXU+0mfhP9GYzqb1EOq0QySoCGgjsWEd/7iA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id e12-20020a65688c000000b005d9b919b962si3878033pgt.260.2024.01.31.13.13.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 13:13:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47113-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZSWiyHKf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-47113-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47113-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id EC27728BA5D for ; Wed, 31 Jan 2024 21:12:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3EB4D39ACA; Wed, 31 Jan 2024 21:12:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZSWiyHKf" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 58BE938FB5; Wed, 31 Jan 2024 21:12:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706735557; cv=none; b=abmdRp5UurwZcSSwpzH+XHWPUdlOtRLBt0jP8kGay2bG0UvShf/56scw5YpASKYOFDaYPsnFJy3CqwBtuRnlOuA+FnDq7am3g9TI/TxhUMtBxlla2zBFnaoTSLkbaODP64uOaggCwT0Yu16b1B9Lz7P2ycWiGIg5kfilGZIX2Eg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706735557; c=relaxed/simple; bh=X217PdmKFGwdrek8hHs1DaJ0sMZ6rWFofXxDn03FD+4=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=ukAGUkoohKnO8HX4+zKkNkV/fZ8oD+sqlNXSbMCej09NJVV1TXHZnTddXQhWO1wbg3gQffNRcuYeFx9wjVCOuMiUKqVqV2v6ySR21is2/WbUppwltXgqk5KO5quAG/D4Z+vU8RMcBiiY2EkSwluR79cv5z4YX6TjDJVXH/WZXYw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZSWiyHKf; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C17DC433F1; Wed, 31 Jan 2024 21:12:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706735556; bh=X217PdmKFGwdrek8hHs1DaJ0sMZ6rWFofXxDn03FD+4=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=ZSWiyHKfmlF2D6+oG/lCgRaXIobsQk5belEkZlsctJfcKJ7o8t/mQynU+mWOd31m6 GEMel+d/iIR15UpuEEbR6bEjV627RsgkP4L5+V0tS1R+KJyn/D4004vO/ZUIcDYP9A DCVyKiNAcA9NAQ++Ku0e9CHmi9BuOZJjo7y7F85k28nyEtkgyuz8YDlU5TeKeo0bvX Oci5wsWFDjyBDZt51QMyvKdtJcH49AS+XpuUNGM8CFfMjM5MdObgUcKt2YhCREtjAX 6+pwjgUeR4ycnQqQtVj45/VbgZAgxiW1fvaMeml3MR4Jp0Dy8YCE27cf5XTVui5f70 TADnALHem65oA== Date: Wed, 31 Jan 2024 15:12:35 -0600 From: Bjorn Helgaas To: Philipp Stanner Cc: Bjorn Helgaas , Arnd Bergmann , Johannes Berg , Randy Dunlap , NeilBrown , John Sanpe , Kent Overstreet , Niklas Schnelle , Dave Jiang , Uladzislau Koshchanka , "Masami Hiramatsu (Google)" , David Gow , Kees Cook , Rae Moar , Geert Uytterhoeven , "wuqiang.matt" , Yury Norov , Jason Baron , Thomas Gleixner , Marco Elver , Andrew Morton , Ben Dooks , dakr@redhat.com, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-arch@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v6 4/4] PCI: Move devres code from pci.c to devres.c Message-ID: <20240131211235.GA599807@bhelgaas> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240131090023.12331-5-pstanner@redhat.com> On Wed, Jan 31, 2024 at 10:00:23AM +0100, Philipp Stanner wrote: > The file pci.c is very large and contains a number of devres-functions. > These functions should now reside in devres.c > ... > +struct pci_devres *find_pci_dr(struct pci_dev *pdev) > +{ > + if (pci_is_managed(pdev)) > + return devres_find(&pdev->dev, pcim_release, NULL, NULL); > + return NULL; > +} > +EXPORT_SYMBOL(find_pci_dr); find_pci_dr() was not previously exported, and I don't think it needs to be exported now, so I dropped the EXPORT_SYMBOL. It's still usable inside drivers/pci since it's declared in drivers/pci/pci.h; it's just not usable from modules. Let me know if I missed something. > -static struct pci_devres *find_pci_dr(struct pci_dev *pdev) > -{ > - if (pci_is_managed(pdev)) > - return devres_find(&pdev->dev, pcim_release, NULL, NULL); > - return NULL; > -}