tree: git://anongit.freedesktop.org/drm-intel topic/drm-misc
head: 0f3609e5b5c53ed52b8e82993cbda72806ef9c69
commit: 9da239e3b9538cd5dd883d8258a7c3e2e0499e13 [35/38] drm/gem: Drop
struct_mutex requirement from drm_gem_mmap_obj
config: arm-at91_dt_defconfig (attached as .config)
reproduce:
wget
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
-O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 9da239e3b9538cd5dd883d8258a7c3e2e0499e13
# save the attached .config to linux build tree
make.cross ARCH=arm
All warnings (new ones prefixed by >>):
drivers/gpu/drm/drm_gem_cma_helper.c: In function 'drm_gem_cma_prime_mmap':
>> drivers/gpu/drm/drm_gem_cma_helper.c:484:21: warning: unused variable 'dev'
>> [-Wunused-variable]
struct drm_device *dev = obj->dev;
^
vim +/dev +484 drivers/gpu/drm/drm_gem_cma_helper.c
d7883f87 Thierry Reding 2014-11-03 468 /**
d7883f87 Thierry Reding 2014-11-03 469 * drm_gem_cma_prime_mmap - memory-map
an exported CMA GEM object
d7883f87 Thierry Reding 2014-11-03 470 * @obj: GEM object
d7883f87 Thierry Reding 2014-11-03 471 * @vma: VMA for the area to be mapped
d7883f87 Thierry Reding 2014-11-03 472 *
d7883f87 Thierry Reding 2014-11-03 473 * This function maps a buffer
imported via DRM PRIME into a userspace
d7883f87 Thierry Reding 2014-11-03 474 * process's address space. Drivers
that use the CMA helpers should set this
d7883f87 Thierry Reding 2014-11-03 475 * as their DRM driver's
->gem_prime_mmap() callback.
d7883f87 Thierry Reding 2014-11-03 476 *
d7883f87 Thierry Reding 2014-11-03 477 * Returns:
d7883f87 Thierry Reding 2014-11-03 478 * 0 on success or a negative error
code on failure.
d7883f87 Thierry Reding 2014-11-03 479 */
78467dc5 Joonyoung Shim 2013-06-28 480 int drm_gem_cma_prime_mmap(struct
drm_gem_object *obj,
78467dc5 Joonyoung Shim 2013-06-28 481 struct
vm_area_struct *vma)
78467dc5 Joonyoung Shim 2013-06-28 482 {
78467dc5 Joonyoung Shim 2013-06-28 483 struct drm_gem_cma_object
*cma_obj;
78467dc5 Joonyoung Shim 2013-06-28 @484 struct drm_device *dev =
obj->dev;
78467dc5 Joonyoung Shim 2013-06-28 485 int ret;
78467dc5 Joonyoung Shim 2013-06-28 486
78467dc5 Joonyoung Shim 2013-06-28 487 ret = drm_gem_mmap_obj(obj,
obj->size, vma);
78467dc5 Joonyoung Shim 2013-06-28 488 if (ret < 0)
78467dc5 Joonyoung Shim 2013-06-28 489 return ret;
78467dc5 Joonyoung Shim 2013-06-28 490
78467dc5 Joonyoung Shim 2013-06-28 491 cma_obj =
to_drm_gem_cma_obj(obj);
78467dc5 Joonyoung Shim 2013-06-28 492 return
drm_gem_cma_mmap_obj(cma_obj, vma);
:::::: The code at line 484 was first introduced by commit
:::::: 78467dc5f70fb9bee4a32c0c3714c99b0b5465c7 drm/cma: add low-level hook
functions to use prime helpers
:::::: TO: Joonyoung Shim <[email protected]>
:::::: CC: Dave Airlie <[email protected]>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
.config.gz
Description: Binary data
_______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
