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

Configure Feed

Select the types of activity you want to include in your feed.

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: f58ef9d1d135 ("PCI/P2PDMA: Separate the mmap() support from the core logic")
Reported-by: Bjorn Helgaas <helgaas@kernel.org>
Closes: https://lore.kernel.org/all/20260102234033.GA246107@bhelgaas
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Link: https://patch.msgid.link/20260104-fix-p2p-kdoc-v1-1-6d181233f8bc@nvidia.com

authored by

Leon Romanovsky and committed by
Bjorn Helgaas
80d9411c 560cb3bd

+2
+2
include/linux/pci-p2pdma.h
··· 20 20 * struct p2pdma_provider 21 21 * 22 22 * A p2pdma provider is a range of MMIO address space available to the CPU. 23 + * @owner: Device to which this provider belongs. 24 + * @bus_offset: Bus offset for p2p communication. 23 25 */ 24 26 struct p2pdma_provider { 25 27 struct device *owner;