LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [pinchartl-media:drm/du/compile-test 8/12] drivers/gpu/drm/omapdrm/omap_gem.c:986:21: error: implicit declaration of function 'vmap'; did you mean 'kmap'?
@ 2021-07-31 14:44 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-07-31 14:44 UTC (permalink / raw)
  To: Laurent Pinchart; +Cc: kbuild-all, linux-kernel

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

tree:   git://linuxtv.org/pinchartl/media.git drm/du/compile-test
head:   e5afcf496f9bd487419c7ee0c258da75d0d1dae6
commit: 64940a5f2f2156bc2718679b6248c0b32566983b [8/12] drm/omap: Enable COMPILE_TEST on all architectures
config: parisc-allyesconfig (attached as .config)
compiler: hppa-linux-gcc (GCC) 10.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 remote add pinchartl-media git://linuxtv.org/pinchartl/media.git
        git fetch --no-tags pinchartl-media drm/du/compile-test
        git checkout 64940a5f2f2156bc2718679b6248c0b32566983b
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=parisc 

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

All errors (new ones prefixed by >>):

   drivers/gpu/drm/omapdrm/omap_gem.c: In function 'omap_gem_vaddr':
>> drivers/gpu/drm/omapdrm/omap_gem.c:986:21: error: implicit declaration of function 'vmap'; did you mean 'kmap'? [-Werror=implicit-function-declaration]
     986 |   omap_obj->vaddr = vmap(omap_obj->pages, obj->size >> PAGE_SHIFT,
         |                     ^~~~
         |                     kmap
>> drivers/gpu/drm/omapdrm/omap_gem.c:987:5: error: 'VM_MAP' undeclared (first use in this function); did you mean 'VM_MTE'?
     987 |     VM_MAP, pgprot_writecombine(PAGE_KERNEL));
         |     ^~~~~~
         |     VM_MTE
   drivers/gpu/drm/omapdrm/omap_gem.c:987:5: note: each undeclared identifier is reported only once for each function it appears in
   drivers/gpu/drm/omapdrm/omap_gem.c: In function 'omap_gem_free_object':
>> drivers/gpu/drm/omapdrm/omap_gem.c:1126:3: error: implicit declaration of function 'vunmap'; did you mean 'kunmap'? [-Werror=implicit-function-declaration]
    1126 |   vunmap(omap_obj->vaddr);
         |   ^~~~~~
         |   kunmap
   cc1: some warnings being treated as errors


vim +986 drivers/gpu/drm/omapdrm/omap_gem.c

cd5351f4d2b1b8 drivers/staging/omapdrm/omap_gem.c Rob Clark           2011-11-12   965  
e1c1174f8d5602 drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2015-12-14   966  #ifdef CONFIG_DRM_FBDEV_EMULATION
3cbd0c587b129b drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-26   967  /*
3cbd0c587b129b drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-26   968   * Get kernel virtual address for CPU access.. this more or less only
3cbd0c587b129b drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-26   969   * exists for omap_fbdev.
cd5351f4d2b1b8 drivers/staging/omapdrm/omap_gem.c Rob Clark           2011-11-12   970   */
cd5351f4d2b1b8 drivers/staging/omapdrm/omap_gem.c Rob Clark           2011-11-12   971  void *omap_gem_vaddr(struct drm_gem_object *obj)
cd5351f4d2b1b8 drivers/staging/omapdrm/omap_gem.c Rob Clark           2011-11-12   972  {
cd5351f4d2b1b8 drivers/staging/omapdrm/omap_gem.c Rob Clark           2011-11-12   973  	struct omap_gem_object *omap_obj = to_omap_bo(obj);
3cbd0c587b129b drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-26   974  	void *vaddr;
620063e10ed48c drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-25   975  	int ret;
620063e10ed48c drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-25   976  
3cbd0c587b129b drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-26   977  	mutex_lock(&omap_obj->lock);
3cbd0c587b129b drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-26   978  
3cbd0c587b129b drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-26   979  	if (!omap_obj->vaddr) {
2491244d7709d4 drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-25   980  		ret = omap_gem_attach_pages(obj);
3cbd0c587b129b drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-26   981  		if (ret) {
3cbd0c587b129b drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-26   982  			vaddr = ERR_PTR(ret);
3cbd0c587b129b drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-26   983  			goto unlock;
3cbd0c587b129b drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-26   984  		}
3cbd0c587b129b drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-26   985  
2491244d7709d4 drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-25  @986  		omap_obj->vaddr = vmap(omap_obj->pages, obj->size >> PAGE_SHIFT,
f7f9f4536a09f9 drivers/staging/omapdrm/omap_gem.c Rob Clark           2011-12-05  @987  				VM_MAP, pgprot_writecombine(PAGE_KERNEL));
f7f9f4536a09f9 drivers/staging/omapdrm/omap_gem.c Rob Clark           2011-12-05   988  	}
3cbd0c587b129b drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-26   989  
3cbd0c587b129b drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-26   990  	vaddr = omap_obj->vaddr;
3cbd0c587b129b drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-26   991  
3cbd0c587b129b drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-26   992  unlock:
3cbd0c587b129b drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-26   993  	mutex_unlock(&omap_obj->lock);
3cbd0c587b129b drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-26   994  	return vaddr;
cd5351f4d2b1b8 drivers/staging/omapdrm/omap_gem.c Rob Clark           2011-11-12   995  }
e1c1174f8d5602 drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2015-12-14   996  #endif
cd5351f4d2b1b8 drivers/staging/omapdrm/omap_gem.c Rob Clark           2011-11-12   997  
7ef93b0aa85dd1 drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2015-12-14   998  /* -----------------------------------------------------------------------------
7ef93b0aa85dd1 drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2015-12-14   999   * Power Management
7ef93b0aa85dd1 drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2015-12-14  1000   */
cd5351f4d2b1b8 drivers/staging/omapdrm/omap_gem.c Rob Clark           2011-11-12  1001  
e78edba113086d drivers/staging/omapdrm/omap_gem.c Andy Gross          2012-12-19  1002  #ifdef CONFIG_PM
e78edba113086d drivers/staging/omapdrm/omap_gem.c Andy Gross          2012-12-19  1003  /* re-pin objects in DMM in resume path: */
7fb15c480eea29 drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2017-10-13  1004  int omap_gem_resume(struct drm_device *dev)
e78edba113086d drivers/staging/omapdrm/omap_gem.c Andy Gross          2012-12-19  1005  {
7fb15c480eea29 drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2017-10-13  1006  	struct omap_drm_private *priv = dev->dev_private;
e78edba113086d drivers/staging/omapdrm/omap_gem.c Andy Gross          2012-12-19  1007  	struct omap_gem_object *omap_obj;
e78edba113086d drivers/staging/omapdrm/omap_gem.c Andy Gross          2012-12-19  1008  	int ret = 0;
e78edba113086d drivers/staging/omapdrm/omap_gem.c Andy Gross          2012-12-19  1009  
5117bd898e8c0a drivers/gpu/drm/omapdrm/omap_gem.c Daniel Vetter       2018-05-25  1010  	mutex_lock(&priv->list_lock);
e78edba113086d drivers/staging/omapdrm/omap_gem.c Andy Gross          2012-12-19  1011  	list_for_each_entry(omap_obj, &priv->obj_list, mm_list) {
e78edba113086d drivers/staging/omapdrm/omap_gem.c Andy Gross          2012-12-19  1012  		if (omap_obj->block) {
e78edba113086d drivers/staging/omapdrm/omap_gem.c Andy Gross          2012-12-19  1013  			struct drm_gem_object *obj = &omap_obj->base;
dfe9cfccb26488 drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-02-11  1014  			u32 npages = obj->size >> PAGE_SHIFT;
dfe9cfccb26488 drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-02-11  1015  
e78edba113086d drivers/staging/omapdrm/omap_gem.c Andy Gross          2012-12-19  1016  			WARN_ON(!omap_obj->pages);  /* this can't happen */
e78edba113086d drivers/staging/omapdrm/omap_gem.c Andy Gross          2012-12-19  1017  			ret = tiler_pin(omap_obj->block,
e78edba113086d drivers/staging/omapdrm/omap_gem.c Andy Gross          2012-12-19  1018  					omap_obj->pages, npages,
e78edba113086d drivers/staging/omapdrm/omap_gem.c Andy Gross          2012-12-19  1019  					omap_obj->roll, true);
e78edba113086d drivers/staging/omapdrm/omap_gem.c Andy Gross          2012-12-19  1020  			if (ret) {
7fb15c480eea29 drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2017-10-13  1021  				dev_err(dev->dev, "could not repin: %d\n", ret);
5117bd898e8c0a drivers/gpu/drm/omapdrm/omap_gem.c Daniel Vetter       2018-05-25  1022  				goto done;
e78edba113086d drivers/staging/omapdrm/omap_gem.c Andy Gross          2012-12-19  1023  			}
e78edba113086d drivers/staging/omapdrm/omap_gem.c Andy Gross          2012-12-19  1024  		}
e78edba113086d drivers/staging/omapdrm/omap_gem.c Andy Gross          2012-12-19  1025  	}
e78edba113086d drivers/staging/omapdrm/omap_gem.c Andy Gross          2012-12-19  1026  
5117bd898e8c0a drivers/gpu/drm/omapdrm/omap_gem.c Daniel Vetter       2018-05-25  1027  done:
5117bd898e8c0a drivers/gpu/drm/omapdrm/omap_gem.c Daniel Vetter       2018-05-25  1028  	mutex_unlock(&priv->list_lock);
5117bd898e8c0a drivers/gpu/drm/omapdrm/omap_gem.c Daniel Vetter       2018-05-25  1029  	return ret;
e78edba113086d drivers/staging/omapdrm/omap_gem.c Andy Gross          2012-12-19  1030  }
e78edba113086d drivers/staging/omapdrm/omap_gem.c Andy Gross          2012-12-19  1031  #endif
e78edba113086d drivers/staging/omapdrm/omap_gem.c Andy Gross          2012-12-19  1032  
7ef93b0aa85dd1 drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2015-12-14  1033  /* -----------------------------------------------------------------------------
7ef93b0aa85dd1 drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2015-12-14  1034   * DebugFS
7ef93b0aa85dd1 drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2015-12-14  1035   */
7ef93b0aa85dd1 drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2015-12-14  1036  
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1037  #ifdef CONFIG_DEBUG_FS
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1038  void omap_gem_describe(struct drm_gem_object *obj, struct seq_file *m)
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1039  {
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1040  	struct omap_gem_object *omap_obj = to_omap_bo(obj);
dfe9cfccb26488 drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-02-11  1041  	u64 off;
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1042  
0de23977cfeb5b drivers/gpu/drm/omapdrm/omap_gem.c David Herrmann      2013-07-24  1043  	off = drm_vma_node_start(&obj->vma_node);
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1044  
3cbd0c587b129b drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-26  1045  	mutex_lock(&omap_obj->lock);
3cbd0c587b129b drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-26  1046  
2d31ca3ad7d5d4 drivers/gpu/drm/omapdrm/omap_gem.c Russell King        2014-07-12  1047  	seq_printf(m, "%08x: %2d (%2d) %08llx %pad (%2d) %p %4d",
2c935bc57221cc drivers/gpu/drm/omapdrm/omap_gem.c Peter Zijlstra      2016-11-14  1048  			omap_obj->flags, obj->name, kref_read(&obj->refcount),
cec4fa7511ef7a drivers/gpu/drm/omapdrm/omap_gem.c Jean-Jacques Hiblot 2019-10-10  1049  			off, &omap_obj->dma_addr,
cec4fa7511ef7a drivers/gpu/drm/omapdrm/omap_gem.c Jean-Jacques Hiblot 2019-10-10  1050  			refcount_read(&omap_obj->dma_addr_cnt),
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1051  			omap_obj->vaddr, omap_obj->roll);
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1052  
48b34ac041756c drivers/gpu/drm/omapdrm/omap_gem.c Tomi Valkeinen      2019-10-10  1053  	if (omap_obj->flags & OMAP_BO_TILED_MASK) {
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1054  		seq_printf(m, " %dx%d", omap_obj->width, omap_obj->height);
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1055  		if (omap_obj->block) {
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1056  			struct tcm_area *area = &omap_obj->block->area;
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1057  			seq_printf(m, " (%dx%d, %dx%d)",
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1058  					area->p0.x, area->p0.y,
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1059  					area->p1.x, area->p1.y);
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1060  		}
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1061  	} else {
2150c19b15b014 drivers/gpu/drm/omapdrm/omap_gem.c Tomi Valkeinen      2017-02-21  1062  		seq_printf(m, " %zu", obj->size);
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1063  	}
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1064  
3cbd0c587b129b drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-26  1065  	mutex_unlock(&omap_obj->lock);
3cbd0c587b129b drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-26  1066  
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1067  	seq_printf(m, "\n");
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1068  }
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1069  
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1070  void omap_gem_describe_objects(struct list_head *list, struct seq_file *m)
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1071  {
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1072  	struct omap_gem_object *omap_obj;
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1073  	int count = 0;
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1074  	size_t size = 0;
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1075  
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1076  	list_for_each_entry(omap_obj, list, mm_list) {
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1077  		struct drm_gem_object *obj = &omap_obj->base;
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1078  		seq_printf(m, "   ");
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1079  		omap_gem_describe(obj, m);
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1080  		count++;
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1081  		size += obj->size;
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1082  	}
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1083  
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1084  	seq_printf(m, "Total %d objects, %zu bytes\n", count, size);
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1085  }
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1086  #endif
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1087  
7ef93b0aa85dd1 drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2015-12-14  1088  /* -----------------------------------------------------------------------------
7ef93b0aa85dd1 drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2015-12-14  1089   * Constructor & Destructor
7ef93b0aa85dd1 drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2015-12-14  1090   */
7ef93b0aa85dd1 drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2015-12-14  1091  
c5ca5e029fa64b drivers/gpu/drm/omapdrm/omap_gem.c Thomas Zimmermann   2020-09-23  1092  static void omap_gem_free_object(struct drm_gem_object *obj)
cd5351f4d2b1b8 drivers/staging/omapdrm/omap_gem.c Rob Clark           2011-11-12  1093  {
cd5351f4d2b1b8 drivers/staging/omapdrm/omap_gem.c Rob Clark           2011-11-12  1094  	struct drm_device *dev = obj->dev;
76c4055f2c9a7a drivers/gpu/drm/omapdrm/omap_gem.c Tomi Valkeinen      2014-12-17  1095  	struct omap_drm_private *priv = dev->dev_private;
cd5351f4d2b1b8 drivers/staging/omapdrm/omap_gem.c Rob Clark           2011-11-12  1096  	struct omap_gem_object *omap_obj = to_omap_bo(obj);
cd5351f4d2b1b8 drivers/staging/omapdrm/omap_gem.c Rob Clark           2011-11-12  1097  
620063e10ed48c drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-25  1098  	omap_gem_evict(obj);
f7f9f4536a09f9 drivers/staging/omapdrm/omap_gem.c Rob Clark           2011-12-05  1099  
5117bd898e8c0a drivers/gpu/drm/omapdrm/omap_gem.c Daniel Vetter       2018-05-25  1100  	mutex_lock(&priv->list_lock);
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1101  	list_del(&omap_obj->mm_list);
5117bd898e8c0a drivers/gpu/drm/omapdrm/omap_gem.c Daniel Vetter       2018-05-25  1102  	mutex_unlock(&priv->list_lock);
f6b6036e56ca17 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-03-05  1103  
3cbd0c587b129b drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-26  1104  	/*
3cbd0c587b129b drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-26  1105  	 * We own the sole reference to the object at this point, but to keep
3cbd0c587b129b drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-26  1106  	 * lockdep happy, we must still take the omap_obj_lock to call
3cbd0c587b129b drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-26  1107  	 * omap_gem_detach_pages(). This should hardly make any difference as
3cbd0c587b129b drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-26  1108  	 * there can't be any lock contention.
9a0774e0991c82 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-01-16  1109  	 */
3cbd0c587b129b drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-26  1110  	mutex_lock(&omap_obj->lock);
3cbd0c587b129b drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-26  1111  
3cbd0c587b129b drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-26  1112  	/* The object should not be pinned. */
cec4fa7511ef7a drivers/gpu/drm/omapdrm/omap_gem.c Jean-Jacques Hiblot 2019-10-10  1113  	WARN_ON(refcount_read(&omap_obj->dma_addr_cnt) > 0);
9a0774e0991c82 drivers/staging/omapdrm/omap_gem.c Rob Clark           2012-01-16  1114  
b22e6690a3f656 drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2015-12-14  1115  	if (omap_obj->pages) {
b22e6690a3f656 drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2015-12-14  1116  		if (omap_obj->flags & OMAP_BO_MEM_DMABUF)
b22e6690a3f656 drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2015-12-14  1117  			kfree(omap_obj->pages);
b22e6690a3f656 drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2015-12-14  1118  		else
cd5351f4d2b1b8 drivers/staging/omapdrm/omap_gem.c Rob Clark           2011-11-12  1119  			omap_gem_detach_pages(obj);
b22e6690a3f656 drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2015-12-14  1120  	}
ae053039553349 drivers/staging/omapdrm/omap_gem.c YAMANE Toshiaki     2012-11-14  1121  
cdb0381d2f1997 drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2015-12-14  1122  	if (omap_obj->flags & OMAP_BO_MEM_DMA_API) {
f6e45661f9be54 drivers/gpu/drm/omapdrm/omap_gem.c Luis R. Rodriguez   2016-01-22  1123  		dma_free_wc(dev->dev, obj->size, omap_obj->vaddr,
16869083b9bec8 drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2017-04-21  1124  			    omap_obj->dma_addr);
f7f9f4536a09f9 drivers/staging/omapdrm/omap_gem.c Rob Clark           2011-12-05  1125  	} else if (omap_obj->vaddr) {
f7f9f4536a09f9 drivers/staging/omapdrm/omap_gem.c Rob Clark           2011-12-05 @1126  		vunmap(omap_obj->vaddr);
b22e6690a3f656 drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2015-12-14  1127  	} else if (obj->import_attach) {
b22e6690a3f656 drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2015-12-14  1128  		drm_prime_gem_destroy(obj, omap_obj->sgt);
cd5351f4d2b1b8 drivers/staging/omapdrm/omap_gem.c Rob Clark           2011-11-12  1129  	}
cd5351f4d2b1b8 drivers/staging/omapdrm/omap_gem.c Rob Clark           2011-11-12  1130  
3cbd0c587b129b drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-26  1131  	mutex_unlock(&omap_obj->lock);
3cbd0c587b129b drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-26  1132  
cd5351f4d2b1b8 drivers/staging/omapdrm/omap_gem.c Rob Clark           2011-11-12  1133  	drm_gem_object_release(obj);
cd5351f4d2b1b8 drivers/staging/omapdrm/omap_gem.c Rob Clark           2011-11-12  1134  
3cbd0c587b129b drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-26  1135  	mutex_destroy(&omap_obj->lock);
3cbd0c587b129b drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2018-05-26  1136  
00e9c7c7002de3 drivers/gpu/drm/omapdrm/omap_gem.c Laurent Pinchart    2015-12-14  1137  	kfree(omap_obj);
cd5351f4d2b1b8 drivers/staging/omapdrm/omap_gem.c Rob Clark           2011-11-12  1138  }
cd5351f4d2b1b8 drivers/staging/omapdrm/omap_gem.c Rob Clark           2011-11-12  1139  

:::::: The code at line 986 was first introduced by commit
:::::: 2491244d7709d4e35f61d75ed3f6b4ea31b0a6f3 drm/omap: gem: Merge __omap_gem_get_pages() and omap_gem_attach_pages()

:::::: TO: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
:::::: CC: Tomi Valkeinen <tomi.valkeinen@ti.com>

---
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: 68493 bytes --]

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

only message in thread, other threads:[~2021-07-31 14:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-31 14:44 [pinchartl-media:drm/du/compile-test 8/12] drivers/gpu/drm/omapdrm/omap_gem.c:986:21: error: implicit declaration of function 'vmap'; did you mean 'kmap'? 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).