Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp318995rwj; Thu, 22 Dec 2022 08:07:35 -0800 (PST) X-Google-Smtp-Source: AMrXdXtS+5gURFyjYe1fPJYtop+hIqN27rwWujeE5yHEqIgB0j0yvQwy11Foj0xgO7TS3ZNQXNfi X-Received: by 2002:a17:90a:9f86:b0:225:ab78:dbaa with SMTP id o6-20020a17090a9f8600b00225ab78dbaamr4976286pjp.20.1671725254822; Thu, 22 Dec 2022 08:07:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1671725254; cv=pass; d=google.com; s=arc-20160816; b=D85+Zzb+FXoFxvBCN4zCb7FgEhaHfqFB/nz0kFCHZgEQf7Eb6oiVMPZdkHbBf/HLVV 9VKnEUlnShNva46S0tv7uo3ba+/UyV6Bx7AySJdi2l2irQCdRQmZGDykdlG1HcNBkLJy MqvS7jgfaSE9b9pf8tydeCs45PutWXn9FHg/tDXPZe9z1oNJidfkhwyoq+xrvZcSSR5w 8w2duixS0O2ofvwS8CiSY1uQc55lEDrDLfx+Uc1cOTl4kOhouYLBM923Ep1OAzBvmEeG Io/PU56jKSrUuess4W0HSBlaz0Vn/0L3SI0UHvK/EfialPTI2Sx4sVBRwDA+j8sp3GuG 2Gsg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:subject:message-id:cc:to:from :dkim-signature; bh=5Ezsab/SJIPW8msHLb3IbOWyHUXiaEELHWoNOzQwCYY=; b=DC+LK8lzLA8heFRIzDogBQVJNA65LLaszNC6S2njLAhvZHrNcjd0lVh89d2CVW6ubn h9MKD315umWxVdhdR05g7l7SPbF4cye/kuhudkj3jyktl9pFZzJAveQ668lo5zjpnL5+ 5Kn5WAIOfcvYgyTHSYe4SbU4GfFpU+xZzMzTOm+sjn8u4BWGMVhdffpXON99bLkx2SQu JJl1e3OE3UqrymwQz+HD1+CwlGy6ttE/27cccPcUZ0r16WuCYHsbaweXHOQDvRuvQaxF tSJqmxjj7Bmm72hztCH9etXukZD/XFl+60llwNITKje7FnKhEB5oI0REJM5JmwuJ149g P5nQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siddh.me header.s=zmail header.b=coaSX8Yf; arc=pass (i=1 spf=pass spfdomain=siddh.me dkim=pass dkdomain=siddh.me dmarc=pass fromdomain=siddh.me>); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siddh.me Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sc17-20020a17090b511100b002190e2130ffsi4941408pjb.56.2022.12.22.08.07.26; Thu, 22 Dec 2022 08:07:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@siddh.me header.s=zmail header.b=coaSX8Yf; arc=pass (i=1 spf=pass spfdomain=siddh.me dkim=pass dkdomain=siddh.me dmarc=pass fromdomain=siddh.me>); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siddh.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235288AbiLVPlr (ORCPT + 67 others); Thu, 22 Dec 2022 10:41:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230194AbiLVPlb (ORCPT ); Thu, 22 Dec 2022 10:41:31 -0500 Received: from sender-of-o50.zoho.in (sender-of-o50.zoho.in [103.117.158.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90C10BE23 for ; Thu, 22 Dec 2022 07:41:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671723649; cv=none; d=zohomail.in; s=zohoarc; b=OGc3S6BSVkB0Xxj7+TdALZC8ijXyM3l18GGKS2MQDM070otYGmHGMsHQn9FwEw2d89MTQKG27QvfeRXwKgXqeGnb46n/z0LihKj8EdFFgkUf85VoZp4kg6HMRH6FpfOKJKbskQjTkjni916jgFVeM/l8HQBS/3AEHmBXU3GMWAc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.in; s=zohoarc; t=1671723649; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=5Ezsab/SJIPW8msHLb3IbOWyHUXiaEELHWoNOzQwCYY=; b=CazyLRHmBGsM2eHMkxAa3A5D2RSja61XQh2wbp/bOSI+ZweMQdAMQHjDNUZD7pB7/XZqfBVnO/fnauSBSKgQO77oDIzd88PjBQDyEBnmeJSJT7rhKbeXGtGynA/rb6HOPBkHo5q0M2F3hWid/7214gBUzEAZlcNFyTbA5smMBg0= ARC-Authentication-Results: i=1; mx.zohomail.in; dkim=pass header.i=siddh.me; spf=pass smtp.mailfrom=code@siddh.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1671723649; s=zmail; d=siddh.me; i=code@siddh.me; h=From:From:To:To:Cc:Cc:Message-ID:Subject:Subject:Date:Date:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Content-Type:Message-Id:Reply-To; bh=5Ezsab/SJIPW8msHLb3IbOWyHUXiaEELHWoNOzQwCYY=; b=coaSX8YfbwkyLiC/oYoiI0GgafNIE2Q0S9dMrg5n5GBGCprAjgJ9KeFPMz/bOcaq +IoM0IcJE1g7pcTnjIH/RHMLRSY1EAxJ0SOXcLle6az5TxPvUw8+fGOChbMDdm/E9z6 yQBO1bXv9VE4R0F171Tw3TX68cSmiGiTJ3d+UBXI= Received: from kampyooter.. (110.226.31.37 [110.226.31.37]) by mx.zoho.in with SMTPS id 1671723647969829.3605120340601; Thu, 22 Dec 2022 21:10:47 +0530 (IST) From: Siddh Raman Pant To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Simon Ser Cc: dri-devel , linux-kernel Message-ID: <17b19f99a11d80febc21a7dbcd4fe60b4b9d694f.1671723195.git.code@siddh.me> Subject: [PATCH v2 2/9] drm: Remove usage of deprecated DRM_ERROR Date: Thu, 22 Dec 2022 21:10:36 +0530 X-Mailer: git-send-email 2.35.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Content-Type: text/plain; charset=utf8 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org drm_print.h says DRM_ERROR is deprecated. Thus, use newer printing macros drm_err() and pr_err(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_bridge.c | 8 ++++---- drivers/gpu/drm/drm_bufs.c | 8 ++++---- drivers/gpu/drm/drm_client_modeset.c | 4 ++-- drivers/gpu/drm/drm_context.c | 4 ++-- drivers/gpu/drm/drm_crtc_helper.c | 6 +++--- drivers/gpu/drm/drm_debugfs_crc.c | 3 ++- drivers/gpu/drm/drm_drv.c | 8 ++++---- drivers/gpu/drm/drm_framebuffer.c | 3 ++- drivers/gpu/drm/drm_gem.c | 2 +- drivers/gpu/drm/drm_gem_dma_helper.c | 2 +- drivers/gpu/drm/drm_mipi_dbi.c | 2 +- drivers/gpu/drm/drm_mode_config.c | 2 +- drivers/gpu/drm/drm_modeset_helper.c | 2 +- drivers/gpu/drm/drm_plane.c | 2 +- drivers/gpu/drm/drm_scatter.c | 9 +++++---- drivers/gpu/drm/drm_vm.c | 2 +- 16 files changed, 35 insertions(+), 32 deletions(-) diff --git a/drivers/gpu/drm/drm_bridge.c b/drivers/gpu/drm/drm_bridge.c index 1545c50fd1c8..20a8cde70640 100644 --- a/drivers/gpu/drm/drm_bridge.c +++ b/drivers/gpu/drm/drm_bridge.c @@ -312,11 +312,11 @@ int drm_bridge_attach(struct drm_encoder *encoder, st= ruct drm_bridge *bridge, =09list_del(&bridge->chain_node); =20 #ifdef CONFIG_OF -=09DRM_ERROR("failed to attach bridge %pOF to encoder %s: %d\n", -=09=09 bridge->of_node, encoder->name, ret); +=09drm_err(encoder->dev, "failed to attach bridge %pOF to encoder %s: %d\n= ", +=09=09bridge->of_node, encoder->name, ret); #else -=09DRM_ERROR("failed to attach bridge to encoder %s: %d\n", -=09=09 encoder->name, ret); +=09drm_err(encoder->dev, "failed to attach bridge to encoder %s: %d\n", +=09=09encoder->name, ret); #endif =20 =09return ret; diff --git a/drivers/gpu/drm/drm_bufs.c b/drivers/gpu/drm/drm_bufs.c index fcca21e8efac..98aaf3379a3b 100644 --- a/drivers/gpu/drm/drm_bufs.c +++ b/drivers/gpu/drm/drm_bufs.c @@ -1474,15 +1474,15 @@ int drm_legacy_freebufs(struct drm_device *dev, voi= d *data, =09=09if (copy_from_user(&idx, &request->list[i], sizeof(idx))) =09=09=09return -EFAULT; =09=09if (idx < 0 || idx >=3D dma->buf_count) { -=09=09=09DRM_ERROR("Index %d (of %d max)\n", -=09=09=09=09 idx, dma->buf_count - 1); +=09=09=09drm_err(dev, "Index %d (of %d max)\n", +=09=09=09=09idx, dma->buf_count - 1); =09=09=09return -EINVAL; =09=09} =09=09idx =3D array_index_nospec(idx, dma->buf_count); =09=09buf =3D dma->buflist[idx]; =09=09if (buf->file_priv !=3D file_priv) { -=09=09=09DRM_ERROR("Process %d freeing buffer not owned\n", -=09=09=09=09 task_pid_nr(current)); +=09=09=09drm_err(dev, "Process %d freeing buffer not owned\n", +=09=09=09=09task_pid_nr(current)); =09=09=09return -EINVAL; =09=09} =09=09drm_legacy_free_buffer(dev, buf); diff --git a/drivers/gpu/drm/drm_client_modeset.c b/drivers/gpu/drm/drm_cli= ent_modeset.c index 2b76d4828c5f..c4517dea924e 100644 --- a/drivers/gpu/drm/drm_client_modeset.c +++ b/drivers/gpu/drm/drm_client_modeset.c @@ -812,7 +812,7 @@ int drm_client_modeset_probe(struct drm_client_dev *cli= ent, unsigned int width, =09offsets =3D kcalloc(connector_count, sizeof(*offsets), GFP_KERNEL); =09enabled =3D kcalloc(connector_count, sizeof(bool), GFP_KERNEL); =09if (!crtcs || !modes || !enabled || !offsets) { -=09=09DRM_ERROR("Memory allocation failed\n"); +=09=09drm_err(client->dev, "Memory allocation failed\n"); =09=09ret =3D -ENOMEM; =09=09goto out; =09} @@ -836,7 +836,7 @@ int drm_client_modeset_probe(struct drm_client_dev *cli= ent, unsigned int width, =09=09=09=09=09 offsets, enabled, width, height) && =09=09 !drm_client_target_preferred(connectors, connector_count, modes, =09=09=09=09=09=09 offsets, enabled, width, height)) -=09=09=09DRM_ERROR("Unable to find initial modes\n"); +=09=09=09drm_err(client->dev, "Unable to find initial modes\n"); =20 =09=09DRM_DEBUG_KMS("picking CRTCs for %dx%d config\n", =09=09=09 width, height); diff --git a/drivers/gpu/drm/drm_context.c b/drivers/gpu/drm/drm_context.c index c6e6a3e7219a..f6d68fad8311 100644 --- a/drivers/gpu/drm/drm_context.c +++ b/drivers/gpu/drm/drm_context.c @@ -276,7 +276,7 @@ int drm_legacy_setsareactx(struct drm_device *dev, void= *data, static int drm_context_switch(struct drm_device * dev, int old, int new) { =09if (test_and_set_bit(0, &dev->context_flag)) { -=09=09DRM_ERROR("Reentering -- FIXME\n"); +=09=09drm_err(dev, "Reentering -- FIXME\n"); =09=09return -EBUSY; =09} =20 @@ -307,7 +307,7 @@ static int drm_context_switch_complete(struct drm_devic= e *dev, =09dev->last_context =3D new;=09/* PRE/POST: This is the _only_ writer. */ =20 =09if (!_DRM_LOCK_IS_HELD(file_priv->master->lock.hw_lock->lock)) { -=09=09DRM_ERROR("Lock isn't held after context switch\n"); +=09=09drm_err(dev, "Lock isn't held after context switch\n"); =09} =20 =09/* If a context switch is ever initiated diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_h= elper.c index a209659a996c..ab41dc180c58 100644 --- a/drivers/gpu/drm/drm_crtc_helper.c +++ b/drivers/gpu/drm/drm_crtc_helper.c @@ -768,8 +768,8 @@ int drm_crtc_helper_set_config(struct drm_mode_set *set= , =09=09=09if (!drm_crtc_helper_set_mode(set->crtc, set->mode, =09=09=09=09=09=09 set->x, set->y, =09=09=09=09=09=09 save_set.fb)) { -=09=09=09=09DRM_ERROR("failed to set mode on [CRTC:%d:%s]\n", -=09=09=09=09=09 set->crtc->base.id, set->crtc->name); +=09=09=09=09drm_err(dev, "failed to set mode on [CRTC:%d:%s]\n", +=09=09=09=09=09set->crtc->base.id, set->crtc->name); =09=09=09=09set->crtc->primary->fb =3D save_set.fb; =09=09=09=09ret =3D -EINVAL; =09=09=09=09goto fail; @@ -996,7 +996,7 @@ void drm_helper_resume_force_mode(struct drm_device *de= v) =20 =09=09/* Restoring the old config should never fail! */ =09=09if (ret =3D=3D false) -=09=09=09DRM_ERROR("failed to set mode on crtc %p\n", crtc); +=09=09=09drm_err(dev, "failed to set mode on crtc %p\n", crtc); =20 =09=09/* Turn off outputs that were already powered off */ =09=09if (drm_helper_choose_crtc_dpms(crtc)) { diff --git a/drivers/gpu/drm/drm_debugfs_crc.c b/drivers/gpu/drm/drm_debugf= s_crc.c index bbc3bc4ba844..a59ef3f0e4a1 100644 --- a/drivers/gpu/drm/drm_debugfs_crc.c +++ b/drivers/gpu/drm/drm_debugfs_crc.c @@ -416,7 +416,8 @@ int drm_crtc_add_crc_entry(struct drm_crtc *crtc, bool = has_frame, =09=09spin_unlock_irqrestore(&crc->lock, flags); =20 =09=09if (!was_overflow) -=09=09=09DRM_ERROR("Overflow of CRC buffer, userspace reads too slow.\n"); +=09=09=09drm_err(crtc->dev, +=09=09=09=09"Overflow of CRC buffer, userspace reads too slow.\n"); =20 =09=09return -ENOBUFS; =09} diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c index bc98e4bcf2c1..1295ecd98f12 100644 --- a/drivers/gpu/drm/drm_drv.c +++ b/drivers/gpu/drm/drm_drv.c @@ -177,7 +177,7 @@ static int drm_minor_register(struct drm_device *dev, u= nsigned int type) =09} else { =09=09ret =3D drm_debugfs_init(minor, minor->index, drm_debugfs_root); =09=09if (ret) { -=09=09=09DRM_ERROR("DRM: Failed to initialize /sys/kernel/debug/dri.\n"); +=09=09=09drm_err(dev, "DRM: Failed to initialize /sys/kernel/debug/dri.\n"= ); =09=09=09goto err_debugfs; =09=09} =09} @@ -629,7 +629,7 @@ static int drm_dev_init(struct drm_device *dev, =09if (drm_core_check_feature(dev, DRIVER_COMPUTE_ACCEL) && =09=09=09=09(drm_core_check_feature(dev, DRIVER_RENDER) || =09=09=09=09drm_core_check_feature(dev, DRIVER_MODESET))) { -=09=09DRM_ERROR("DRM driver can't be both a compute acceleration and graph= ics driver\n"); +=09=09drm_err(dev, "DRM driver can't be both a compute acceleration and gr= aphics driver\n"); =09=09return -EINVAL; =09} =20 @@ -652,7 +652,7 @@ static int drm_dev_init(struct drm_device *dev, =09inode =3D drm_fs_inode_new(); =09if (IS_ERR(inode)) { =09=09ret =3D PTR_ERR(inode); -=09=09DRM_ERROR("Cannot allocate anonymous inode: %d\n", ret); +=09=09drm_err(dev, "Cannot allocate anonymous inode: %d\n", ret); =09=09goto err; =09} =20 @@ -683,7 +683,7 @@ static int drm_dev_init(struct drm_device *dev, =09if (drm_core_check_feature(dev, DRIVER_GEM)) { =09=09ret =3D drm_gem_init(dev); =09=09if (ret) { -=09=09=09DRM_ERROR("Cannot initialize graphics execution manager (GEM)\n")= ; +=09=09=09drm_err(dev, "Cannot initialize graphics execution manager (GEM)\= n"); =09=09=09goto err; =09=09} =09} diff --git a/drivers/gpu/drm/drm_framebuffer.c b/drivers/gpu/drm/drm_frameb= uffer.c index 2dd97473ca10..5aea791f4341 100644 --- a/drivers/gpu/drm/drm_framebuffer.c +++ b/drivers/gpu/drm/drm_framebuffer.c @@ -1070,7 +1070,8 @@ static void legacy_remove_fb(struct drm_framebuffer *= fb) =20 =09=09=09/* should turn off the crtc */ =09=09=09if (drm_crtc_force_disable(crtc)) -=09=09=09=09DRM_ERROR("failed to reset crtc %p when fb was deleted\n", crt= c); +=09=09=09=09drm_err(dev, "failed to reset crtc %p when fb was deleted\n", +=09=09=09=09=09crtc); =09=09} =09} =20 diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c index b8db675e7fb5..3c99610afc0a 100644 --- a/drivers/gpu/drm/drm_gem.c +++ b/drivers/gpu/drm/drm_gem.c @@ -101,7 +101,7 @@ drm_gem_init(struct drm_device *dev) =09vma_offset_manager =3D drmm_kzalloc(dev, sizeof(*vma_offset_manager), =09=09=09=09=09 GFP_KERNEL); =09if (!vma_offset_manager) { -=09=09DRM_ERROR("out of memory\n"); +=09=09drm_err(dev, "out of memory\n"); =09=09return -ENOMEM; =09} =20 diff --git a/drivers/gpu/drm/drm_gem_dma_helper.c b/drivers/gpu/drm/drm_gem= _dma_helper.c index 1e658c448366..1ba551b0ab97 100644 --- a/drivers/gpu/drm/drm_gem_dma_helper.c +++ b/drivers/gpu/drm/drm_gem_dma_helper.c @@ -583,7 +583,7 @@ drm_gem_dma_prime_import_sg_table_vmap(struct drm_devic= e *dev, =20 =09ret =3D dma_buf_vmap_unlocked(attach->dmabuf, &map); =09if (ret) { -=09=09DRM_ERROR("Failed to vmap PRIME buffer\n"); +=09=09drm_err(dev, "Failed to vmap PRIME buffer\n"); =09=09return ERR_PTR(ret); =09} =20 diff --git a/drivers/gpu/drm/drm_mipi_dbi.c b/drivers/gpu/drm/drm_mipi_dbi.= c index a6ac56580876..24af507bb687 100644 --- a/drivers/gpu/drm/drm_mipi_dbi.c +++ b/drivers/gpu/drm/drm_mipi_dbi.c @@ -527,7 +527,7 @@ int mipi_dbi_dev_init_with_formats(struct mipi_dbi_dev = *dbidev, =09drm_mode_copy(&dbidev->mode, mode); =09ret =3D mipi_dbi_rotate_mode(&dbidev->mode, rotation); =09if (ret) { -=09=09DRM_ERROR("Illegal rotation value %u\n", rotation); +=09=09drm_err(drm, "Illegal rotation value %u\n", rotation); =09=09return -EINVAL; =09} =20 diff --git a/drivers/gpu/drm/drm_mode_config.c b/drivers/gpu/drm/drm_mode_c= onfig.c index 688c8afe0bf1..5dab605520b1 100644 --- a/drivers/gpu/drm/drm_mode_config.c +++ b/drivers/gpu/drm/drm_mode_config.c @@ -505,7 +505,7 @@ void drm_mode_config_cleanup(struct drm_device *dev) =09if (WARN_ON(!list_empty(&dev->mode_config.connector_list))) { =09=09drm_connector_list_iter_begin(dev, &conn_iter); =09=09drm_for_each_connector_iter(connector, &conn_iter) -=09=09=09DRM_ERROR("connector %s leaked!\n", connector->name); +=09=09=09drm_err(dev, "connector %s leaked!\n", connector->name); =09=09drm_connector_list_iter_end(&conn_iter); =09} =20 diff --git a/drivers/gpu/drm/drm_modeset_helper.c b/drivers/gpu/drm/drm_mod= eset_helper.c index f858dfedf2cf..e26b0285dde6 100644 --- a/drivers/gpu/drm/drm_modeset_helper.c +++ b/drivers/gpu/drm/drm_modeset_helper.c @@ -235,7 +235,7 @@ int drm_mode_config_helper_resume(struct drm_device *de= v) =20 =09ret =3D drm_atomic_helper_resume(dev, dev->mode_config.suspend_state); =09if (ret) -=09=09DRM_ERROR("Failed to resume (%d)\n", ret); +=09=09drm_err(dev, "Failed to resume (%d)\n", ret); =09dev->mode_config.suspend_state =3D NULL; =20 =09drm_fb_helper_set_suspend_unlocked(dev->fb_helper, 0); diff --git a/drivers/gpu/drm/drm_plane.c b/drivers/gpu/drm/drm_plane.c index 33357629a7f5..a650f06e4cea 100644 --- a/drivers/gpu/drm/drm_plane.c +++ b/drivers/gpu/drm/drm_plane.c @@ -606,7 +606,7 @@ void drm_plane_force_disable(struct drm_plane *plane) =09plane->old_fb =3D plane->fb; =09ret =3D plane->funcs->disable_plane(plane, NULL); =09if (ret) { -=09=09DRM_ERROR("failed to disable plane with busy fb\n"); +=09=09drm_err(plane->dev, "failed to disable plane with busy fb\n"); =09=09plane->old_fb =3D NULL; =09=09return; =09} diff --git a/drivers/gpu/drm/drm_scatter.c b/drivers/gpu/drm/drm_scatter.c index f4e6184d1877..5b0b2140d535 100644 --- a/drivers/gpu/drm/drm_scatter.c +++ b/drivers/gpu/drm/drm_scatter.c @@ -170,9 +170,10 @@ int drm_legacy_sg_alloc(struct drm_device *dev, void *= data, =09=09=09 j++, tmp++) { =09=09=09=09if (*tmp !=3D 0xcafebabe && error =3D=3D 0) { =09=09=09=09=09error =3D 1; -=09=09=09=09=09DRM_ERROR("Scatter allocation error, " -=09=09=09=09=09=09 "pagelist does not match " -=09=09=09=09=09=09 "virtual mapping\n"); +=09=09=09=09=09drm_err(dev, +=09=09=09=09=09=09"Scatter allocation error, " +=09=09=09=09=09=09"pagelist does not match " +=09=09=09=09=09=09"virtual mapping\n"); =09=09=09=09} =09=09=09} =09=09=09tmp =3D page_address(entry->pagelist[i]); @@ -183,7 +184,7 @@ int drm_legacy_sg_alloc(struct drm_device *dev, void *d= ata, =09=09=09} =09=09} =09=09if (error =3D=3D 0) -=09=09=09DRM_ERROR("Scatter allocation matches pagelist\n"); +=09=09=09drm_err(dev, "Scatter allocation matches pagelist\n"); =09} #endif =20 diff --git a/drivers/gpu/drm/drm_vm.c b/drivers/gpu/drm/drm_vm.c index f024dc93939e..cdb956af2079 100644 --- a/drivers/gpu/drm/drm_vm.c +++ b/drivers/gpu/drm/drm_vm.c @@ -547,7 +547,7 @@ static int drm_mmap_locked(struct file *filp, struct vm= _area_struct *vma) =09=09return drm_mmap_dma(filp, vma); =20 =09if (drm_ht_find_item(&dev->map_hash, vma->vm_pgoff, &hash)) { -=09=09DRM_ERROR("Could not find map\n"); +=09=09drm_err(dev, "Could not find map\n"); =09=09return -EINVAL; =09} =20 --=20 2.35.1