Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm: Replace the deprecated DRM_* logging macros in gem helper files

Replace the DRM_* logging macros used in gem helper files with the
appropriate ones specified in /include/drm/drm_print.h.

Signed-off-by: Athul Raj Kollareth <krathul3152@gmail.com>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://lore.kernel.org/r/aLczDHV_yGnnRKbr@Terra

authored by

Athul Raj Kollareth and committed by
Thomas Zimmermann
e5e0350d 2d2f1dc7

+9 -9
+8 -8
drivers/gpu/drm/drm_gem.c
··· 101 101 102 102 vma_offset_manager = drmm_kzalloc(dev, sizeof(*vma_offset_manager), 103 103 GFP_KERNEL); 104 - if (!vma_offset_manager) { 105 - DRM_ERROR("out of memory\n"); 104 + if (!vma_offset_manager) 106 105 return -ENOMEM; 107 - } 108 106 109 107 dev->vma_offset_manager = vma_offset_manager; 110 108 drm_vma_offset_manager_init(vma_offset_manager, ··· 783 785 int drm_gem_objects_lookup(struct drm_file *filp, void __user *bo_handles, 784 786 int count, struct drm_gem_object ***objs_out) 785 787 { 786 - int ret; 787 - u32 *handles; 788 + struct drm_device *dev = filp->minor->dev; 788 789 struct drm_gem_object **objs; 790 + u32 *handles; 791 + int ret; 789 792 790 793 if (!count) 791 794 return 0; ··· 806 807 807 808 if (copy_from_user(handles, bo_handles, count * sizeof(u32))) { 808 809 ret = -EFAULT; 809 - DRM_DEBUG("Failed to copy in GEM handles\n"); 810 + drm_dbg_core(dev, "Failed to copy in GEM handles\n"); 810 811 goto out; 811 812 } 812 813 ··· 854 855 long drm_gem_dma_resv_wait(struct drm_file *filep, u32 handle, 855 856 bool wait_all, unsigned long timeout) 856 857 { 857 - long ret; 858 + struct drm_device *dev = filep->minor->dev; 858 859 struct drm_gem_object *obj; 860 + long ret; 859 861 860 862 obj = drm_gem_object_lookup(filep, handle); 861 863 if (!obj) { 862 - DRM_DEBUG("Failed to look up GEM BO %d\n", handle); 864 + drm_dbg_core(dev, "Failed to look up GEM BO %d\n", handle); 863 865 return -EINVAL; 864 866 } 865 867
+1 -1
drivers/gpu/drm/drm_gem_dma_helper.c
··· 582 582 583 583 ret = dma_buf_vmap_unlocked(attach->dmabuf, &map); 584 584 if (ret) { 585 - DRM_ERROR("Failed to vmap PRIME buffer\n"); 585 + drm_err(dev, "Failed to vmap PRIME buffer\n"); 586 586 return ERR_PTR(ret); 587 587 } 588 588