Commit 80d9411c authored by Leon Romanovsky's avatar Leon Romanovsky Committed by Bjorn Helgaas
Browse files

PCI/P2PDMA: Add missing struct p2pdma_provider documentation



Two fields in struct p2pdma_provider were not documented, which resulted
in the following kernel-doc warning:

  Warning: include/linux/pci-p2pdma.h:26 struct member 'owner' not described in 'p2pdma_provider'
  Warning: include/linux/pci-p2pdma.h:26 struct member 'bus_offset' not described in 'p2pdma_provider'

Repro:

  $ scripts/kernel-doc -none include/linux/pci-p2pdma.h

Fixes: f58ef9d1 ("PCI/P2PDMA: Separate the mmap() support from the core logic")
Reported-by: default avatarBjorn Helgaas <helgaas@kernel.org>
Closes: https://lore.kernel.org/all/20260102234033.GA246107@bhelgaas


Signed-off-by: default avatarLeon Romanovsky <leonro@nvidia.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Reviewed-by: default avatarLogan Gunthorpe <logang@deltatee.com>
Link: https://patch.msgid.link/20260104-fix-p2p-kdoc-v1-1-6d181233f8bc@nvidia.com
parent 560cb3bd
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -20,6 +20,8 @@ struct scatterlist;
 * struct p2pdma_provider
 *
 * A p2pdma provider is a range of MMIO address space available to the CPU.
 * @owner: Device to which this provider belongs.
 * @bus_offset: Bus offset for p2p communication.
 */
struct p2pdma_provider {
	struct device *owner;