Skip to content

Commit 80d9411

Browse files
rleonbjorn-helgaas
authored andcommitted
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: f58ef9d ("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
1 parent 560cb3b commit 80d9411

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

include/linux/pci-p2pdma.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ struct scatterlist;
2020
* struct p2pdma_provider
2121
*
2222
* 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.
2325
*/
2426
struct p2pdma_provider {
2527
struct device *owner;

0 commit comments

Comments
 (0)