public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Alexandre Courbot <acourbot@chromium.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	CK Hu <ck.hu@mediatek.com>
Subject: drivers/gpu/drm/mediatek/mtk_drm_drv.c:327:24: warning: no previous prototype for 'mtk_drm_gem_prime_import'
Date: Sat, 18 Jul 2020 04:18:00 +0800	[thread overview]
Message-ID: <202007180456.bCW5zhPB%lkp@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2020-07-17 20:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202007180456.bCW5zhPB%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=acourbot@chromium.org \
    --cc=ck.hu@mediatek.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox