Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2922996rdb; Tue, 6 Feb 2024 01:38:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IFdl9ZSdJMFvwx2Rh5Vo1qZ0KYv7vOhYLittOCBwcazKNE90HjXffrFhDaZvUcb9yLA004K X-Received: by 2002:a0c:efd2:0:b0:68c:4058:7383 with SMTP id a18-20020a0cefd2000000b0068c40587383mr13001670qvt.5.1707212311353; Tue, 06 Feb 2024 01:38:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707212311; cv=pass; d=google.com; s=arc-20160816; b=nk6hj9AqiE0TUg+M+DRGRAGPrOeboeK++e1/j16+syC9/sXuozPBx/9x0A8/2zdaMU fPNHHMpe6jcpLGccWY/Czpzge+GkTQ3G0P1yp/MrofOSmkLAZ9zGF7PpO4AzIifSzTd2 zYxxU66kcH/DdKgQRe5tUjkw75axl8mWtGT2fFoARG9RJ0n3SenaEWMqes6eyv2idxjj WVQGBCoeBpE+r/MsPQiegVhlxaSdznjJf0D20aOvR92UECzhmcEthe4LmXkpvdD8E7gZ SsK+LDeNmj5n9r4rGI8rcijSnRpLjiuewBo3ujXjF+dN22uprW0FZ/rMltfmJvoDhGNU 13YQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=UFw0/tki7MzcuGpQDjCWPan97sbo8eZxmh34JYGWwvw=; fh=WsbHjBu4zX1f4qvjfkp25vdouffPdlEhthNlcsedgPY=; b=ohZ0zXMFn+HJOjvS/mYI8shlpe92U/krnGAuaXQbXoYkCTmZ5q/WFJZRM7L8HKTtQ0 XTSeMZ+ze1YPhZyZn92ysfNHXQuMpFQHaPYFw722O0Imgvsnen0bHJuUwdoAzJrl72fh cV/WITJiKMVHcCWXhCbrgw8H1DxMcNRecrGFoFBht+PCPxN9sr9s8/flNdp7223+7Cnr mRzcISfI07QUaq70neHoqRqtfKGA4ynT4XzQZWE4eVFM47UUlf53D2Ip9Ox87vTkPer/ r58MUXu83u2TJUkUNzOxMeY+OXGuJPh1XT08U2mqsSc8j3r43Xr9eLkOC1t3ObGbcB3l v8rA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=g05AKgIC; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-54607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54607-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Forwarded-Encrypted: i=1; AJvYcCVeUjnxReSd+FY7wliHZFMMNbwNC/fo6WMUcRO0fDFyU8IIv9pxwHGmSmLSUw8DCf19ggF4bPSCZFuM37AKGKnrPWQV3jMY4CrSr2531A== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id cz15-20020a056214088f00b0068c9315e811si1967900qvb.90.2024.02.06.01.38.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 01:38:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=g05AKgIC; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-54607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54607-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 10AF41C21AD0 for ; Tue, 6 Feb 2024 09:38:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9ECDE12E1D9; Tue, 6 Feb 2024 09:37:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="g05AKgIC" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 342D212CD97 for ; Tue, 6 Feb 2024 09:37:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707212276; cv=none; b=BckYJSWZRR5S+1Ek+ooMtgVS4gN9bJv4HlGK7ibx5RTGtYmG1zAxir71aDxNAx9Khv6o9O5NBME3z/jwoCWLJj2ARkpkQ1447bPBybUsaQz93sygWuXFIne6rIc0K9ZUQ8jaIII6W4JTAdqlrhX/T4C1oXwv+WZ3BB3UbCvLvk0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707212276; c=relaxed/simple; bh=UFw0/tki7MzcuGpQDjCWPan97sbo8eZxmh34JYGWwvw=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=FEzy7oH31jOyzca6E2LFGcNswCSwcfDKG1KUc1s6aSoM0/KFgt2kFwpKKxM31kUHSmEJ3ftcfGQbGx+wcH4eVpzuYKwKdWtq2bYLfEyb2JIR4QGan5Rgs+kEuMG531MZOkdXDxE8Dx8YyKVX1p/V9dWdq6kZh7aM+AGP3iNYRh4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=g05AKgIC; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1707212274; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UFw0/tki7MzcuGpQDjCWPan97sbo8eZxmh34JYGWwvw=; b=g05AKgICNqTkFjgWbcfI1jPw3/I4Hqw7d4kwgTCI433HoChVEnnjln+IyFTD+wr/VTh1FP 5OCDSQPZiwwdIy19ls7IIW4tsT242vHPCqDPyEjjX0TBDt7x8atUGtKNNGkK8TaVCSRe4q JBXlNORQe/J8FfrPv3NPtfQxPUTo5w8= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-441--HOCGMJfMjCo3i3yHAR7-Q-1; Tue, 06 Feb 2024 04:37:52 -0500 X-MC-Unique: -HOCGMJfMjCo3i3yHAR7-Q-1 Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-78552f73660so90549485a.0 for ; Tue, 06 Feb 2024 01:37:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707212272; x=1707817072; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=UFw0/tki7MzcuGpQDjCWPan97sbo8eZxmh34JYGWwvw=; b=pj1iVREnYTNwG06FajiE3GYOBjZIduztZe73u17uK/Zf1VqJSzVgcNPndkAUtsCBAb f9UCEbK2fIX63G/0jfDNGxyKZvDv9lrNSP6BGc/I7Uv00HqSZJintXdIPnro46/eMpKS O6Jxp6lAHExUtsqUeCL51gpVV6x9bcx5dZR5WVaQ20/3An6T7pORqfSPDRl8PwTAH7Or 76TFZ8BbDmL8EOVZ4J3nJo17EWSHA5kGZlIQagxzKPd1nOdJ7VZVikKHZPcntjC0Y9HG 9bSBhKsPMNAHhMpvUgDdYeHq2LEXNaaIT27Esf19uXpMFscRdl/LkeR72k4x6AcbkHdO 5cbw== X-Forwarded-Encrypted: i=1; AJvYcCWMGxUIjsGlpLJa/D8s/gKHtj41SsoAqrKOl0JcsRp00bmwd0uRhHycGDZktPg/CfjZi7dUBTlhN8llNwbX+GSvhJaISSGAySE5Ktjr X-Gm-Message-State: AOJu0YznCBLFbeIfe4ghAIvfA27rt2oApppUYwia2d6n44ZIUwVDMMC3 ThG2ZsWCeyaZd2DboCuXYKKCfDZln6QbzvVgA9+kvGMty3gQWzWQmbzw54JkvX5wJqPP8R6oLf/ EZvocrtSn5oq5lUgZdjuT6Xo4ziEbUsteDLswVnZ2iyW8+e/82Xd62Lg+ey+48A== X-Received: by 2002:a0c:fd81:0:b0:68c:892d:3580 with SMTP id p1-20020a0cfd81000000b0068c892d3580mr1906097qvr.2.1707212272264; Tue, 06 Feb 2024 01:37:52 -0800 (PST) X-Received: by 2002:a0c:fd81:0:b0:68c:892d:3580 with SMTP id p1-20020a0cfd81000000b0068c892d3580mr1906059qvr.2.1707212271977; Tue, 06 Feb 2024 01:37:51 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCWfUoaFEr7eaRe5ycg1DbG6mUeacI7DqXnDEQAqR/uOtVZi5iFHBIfAHWtmdID07LMES9Vqtbf3/fDfcaZBNv9q/LKcJCvpZ+uQgCEVeMTU7NVUBYA6uY3aLynfiw2uUhE6tdAOuqYInOKJAQMomBkV5l/VJHC3+6tIX1TH85D9DfaFx4gpu4oHJ9rLu6wOO0BQ0v7WkpB66r/8MT495M3IZvXMbKXAho54eYMqxSohWmzS4Zd18vYFR4tA84odtM96MQSFKSOl66yhSwJICX8VzbMZ86CzFpYkQOtXuq4de74sUrDbH2gwURZHiKSoRT+JAmDyPQmqGzsTWGvejl0gWUwHvuLSpEMqIhBpD0ajsqFXhituE+IuAVn9KzdCPnsmVJsflajKjmzFfzx68lxghXJEfEVQcBMshWKP+AkEELVUdAv396VdpP5cA1WWIjG78Eo70CI60B+/VpjL+S7Gd66bOCtvZNl1TF8bp6nsW/g7ptgrScj9NXW78jFSRoABrhjp6hePZSYF5zjuX/QCUCpgLIh/t/9sqHaAjQ3eLvBVeYWIl6Q3glSL6Z2/hF7z65mnsPfgT0Q1j2b/ZRVPyzV0wIt+YyUirpjo5VPamlgylLEZoE52w/gYK37P7Tz/dx3lm+IGXJl/voSUee/Jo89OYHX2E9Tg2064/fHk9rU2p93kU70XkZ0op6YcaD5MRTq8NgaDFjOfnUEOGsKHwv0WaugrX0/jDwkA8bmBGJuaYo+1TM+wHVksIRvhJJ+G+MLpXKZOgqyPD16p8gvlfK2Lc81+EI4sm4Ef2kz7Oz2nXhnO3UB1jo36t2eCbozlgmx4xz7ijA== Received: from pstanner-thinkpadt14sgen1.remote.csb (nat-pool-muc-t.redhat.com. [149.14.88.26]) by smtp.gmail.com with ESMTPSA id bo14-20020a05621414ae00b0068c67a3647dsm846048qvb.76.2024.02.06.01.37.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 01:37:51 -0800 (PST) Message-ID: <20c967ffac2cec6c9d89017d606967551b30d20d.camel@redhat.com> Subject: Re: [PATCH v6 4/4] PCI: Move devres code from pci.c to devres.c From: Philipp Stanner To: Bjorn Helgaas 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 Date: Tue, 06 Feb 2024 10:37:47 +0100 In-Reply-To: <20240131211235.GA599807@bhelgaas> References: <20240131211235.GA599807@bhelgaas> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Wed, 2024-01-31 at 15:12 -0600, Bjorn Helgaas wrote: > 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 > > ... >=20 > > +struct pci_devres *find_pci_dr(struct pci_dev *pdev) > > +{ > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0if (pci_is_managed(pdev)) > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0return devres_find(&pdev->dev, pcim_release, NULL, > > NULL); > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0return NULL; > > +} > > +EXPORT_SYMBOL(find_pci_dr); >=20 > find_pci_dr() was not previously exported, and I don't think it needs > to be exported now, so I dropped the EXPORT_SYMBOL.=C2=A0 It's still > usable > inside drivers/pci since it's declared in drivers/pci/pci.h; it's > just > not usable from modules.=C2=A0 Let me know if I missed something. No, ACK, you are right. I forgot this since find_pci_dr() is removed later anyways. P. >=20 > > -static struct pci_devres *find_pci_dr(struct pci_dev *pdev) > > -{ > > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0if (pci_is_managed(pdev)) > > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0return devres_find(&pdev->dev, pcim_release, NULL, > > NULL); > > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0return NULL; > > -} >=20