From: sashiko-bot@kernel.org
To: "Christian König" <ckoenig.leichtzumerken@gmail.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] dma-buf: remove pci-p2pdma include from dma-buf.h v2
Date: Mon, 21 Sep 2026 12:43:46 +0000 [thread overview]
Message-ID: <20260921124346.DA84E1F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260921123613.683042-1-christian.koenig@amd.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] dma-buf: build failure in dma-buf-mapping.c due to missing pci-p2pdma include
--
commit 8de2b0ebefc837cd0e3d5d4be72922d840602ba3
Author: Christian König <ckoenig.leichtzumerken@gmail.com>
dma-buf: remove pci-p2pdma include from dma-buf.h v2
This commit removes the <linux/pci-p2pdma.h> include from <linux/dma-buf.h> to
eliminate an unwanted dependency on the PCI subsystem. It uses a forward
declaration in <linux/dma-buf-mapping.h> instead.
> diff --git a/include/linux/dma-buf.h b/include/linux/dma-buf.h
> index d15b2b31d3c91..159271fcf3d2e 100644
> --- a/include/linux/dma-buf.h
> +++ b/include/linux/dma-buf.h
> @@ -22,7 +22,6 @@
> #include <linux/fs.h>
> #include <linux/dma-fence.h>
> #include <linux/wait.h>
> -#include <linux/pci-p2pdma.h>
[Severity: Low]
Does removing this include break the build for
drivers/dma-buf/dma-buf-mapping.c?
That file unconditionally uses functions and enum values from the pci-p2pdma
header without explicitly including it, relying on this transitive inclusion.
For example:
drivers/dma-buf/dma-buf-mapping.c:dma_buf_phys_vec_to_sgt() {
...
switch (pci_p2pdma_map_type(provider, attach->dev)) {
case PCI_P2PDMA_MAP_BUS_ADDR:
...
}
Will this lead to a compile-time failure for drivers/dma-buf/dma-buf-mapping.c
due to undeclared identifiers?
>
> struct device;
> struct dma_buf;
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260921123613.683042-1-christian.koenig@amd.com?part=1
next prev parent reply other threads:[~2026-09-21 12:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-21 12:36 [PATCH] dma-buf: remove pci-p2pdma include from dma-buf.h v2 Christian König
2026-09-21 12:37 ` Jason Gunthorpe
2026-09-21 12:43 ` sashiko-bot [this message]
2026-09-22 12:36 ` Leon Romanovsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260921124346.DA84E1F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=ckoenig.leichtzumerken@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox