lkml.org 
[lkml]   [2020]   [Jul]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectdrivers/gpu/drm/mediatek/mtk_drm_drv.c:327:24: warning: no previous prototype for 'mtk_drm_gem_prime_import'
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 8882572675c1bb1cc544f4e229a11661f1fc52e4
commit: 4c6f3196e6ea111c456c6086dc3f57d4706b0b2d drm/mediatek: use correct device to import PRIME buffers
date: 11 months ago
config: arm-randconfig-r026-20200717 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 4c6f3196e6ea111c456c6086dc3f57d4706b0b2d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

drivers/gpu/drm/mediatek/mtk_drm_drv.c: In function 'mtk_atomic_wait_for_fences':
drivers/gpu/drm/mediatek/mtk_drm_drv.c:43:20: warning: variable 'plane' set but not used [-Wunused-but-set-variable]
43 | struct drm_plane *plane;
| ^~~~~
drivers/gpu/drm/mediatek/mtk_drm_drv.c: At top level:
>> drivers/gpu/drm/mediatek/mtk_drm_drv.c:327:24: warning: no previous prototype for 'mtk_drm_gem_prime_import' [-Wmissing-prototypes]
327 | struct drm_gem_object *mtk_drm_gem_prime_import(struct drm_device *dev,
| ^~~~~~~~~~~~~~~~~~~~~~~~

vim +/mtk_drm_gem_prime_import +327 drivers/gpu/drm/mediatek/mtk_drm_drv.c

322
323 /*
324 * We need to override this because the device used to import the memory is
325 * not dev->dev, as drm_gem_prime_import() expects.
326 */
> 327 struct drm_gem_object *mtk_drm_gem_prime_import(struct drm_device *dev,
328 struct dma_buf *dma_buf)
329 {
330 struct mtk_drm_private *private = dev->dev_private;
331
332 return drm_gem_prime_import_dev(dev, dma_buf, private->dma_dev);
333 }
334

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2020-07-17 22:19    [W:0.025 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site