dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* linux-next: semantic conflict between the drm-misc and broadcom trees
@ 2026-11-24 14:56 Sasha Levin
  2026-11-24 15:08 ` sashiko-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Sasha Levin @ 2026-11-24 14:56 UTC (permalink / raw)
  To: Mark Brown
  Cc: Christian König, Jason Gunthorpe, Alistair Popple,
	Sumit Semwal, Florian Fainelli, Dave Stevenson, Jai Luthra,
	Raspberry Pi Kernel Maintenance, dri-devel, linux-media,
	linaro-mm-sig, linux-rpi-kernel, Linux Next Mailing List,
	Linux Kernel Mailing List

Hi Mark,

The current drm-misc tree has a semantic conflict with the broadcom
tree that breaks the build:

  drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c:217:3: error: call to undeclared function 'dma_buf_unmap_attachment_unlocked'
  drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c:438:8: error: call to undeclared function 'dma_buf_map_attachment_unlocked'

77e0b2d2f4f3 ("treewide: Rename dma_buf_(un)map_attachment() to
dma_buf_(un)map_sgt()") in the drm-misc tree renames the functions, and
6e0a8f1a8347 ("platform/raspberrypi: Add VideoCore shared memory
support") in the broadcom tree adds a new user of the old names. It is
the only caller in next-20261123 that the rename doesn't cover.

The fix for the merge:

diff --git a/drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c b/drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c
--- a/drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c
+++ b/drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c
@@ -214,9 +214,8 @@ static void vc_sm_clean_up_dmabuf(struct vc_sm_buffer *buffer)
 {
 	/* Handle cleaning up imported dmabufs */
 	if (buffer->sgt) {
-		dma_buf_unmap_attachment_unlocked(buffer->attach,
-						  buffer->sgt,
-						  DMA_BIDIRECTIONAL);
+		dma_buf_unmap_sgt_unlocked(buffer->attach, buffer->sgt,
+					   DMA_BIDIRECTIONAL);
 		buffer->sgt = NULL;
 	}
 	if (buffer->attach) {
@@ -435,7 +434,7 @@ vc_sm_cma_import_dmabuf_internal(struct dma_buf *dma_buf,
 		goto error;
 	}

-	sgt = dma_buf_map_attachment_unlocked(attach, DMA_BIDIRECTIONAL);
+	sgt = dma_buf_map_sgt_unlocked(attach, DMA_BIDIRECTIONAL);
 	if (IS_ERR(sgt)) {
 		ret = PTR_ERR(sgt);
 		goto error;
@@ -550,8 +549,7 @@ vc_sm_cma_import_dmabuf_internal(struct dma_buf *dma_buf,
 		free_kernel_id(import.kernel_id);
 	kfree(buffer);
 	if (sgt)
-		dma_buf_unmap_attachment_unlocked(attach, sgt,
-						  DMA_BIDIRECTIONAL);
+		dma_buf_unmap_sgt_unlocked(attach, sgt, DMA_BIDIRECTIONAL);
 	if (attach)
 		dma_buf_detach(dma_buf, attach);
 	dma_buf_put(dma_buf);

-- 
Thanks,
Sasha

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: linux-next: semantic conflict between the drm-misc and broadcom trees
  2026-11-24 14:56 linux-next: semantic conflict between the drm-misc and broadcom trees Sasha Levin
@ 2026-11-24 15:08 ` sashiko-bot
  0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-11-24 15:08 UTC (permalink / raw)
  To: Sasha Levin; +Cc: dri-devel, media-ci

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] platform/raspberrypi: missing Signed-off-by trailer in commit
  message
--

commit bbb76af5c6433d9b8132e79161f9eb212a02ceb8
Author: Sasha Levin <sashal@kernel.org>

> linux-next: semantic conflict between the drm-misc and broadcom trees
>
> Hi Mark,
>
> The current drm-misc tree has a semantic conflict with the broadcom
> tree that breaks the build:
>
>   drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c:217:3: error: call to undeclared function 'dma_buf_unmap_attachment_unlocked'
>   drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c:438:8: error: call to undeclared function 'dma_buf_map_attachment_unlocked'
>
> 77e0b2d2f4f3 ("treewide: Rename dma_buf_(un)map_attachment() to
> dma_buf_(un)map_sgt()") in the drm-misc tree renames the functions, and
> 6e0a8f1a8347 ("platform/raspberrypi: Add VideoCore shared memory
> support") in the broadcom tree adds a new user of the old names. It is
> the only caller in next-20261123 that the rename doesn't cover.
>
> The fix for the merge:

[Severity: High]
The commit message is missing a Signed-off-by: trailer.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261124145652.3657102-1-sashal@kernel.org?part=1

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-24 15:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24 14:56 linux-next: semantic conflict between the drm-misc and broadcom trees Sasha Levin
2026-11-24 15:08 ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox