From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796128858; b=Xt+wicz8aavPRIcGFgtkSsbzSZs8tbZW/bSiQCyaEs1ekhzTb/Nb9aMYfLG63cKTa7Bz R68e47dEhn677FVSeiBz9e3eIFez5tp2jIQ+mCxOx0okdCH8BhA6bq4Wy3h5+5DbQoQEf Di6AgD0bBoNg7ItsEd8imF+f09uj9JCvIyZyU1LfsywHGpqsUphVjoBDhqzfidCpZ5QgK Fh3i/shktfuJC6vkmIWpFXd/ptcP1f59O1mL366zCBaNI6Wrlo6mU9nrIWUqtdAIgBqcc FqGe3VfJd6GOhJYk80f03ifkuLg0Zp+SGYDiWghseLcBhTTtIWtt+/PIWn0/5DoEUpg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796128858; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=G/+IaFTg15GhBcFqweUr1E9Cc6nNrZI3/xz5h/eRmfc=; b=PA0X5kvBJ4JfMIxljfNLyd6rePBrTHfMFCIvE8G6J27qWSeCyhfD69Od/6SlJH61pZ4b kAHa4TTnZ+2XQM29YdwNdlpdg1/RPorSOR/rIlGZQ4RazSKXktbmPCHnu8pjO3t33x2St EvrW3JPBPFIuBcHUQuzAxUqfImHp3bDtKlsocSFEGEmqRHE95bHtLxYCP3MII6Xg5sBaY OBh9HSuRisftzwkyAca7vpAyRooGYRPeS3WAbviNaTDsYzgzm7ZfIF1OvXEsqMXxTBy+b 6hGIic3HHH023cf5g/NRYkW4Wu32zcJIdtlU91GIFLrGgRN7G5zYicBuUg5L7i2wFSA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=P8lsQ6Z9; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AC39E606A31A for ; Tue, 1 Dec 2026 12:40:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=P8lsQ6Z9 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1C5F51F000C1; Tue, 1 Dec 2026 12:40:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796128858; bh=G/+IaFTg15GhBcFqweUr1E9Cc6nNrZI3/xz5h/eRmfc=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=P8lsQ6Z95VgAlsiP3t54GNAn2jZwV1s8ZnTO36gDuSQ7vwXC5xvvQyaUr1AohvZb9 kBK6vinsE1eqKQKXQUG0d2E7Bhn5pJ8ixmpiCEoEQ3haTvGTqncMPUJ9lvcp9/Am9j b2a4yRbemdjDjhGHJ5zZv1cfyqsnbo9RgAT+HHkE824ls2vqnzB8X3Q9LRuS9uivMj MSOytW3i8ntplXExHJ11r/QLf55cKhZPpT7Dx36/6a1Ykq7XdHf4NEuFnIrvPFNDtz DWToingdoelGcxiUPW+VQR68LUNVAeT+AZ6UBzx8i5wgfRTJrxjyztLBhFMkwk3qvD Y4GTuLxWOi20Q== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 1/3] PCI: Deprecate public devres reversal functions Reply-To: sashiko-reviews@lists.linux.dev To: "Philipp Stanner" Cc: linux-pci@vger.kernel.org In-Reply-To: <20261201122951.904104-3-phasta@kernel.org> References: <20261201122951.904104-2-phasta@kernel.org> <20261201122951.904104-3-phasta@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Dec 2026 12:40:56 +0000 X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [Low] PCI: pcim_iounmap_region() comment recommends nonexistent pci_iomap_region() - [Low] PCI: pcim_iomap*() kernel-doc still recommends deprecated unmap helpers -- commit eedf46bf67042e29b89e345ad6de41d2b256ef4c Author: Philipp Stanner PCI: Deprecate public devres reversal functions This commit marks the pcim_iounmap() and pcim_iounmap_region() manual release functions as deprecated in their kernel-doc comments and directs callers needing manual management to use unmanaged PCI helpers instead. > diff --git a/drivers/pci/devres.c b/drivers/pci/devres.c > index f075e7881c3a6..9a085fb18100a 100644 > --- a/drivers/pci/devres.c > +++ b/drivers/pci/devres.c > @@ -565,12 +565,16 @@ void __iomem *pcim_iomap(struct pci_dev *pdev, int = bar, unsigned long maxlen) > EXPORT_SYMBOL(pcim_iomap); > =20 > /** > - * pcim_iounmap - Managed pci_iounmap() > + * pcim_iounmap - Managed pci_iounmap() (DEPRECATED) > * @pdev: PCI device to iounmap for > * @addr: Address to unmap > * > * Managed pci_iounmap(). @addr must have been mapped using a pcim_* map= ping > * function. > + * > + * This function is deprecated (at least for external users). If you're = ever in > + * a position where it seems useful, you should manage your IO-mappings = fully > + * manually, e.g., with pci_iomap(). > */ > void pcim_iounmap(struct pci_dev *pdev, void __iomem *addr) > { [Severity: Low] Should the kernel-doc comments on pcim_iomap(), pcim_iomap_region(), and pcim_iomap_range() also be updated now that pcim_iounmap() and pcim_iounmap_region() are deprecated? Those comments still tell callers to manually unmap or release mappings using pcim_iounmap() and pcim_iounmap_region(). > @@ -640,12 +644,16 @@ void __iomem *pcim_iomap_region(struct pci_dev *pde= v, int bar, > EXPORT_SYMBOL(pcim_iomap_region); > =20 > /** > - * pcim_iounmap_region - Unmap and release a PCI BAR > + * pcim_iounmap_region - Unmap and release a PCI BAR (DEPRECATED) > * @pdev: PCI device to operate on > * @bar: Index of BAR to unmap and release > * > * Unmap a BAR and release its region manually. Only pass BARs that were > * previously mapped by pcim_iomap_region(). > + * > + * This function is deprecated (at least for external users). If you're = ever in > + * a position where it seems useful, you should manage your regions fully > + * manually, e.g., with pci_iomap_region(). > */ > void pcim_iounmap_region(struct pci_dev *pdev, int bar) > { [Severity: Low] Should this comment recommend pci_request_region() and pci_iomap() instead of pci_iomap_region()? There is no unmanaged pci_iomap_region() helper in the kernel. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261201122951.9041= 04-2-phasta@kernel.org?part=3D1