Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PCI: Remove hybrid-devres usage warnings from kernel-doc

pci/iomap.c still contains warnings about those functions not behaving
in a managed manner if pcim_enable_device() was called. Since all hybrid
behavior that users could know about has been removed by now, those
explicit warnings are no longer necessary.

Remove the hybrid-devres usage warnings from the kernel-doc.

Signed-off-by: Philipp Stanner <phasta@kernel.org>
[kwilczynski: commit log]
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Link: https://lore.kernel.org/r/20250519112959.25487-8-phasta@kernel.org

authored by

Philipp Stanner and committed by
Krzysztof Wilczyński
90ffe1f0 bcfc6715

-16
-16
drivers/pci/iomap.c
··· 25 25 * 26 26 * @maxlen specifies the maximum length to map. If you want to get access to 27 27 * the complete BAR from offset to the end, pass %0 here. 28 - * 29 - * NOTE: 30 - * This function is never managed, even if you initialized with 31 - * pcim_enable_device(). 32 28 * */ 33 29 void __iomem *pci_iomap_range(struct pci_dev *dev, 34 30 int bar, ··· 72 76 * 73 77 * @maxlen specifies the maximum length to map. If you want to get access to 74 78 * the complete BAR from offset to the end, pass %0 here. 75 - * 76 - * NOTE: 77 - * This function is never managed, even if you initialized with 78 - * pcim_enable_device(). 79 79 * */ 80 80 void __iomem *pci_iomap_wc_range(struct pci_dev *dev, 81 81 int bar, ··· 119 127 * 120 128 * @maxlen specifies the maximum length to map. If you want to get access to 121 129 * the complete BAR without checking for its length first, pass %0 here. 122 - * 123 - * NOTE: 124 - * This function is never managed, even if you initialized with 125 - * pcim_enable_device(). If you need automatic cleanup, use pcim_iomap(). 126 130 * */ 127 131 void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long maxlen) 128 132 { ··· 140 152 * 141 153 * @maxlen specifies the maximum length to map. If you want to get access to 142 154 * the complete BAR without checking for its length first, pass %0 here. 143 - * 144 - * NOTE: 145 - * This function is never managed, even if you initialized with 146 - * pcim_enable_device(). 147 155 * */ 148 156 void __iomem *pci_iomap_wc(struct pci_dev *dev, int bar, unsigned long maxlen) 149 157 {