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

drm/gem-fb-helper: Use debug message on gem lookup failure

GEM lookup failure can easily be triggered by userspace so make
it a debug message, not an error message.

Also remove unnecessary inner parentheses and fix alphabetical
struct declaration order.

Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1505147865-18194-2-git-send-email-noralf@tronnes.org

+3 -3
+2 -2
drivers/gpu/drm/drm_gem_framebuffer_helper.c
··· 154 154 155 155 objs[i] = drm_gem_object_lookup(file, mode_cmd->handles[i]); 156 156 if (!objs[i]) { 157 - DRM_DEV_ERROR(dev->dev, "Failed to lookup GEM\n"); 157 + DRM_DEBUG_KMS("Failed to lookup GEM object\n"); 158 158 ret = -ENOENT; 159 159 goto err_gem_object_put; 160 160 } ··· 232 232 struct dma_buf *dma_buf; 233 233 struct dma_fence *fence; 234 234 235 - if ((plane->state->fb == state->fb) || !state->fb) 235 + if (plane->state->fb == state->fb || !state->fb) 236 236 return 0; 237 237 238 238 dma_buf = drm_gem_fb_get_obj(state->fb, 0)->dma_buf;
+1 -1
include/drm/drm_gem_framebuffer_helper.h
··· 2 2 #define __DRM_GEM_FB_HELPER_H__ 3 3 4 4 struct drm_device; 5 - struct drm_file; 6 5 struct drm_fb_helper_surface_size; 6 + struct drm_file; 7 7 struct drm_framebuffer; 8 8 struct drm_framebuffer_funcs; 9 9 struct drm_gem_object;