On Mon, Sep 21, 2026 at 11:44:52AM +0200, Christian König wrote:
> That is unecessary here and creates an unwanted dependency to the PCI
> subsystem. Move that into dma-buf-mapping.h instead.
> 
> Signed-off-by: Christian König <[email protected]>
> ---
>  include/linux/dma-buf-mapping.h | 1 +
>  include/linux/dma-buf.h         | 1 -
>  2 files changed, 1 insertion(+), 1 deletion(-)

> diff --git a/include/linux/dma-buf-mapping.h b/include/linux/dma-buf-mapping.h
> index 09bde3f748e4..fb5e52260700 100644
> --- a/include/linux/dma-buf-mapping.h
> +++ b/include/linux/dma-buf-mapping.h
> @@ -6,6 +6,7 @@
>  #ifndef __DMA_BUF_MAPPING_H__
>  #define __DMA_BUF_MAPPING_H__
>  #include <linux/dma-buf.h>
> +#include <linux/pci-p2pdma.h>
>  
>  struct sg_table *dma_buf_phys_vec_to_sgt(struct dma_buf_attachment *attach,
>                                        struct p2pdma_provider *provider,

Let's just use a forward declaration instead of the whole header:

struct p2pdma_provider;

Jason

Reply via email to