Linux PCI subsystem development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Philipp Stanner" <phasta@kernel.org>
Cc: linux-pci@vger.kernel.org
Subject: Re: [PATCH v2 1/3] PCI: Deprecate public devres reversal functions
Date: Thu, 03 Dec 2026 13:11:48 +0000	[thread overview]
Message-ID: <sashiko-outbox-247829@kernel.org> (raw)
In-Reply-To: <20261203125328.2421736-4-phasta@kernel.org>

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Low] PCI: pcim_iomap_region() kernel-doc still recommends deprecated
  unmap helper
- [Low] PCI: unescaped trailing underscore in pci_ breaks Sphinx
  kernel-doc build
--

commit 8660487605651cef78b920e50301df88eb6f6c06
Author: Philipp Stanner <phasta@kernel.org>

PCI: Deprecate public devres reversal functions

This commit marks pcim_iounmap() and pcim_iounmap_region() as deprecated
in their kernel-doc comments and removes manual-release instructions from
pcim_iomap() and pcim_iomap_range().

> diff --git a/drivers/pci/devres.c b/drivers/pci/devres.c
> index f075e7881c3a6..48451581516a1 100644
> --- a/drivers/pci/devres.c
> +++ b/drivers/pci/devres.c

[ ... ]

> @@ -640,12 +643,16 @@ void __iomem *pcim_iomap_region(struct pci_dev *pdev, int bar,
>  EXPORT_SYMBOL(pcim_iomap_region);
>  
>  /**
> - * pcim_iounmap_region - Unmap and release a PCI BAR
> + * pcim_iounmap_region - Unmap and release a PCI BAR (DEPRECATED)

[Severity: Low]
Should the kernel-doc for pcim_iomap_region() right above this also be
updated?  It still advises releasing manually with pcim_iounmap_region(),
which contradicts this deprecation notice in the generated documentation
from Documentation/driver-api/pci/pci.rst.

>   * @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 with unmanaged pci_ interfaces.

[Severity: Low]
Does the trailing underscore in "pci_" break the Sphinx kernel-doc build?

Documentation/driver-api/pci/pci.rst includes exported kernel-doc from
drivers/pci/devres.c, and reStructuredText parses a bare word ending in
an underscore as a hyperlink reference, failing with an unknown target
name error for "pci".  Writing "pci_*" avoids the error.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261203125328.2421736-3-phasta@kernel.org?part=1

  reply	other threads:[~2026-12-03 13:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 12:53 [PATCH v2 0/3] PCI: Improve devres documentation Philipp Stanner
2026-12-03 12:53 ` [PATCH v2 1/3] PCI: Deprecate public devres reversal functions Philipp Stanner
2026-12-03 13:11   ` sashiko-bot [this message]
2026-12-03 12:53 ` [PATCH v2 2/3] PCI: Better document pcim_enable_device() Philipp Stanner
2026-12-03 12:53 ` [PATCH v2 3/3] PCI: Deprecate pcim_pin_device() Philipp Stanner
2026-12-03 13:11 ` [PATCH v2 0/3] PCI: Improve devres documentation sashiko-bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-247829@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=phasta@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox