Hi all, After merging the drm-misc tree, today's linux-next build (x86_64 allmodconfig) failed like this: /tmp/next/build/drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c:217:3: error: call to undeclared function 'dma_buf_unmap_attachment_unlocked'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 217 | dma_buf_unmap_attachment_unlocked(buffer->attach, | ^ /tmp/next/build/drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c:217:3: note: did you mean 'dma_buf_unmap_sgt_unlocked'? /tmp/next/build/include/linux/dma-buf.h:587:6: note: 'dma_buf_unmap_sgt_unlocked' declared here 587 | void dma_buf_unmap_sgt_unlocked(struct dma_buf_attachment *attach, | ^ /tmp/next/build/drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c:438:8: error: call to undeclared function 'dma_buf_map_attachment_unlocked'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 438 | sgt = dma_buf_map_attachment_unlocked(attach, DMA_BIDIRECTIONAL); | ^ /tmp/next/build/drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c:438:8: note: did you mean 'dma_buf_map_sgt_unlocked'? /tmp/next/build/include/linux/dma-buf.h:585:1: note: 'dma_buf_map_sgt_unlocked' declared here 585 | dma_buf_map_sgt_unlocked(struct dma_buf_attachment *attach, | ^ /tmp/next/build/drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c:438:6: error: incompatible integer to pointer conversion assigning to 'struct sg_table *' from 'int' [-Wint-conversion] 438 | sgt = dma_buf_map_attachment_unlocked(attach, DMA_BIDIRECTIONAL); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/next/build/drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c:553:3: error: call to undeclared function 'dma_buf_unmap_attachment_unlocked'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 553 | dma_buf_unmap_attachment_unlocked(attach, sgt, | ^ Caused by commit 6e0a8f1a83473 (platform/raspberrypi: Add VideoCore shared memory support) from the broadcom tree. I have applied Sasha's fixup below From 60cdd23176d1a7b222ba90427f07c6d10859b744 Mon Sep 17 00:00:00 2001 From: Sasha Levin Date: Tue, 24 Nov 2026 09:56:52 -0500 Subject: [PATCH] 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: Signed-off-by: Mark Brown --- drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c b/drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c index 2d9bb5f957a37..7ba6e1f2aa6aa 100644 --- 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); -- 2.47.3