lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202007180456.bCW5zhPB%lkp@intel.com>
Date:   Sat, 18 Jul 2020 04:18:00 +0800
From:   kernel test robot <lkp@...el.com>
To:     Alexandre Courbot <acourbot@...omium.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        CK Hu <ck.hu@...iatek.com>
Subject: drivers/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@...el.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

Download attachment ".config.gz" of type "application/gzip" (34146 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ