Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4121396rwi; Mon, 17 Oct 2022 01:34:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4N+hjff4Ilx7dxzv1ZV60smZV0IfudUGiVXNKHDE7BT/MyfDK/IsXIRrfPJC0BDh4XEjSQ X-Received: by 2002:a65:40c8:0:b0:434:dfee:8dc1 with SMTP id u8-20020a6540c8000000b00434dfee8dc1mr10081003pgp.156.1665995692918; Mon, 17 Oct 2022 01:34:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665995692; cv=none; d=google.com; s=arc-20160816; b=OXH1TAoaXEPdI0umHTierAMGfWxctZQqfGnjDZdTevDonPl0Em2s6TeUQ2xqcN/obO /+1TGvoZ+aFtmnswzrgUL8ERBlDJVngJQN2kkyBxMLaP68R8vGmzXfW/iPkce1LV6ccH 9Qlfu00tdFbH/+fVAnuHUj93If/GGni/C4IsSZI0TsywQQMXWaDnRbgcaf8ZEVMjbk13 iNPMS19abziyk5WCR1R39n6pdbV9pq5OvftnZala5Qw/tiMNzXTbY69QI4dhen3ceE4f WwP+uExsSWZE0x3UWHf49BFKGUqVmKWC6a4KHWPViqDuG0DlnDCMvGCfj371Y/PzR+XJ WSrA== 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=G7v/PovY5VxvWkzxLvXfFwltaAJg+zt1rnQP2Xpv6Fo=; b=CBwyU8/HxO8tQMf2yaX7DjPsbLJ+M73KY6mR/Y1+uWsgtTUyZnpLYg6xGGZ8hasDgI IVlukfL9DetFfCcXxPXmipin/ChUB5o4W2pQMZodWgppmq2TCfMFgSnlrmC3FaB3Ex9G 2eNYnAQ9sZO9h5SylkdSU5rVAq3W7lm33FF5ai0Cue3oy2Aw9HCFseEWGfaxekGCCaPJ QFgw+ZLwGY5HMRgkHsi70PXsZhBwF7IQrMBsyinDRdIo15vG3XCT5QgePuByqN7vehDV GOQ3tuUNcimej6zZv0J8jbLTavm4G4yZaXTFXsqkZ13jKUWHQ04A7QJ1BDYVo9GhbDjX dtzw== 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 m4-20020a170902db0400b0016786f2d1d8si13419391plx.475.2022.10.17.01.34.41; Mon, 17 Oct 2022 01:34:52 -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 S230091AbiJQI3g (ORCPT + 99 others); Mon, 17 Oct 2022 04:29:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230118AbiJQI3d (ORCPT ); Mon, 17 Oct 2022 04:29:33 -0400 Received: from out30-42.freemail.mail.aliyun.com (out30-42.freemail.mail.aliyun.com [115.124.30.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A65DC7D for ; Mon, 17 Oct 2022 01:29:30 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R141e4;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_---0VSLGo6w_1665995358; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VSLGo6w_1665995358) by smtp.aliyun-inc.com; Mon, 17 Oct 2022 16:29:27 +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 get_umc_v6_7_channel_index() Date: Mon, 17 Oct 2022 16:27:28 +0800 Message-Id: <20221017082728.73154-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 get_umc_v6_7_channel_index() is defined in the umc_v6_7.c file, but not called elsewhere, so delete this unused function. drivers/gpu/drm/amd/amdgpu/umc_v6_7.c:60:24: warning: unused function 'get_umc_v6_7_channel_index'. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2413 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/amdgpu/umc_v6_7.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/umc_v6_7.c b/drivers/gpu/drm/amd/amdgpu/umc_v6_7.c index 5d5d031c9e7d..6837fc89ba8f 100644 --- a/drivers/gpu/drm/amd/amdgpu/umc_v6_7.c +++ b/drivers/gpu/drm/amd/amdgpu/umc_v6_7.c @@ -57,13 +57,6 @@ static inline uint32_t get_umc_v6_7_reg_offset(struct amdgpu_device *adev, return adev->umc.channel_offs * ch_inst + UMC_V6_7_INST_DIST * umc_inst; } -static inline uint32_t get_umc_v6_7_channel_index(struct amdgpu_device *adev, - uint32_t umc_inst, - uint32_t ch_inst) -{ - return adev->umc.channel_idx_tbl[umc_inst * adev->umc.channel_inst_num + ch_inst]; -} - static void umc_v6_7_query_error_status_helper(struct amdgpu_device *adev, uint64_t mc_umc_status, uint32_t umc_reg_offset) { -- 2.20.1.7.g153144c