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  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

Reply via email to