linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/gpu/drm/mediatek/mtk_drm_drv.c:327:24: warning: no previous prototype for 'mtk_drm_gem_prime_import'
@ 2020-07-17 20:18 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-07-17 20:18 UTC (permalink / raw)
  To: Alexandre Courbot; +Cc: kbuild-all, linux-kernel, CK Hu

[-- Attachment #1: Type: text/plain, Size: 2144 bytes --]

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 34146 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-17 20:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-17 20:18 drivers/gpu/drm/mediatek/mtk_drm_drv.c:327:24: warning: no previous prototype for 'mtk_drm_gem_prime_import' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).