Re: [PATCH v9 01/11] PCI/P2PDMA: Separate the mmap() support from the core logic
From: Bjorn Helgaas
Date: Fri Jan 02 2026 - 18:40:46 EST
[cc list trimmed]
On Thu, Nov 20, 2025 at 11:28:20AM +0200, Leon Romanovsky wrote:
> From: Leon Romanovsky <leonro@xxxxxxxxxx>
>
> Currently the P2PDMA code requires a pgmap and a struct page to
> function. The was serving three important purposes:
> ...
> +++ b/include/linux/pci-p2pdma.h
> @@ -16,6 +16,16 @@
> struct block_device;
> struct scatterlist;
>
> +/**
> + * struct p2pdma_provider
> + *
> + * A p2pdma provider is a range of MMIO address space available to the CPU.
> + */
Already upstream (f58ef9d1d135 ("PCI/P2PDMA: Separate the mmap()
support from the core logic")), but this adds kerneldoc warnings:
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
> +struct p2pdma_provider {
> + struct device *owner;
> + u64 bus_offset;
> +};