From patchwork Mon Oct 17 09:03:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiapeng Chong X-Patchwork-Id: 3296 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1345079wrs; Mon, 17 Oct 2022 02:10:39 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7IDGOT5Ww6uCqB/K9nvuWIbOHWDPOKJZ20Gss+Rd5RBFdIdOpFf+U7KOpa3HoZenxQOk1g X-Received: by 2002:a17:902:b48b:b0:182:42ce:5779 with SMTP id y11-20020a170902b48b00b0018242ce5779mr11299576plr.103.1665997838724; Mon, 17 Oct 2022 02:10:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665997838; cv=none; d=google.com; s=arc-20160816; b=keE/DZaTfW9Iym4s9oxZMzxXzl/a5ATR3izbszdTQQnzPthpYlCFDrvxIycDqi1kM4 cA/rRn9x25dVf2mJgKYPnWzERlCw2URkWtzdBrLG1W/+e8xdaxzaBXlmoiUJazErtuvY uWG253Wi7iHuv011x29xJrqQXcRGddjMmNO/mnMYfJbfGx1LSPtcAcETicIgpp+oXiq1 CsclVks1rSmbv3PzlhKzqeamhLxp7PTtpz4YGTqdfsK81QVCW1/hYlidqa+u8FCnL8Ef tPgQXMg7HzDh4Umxy55N5sgwPAVGuXL/HeXbCe9hBQLhBmgLGWC8b6V43eRdZzjrCBui a5oA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=P3rIYw6H0zF9iLKKE36wheIIaOnjKScFWmUc81lYnIE=; b=pGQP8J+/uhSn1n6wTPD3RxM6KBmXkMX08tejFwsL7mZbheEjYJ6LVfYuLN9oRujODk iOSiPTCKISIGZ+2H5l/hDR/MkMZb5VPviyEpAK880po3ROxDtqgn+SPLlGGdFVp4fos7 2ti5L1T0hSaYFrMnFEdqDCiX2S4ylpGi+/OoDKhpgFyPTy7cM8CpQeV8KRoFzHnLCj3b 6hIx+MV1KrIKPew0IYttgkL/X/U3Y3w5m1buAuf1as9ogO9U8dCPqUbn90i0s2hDJUl/ c91XIWZMg6j+VYo1c98pA5S60i65obY4+BlEcjG/Px6P0waDyxZrVdKUcNS2Sgjiob61 U9nA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b7-20020a170903228700b0017f57787a52si13771016plh.194.2022.10.17.02.10.22; Mon, 17 Oct 2022 02:10:38 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230349AbiJQJEc (ORCPT + 99 others); Mon, 17 Oct 2022 05:04:32 -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 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746925349535619137?= X-GMAIL-MSGID: =?utf-8?q?1746925349535619137?= 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 prototype for function 'amdgpu_ucode_print_imu_hdr'. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2416 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/amd/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_firmware_header *hdr) } } -void amdgpu_ucode_print_imu_hdr(const struct common_firmware_header *hdr) -{ - uint16_t version_major = le16_to_cpu(hdr->header_version_major); - uint16_t version_minor = le16_to_cpu(hdr->header_version_minor); - - DRM_DEBUG("IMU\n"); - amdgpu_ucode_print_common_hdr(hdr); - - if (version_major != 1) { - DRM_ERROR("Unknown GFX ucode version: %u.%u\n", version_major, version_minor); - } -} - void amdgpu_ucode_print_rlc_hdr(const struct common_firmware_header *hdr) { uint16_t version_major = le16_to_cpu(hdr->header_version_major);