linux-next: build failure after merge of the drm-misc tree
Subsystems (2)
Mark Brown
maintainerHi 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 <[email protected]>
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:
--- drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)
drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c +4 -6
@@ -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);
Signature · 1 line
2.47.3
kernel test robot
build botkernel test robot noticed the following build errors:
Hi Mark,
kernel test robot noticed the following build errors:
[auto build test ERROR on next-20261123]
[cannot apply to drm-tip/drm-tip linus/master v7.4-rc4 v7.4-rc3 v7.4-rc2 v7.4-rc4] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Mark-Brown/linux-next-build-failure-after-merge-of-the-drm-misc-tree/20261124-173143 base: next-20261123 patch link: https://lore.kernel.org/r/awXJ__-grexFFPb4%40sirena.org.uk patch subject: linux-next: build failure after merge of the drm-misc tree config: parisc-randconfig-1001-20261125 (https://download.01.org/0day-ci/archive/20261125/[email protected]/config) compiler: hppa-linux-gcc (GCC) 11.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261125/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c: In function 'vc_sm_clean_up_dmabuf':
>> drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c:217:17: error: implicit declaration of function 'dma_buf_unmap_sgt_unlocked'; did you mean 'dma_buf_vunmap_unlocked'? [-Werror=implicit-function-declaration]
217 | dma_buf_unmap_sgt_unlocked(buffer->attach, buffer->sgt,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| dma_buf_vunmap_unlocked
drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c: In function 'vc_sm_cma_import_dmabuf_internal':
>> drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c:437:15: error: implicit declaration of function 'dma_buf_map_sgt_unlocked'; did you mean 'dma_buf_vmap_unlocked'? [-Werror=implicit-function-declaration]
437 | sgt = dma_buf_map_sgt_unlocked(attach, DMA_BIDIRECTIONAL);
| ^~~~~~~~~~~~~~~~~~~~~~~~
| dma_buf_vmap_unlocked
drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c:437:13: warning: assignment to 'struct sg_table *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
437 | sgt = dma_buf_map_sgt_unlocked(attach, DMA_BIDIRECTIONAL);
| ^cc1: some warnings being treated as errors
vim +217 drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c
208
209 /*
210 * Cleans up imported dmabuf.
211 * Should be called with mutex held.
212 */
213 static void vc_sm_clean_up_dmabuf(struct vc_sm_buffer *buffer)
214 {
215 /* Handle cleaning up imported dmabufs */
216 if (buffer->sgt) {
> 217 dma_buf_unmap_sgt_unlocked(buffer->attach, buffer->sgt,
218 DMA_BIDIRECTIONAL);
219 buffer->sgt = NULL;
220 }
221 if (buffer->attach) {
222 dma_buf_detach(buffer->imported_dma_buf, buffer->attach);
223 buffer->attach = NULL;
224 }
225 }
226
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
kernel test robot
build botkernel test robot noticed the following build errors:
Hi Mark,
kernel test robot noticed the following build errors:
[auto build test ERROR on next-20261123]
[cannot apply to drm-tip/drm-tip linus/master v7.4-rc4 v7.4-rc3 v7.4-rc2 v7.4-rc4] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Mark-Brown/linux-next-build-failure-after-merge-of-the-drm-misc-tree/20261124-173143 base: next-20261123 patch link: https://lore.kernel.org/r/awXJ__-grexFFPb4%40sirena.org.uk patch subject: linux-next: build failure after merge of the drm-misc tree config: arm64-randconfig-1002-20261125 (https://download.01.org/0day-ci/archive/20261125/[email protected]/config) compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 2012344e5da8e03ea4b8283ecd6fad6e13f09d64) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261125/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
>> drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c:217:3: error: call to undeclared function 'dma_buf_unmap_sgt_unlocked'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
217 | dma_buf_unmap_sgt_unlocked(buffer->attach, buffer->sgt,
| ^
drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c:217:3: note: did you mean 'dma_buf_vunmap_unlocked'?
include/linux/dma-buf.h:596:6: note: 'dma_buf_vunmap_unlocked' declared here
596 | void dma_buf_vunmap_unlocked(struct dma_buf *dmabuf, struct iosys_map *map);
| ^
>> drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c:437:8: error: call to undeclared function 'dma_buf_map_sgt_unlocked'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
437 | sgt = dma_buf_map_sgt_unlocked(attach, DMA_BIDIRECTIONAL);
| ^
drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c:437:8: note: did you mean 'dma_buf_vmap_unlocked'?
include/linux/dma-buf.h:595:5: note: 'dma_buf_vmap_unlocked' declared here
595 | int dma_buf_vmap_unlocked(struct dma_buf *dmabuf, struct iosys_map *map);
| ^
drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c:437:6: error: incompatible integer to pointer conversion assigning to 'struct sg_table *' from 'int' [-Wint-conversion]
437 | sgt = dma_buf_map_sgt_unlocked(attach, DMA_BIDIRECTIONAL);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c:552:3: error: call to undeclared function 'dma_buf_unmap_sgt_unlocked'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
552 | dma_buf_unmap_sgt_unlocked(attach, sgt, DMA_BIDIRECTIONAL);
| ^4 errors generated.
vim +/dma_buf_unmap_sgt_unlocked +217 drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c
208
209 /*
210 * Cleans up imported dmabuf.
211 * Should be called with mutex held.
212 */
213 static void vc_sm_clean_up_dmabuf(struct vc_sm_buffer *buffer)
214 {
215 /* Handle cleaning up imported dmabufs */
216 if (buffer->sgt) {
> 217 dma_buf_unmap_sgt_unlocked(buffer->attach, buffer->sgt,
218 DMA_BIDIRECTIONAL);
219 buffer->sgt = NULL;
220 }
221 if (buffer->attach) {
222 dma_buf_detach(buffer->imported_dma_buf, buffer->attach);
223 buffer->attach = NULL;
224 }
225 }
226
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
Patchwork
CI✗ Fi.CI.BUILD: failure for linux-next: build failure after merge of the drm-misc tree
In reply to Mark Brown== Series Details ==
== Series Details ==
Series: linux-next: build failure after merge of the drm-misc tree
URL : https://patchwork.freedesktop.org/series/179539/
State : failure
== Summary ==
Error: patch https://patchwork.freedesktop.org/api/1.0/series/179539/revisions/1/mbox/ not applied
Applying: linux-next: build failure after merge of the drm-misc tree
Using index info to reconstruct a base tree...
A drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c
Falling back to patching base and 3-way merge...
CONFLICT (modify/delete): drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c deleted in HEAD and modified in linux-next: build failure after merge of the drm-misc tree. Version linux-next: build failure after merge of the drm-misc tree of drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c left in tree.
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 linux-next: build failure after merge of the drm-misc tree
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Build failed, no error log produced
Mark Brown
maintainerQuoted 9 lines · kernel test robot
Hi Mark,
kernel test robot noticed the following build errors:
[auto build test ERROR on next-20261123]
[cannot apply to drm-tip/drm-tip linus/master v7.4-rc4 v7.4-rc3 v7.4-rc2 v7.4-rc4] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
This wasn't even a patch submission....
Mark Brown
maintainerRe: ✗ Fi.CI.BUILD: failure for linux-next: build failure after merge of the drm-misc tree
In reply to PatchworkQuoted 5 lines · Patchwork
== Series Details ==
Series: linux-next: build failure after merge of the drm-misc tree
URL : https://patchwork.freedesktop.org/series/179539/
State : failure
Again, not a patch submission.