From nobody Tue Apr 7 12:44:50 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DBF2FC433FE for ; Mon, 17 Oct 2022 09:04:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230348AbiJQJEe (ORCPT ); Mon, 17 Oct 2022 05:04:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230470AbiJQJE3 (ORCPT ); Mon, 17 Oct 2022 05:04:29 -0400 Received: from out30-45.freemail.mail.aliyun.com (out30-45.freemail.mail.aliyun.com [115.124.30.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FA43F44 for ; Mon, 17 Oct 2022 02:04:23 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046051;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VSLCnzl_1665997452; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VSLCnzl_1665997452) by smtp.aliyun-inc.com; Mon, 17 Oct 2022 17:04:21 +0800 From: Jiapeng Chong To: alexander.deucher@amd.com Cc: christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] drm/amdgpu: Remove the unused function amdgpu_ucode_print_imu_hdr() Date: Mon, 17 Oct 2022 17:03:52 +0800 Message-Id: <20221017090352.117843-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The function amdgpu_ucode_print_imu_hdr() is defined in the amdgpu_ucode.c file, but not called elsewhere, so delete this unused function. drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c:129:6: warning: no previous proto= type for function 'amdgpu_ucode_print_imu_hdr'. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3D2416 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c b/drivers/gpu/drm/am= d/amdgpu/amdgpu_ucode.c index dd0bc649a57d..148cc2d475c5 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c @@ -126,19 +126,6 @@ void amdgpu_ucode_print_gfx_hdr(const struct common_fi= rmware_header *hdr) } } =20 -void amdgpu_ucode_print_imu_hdr(const struct common_firmware_header *hdr) -{ - uint16_t version_major =3D le16_to_cpu(hdr->header_version_major); - uint16_t version_minor =3D le16_to_cpu(hdr->header_version_minor); - - DRM_DEBUG("IMU\n"); - amdgpu_ucode_print_common_hdr(hdr); - - if (version_major !=3D 1) { - DRM_ERROR("Unknown GFX ucode version: %u.%u\n", version_major, version_m= inor); - } -} - void amdgpu_ucode_print_rlc_hdr(const struct common_firmware_header *hdr) { uint16_t version_major =3D le16_to_cpu(hdr->header_version_major); --=20 2.20.1.7.g153144c