Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4206820rwi; Mon, 17 Oct 2022 03:07:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7IFjPPVXU+9HWNugGmzxiOz9h1BBhZVAJ0ZHFQLezS5xn6LgL9wPaoQ7Ff+Pb5QZify6aj X-Received: by 2002:a17:907:2d1e:b0:78e:2c3b:559f with SMTP id gs30-20020a1709072d1e00b0078e2c3b559fmr8002440ejc.435.1666001227309; Mon, 17 Oct 2022 03:07:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666001227; cv=none; d=google.com; s=arc-20160816; b=jWCvnKWDHGhyr9YpZJzZ/jcM87OBsxLTNN6cGYQNB7URu1Ugg1NpuWSunqh9np5AIn PZbkS4heQ7los0yelaEcPU84s49+O24+wRL7pwhRNZJ9ha6oCht0OTGa5HAGyNusIQCS LQEWYhK6VXGsSm6P7aqb3LVo0pXJ18gNwqbLnkypBQ7YYov1yZAdQbP4SINijvZfEiDf Qn5wY0vKoXzxfSY1i68EzleNOnQ/rDKvdpPKX0CV6+OZj+rPGRhVM1ebPyxdDPlzuNyt HTi0h8NFAx35buyoLbJ2hAAyAAGwhhTQ9uS/qeQs2pdjEt1AFAJDmIfd04W37R0fOdTT lk7A== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v4-20020a056402348400b0045cfb639ff2si8544550edc.506.2022.10.17.03.06.41; Mon, 17 Oct 2022 03:07:07 -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 Content-Transfer-Encoding: 8bit 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 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 --- 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); -- 2.20.1.7.g153144c