Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp382645pxm; Tue, 22 Feb 2022 12:55:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJxob7yCTdEkedjJMczEbAZ51i78s468gnp+NU9/dcWDJTmSfxalsryvvwbImj+7QSM8ZofJ X-Received: by 2002:a50:f699:0:b0:40f:c125:8c04 with SMTP id d25-20020a50f699000000b0040fc1258c04mr28269806edn.254.1645563313017; Tue, 22 Feb 2022 12:55:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645563313; cv=none; d=google.com; s=arc-20160816; b=inpubtBE9JHtxMgynFn6hrIHiI2cqIx1HHOlBQEpZ4JWKs3j/5TG66UlyC2HK2D5yK NTWr+dAtZ+li/3yhXkGTZyT0owu61bAM6G1aJn8WHJN0Dl/TBqWTNGHd3q4K7ew1vuJ6 4wzazRuPy9OTHMoGNfmTubrpIs0vbdmCv9L7oMQb8qE8uGvAWMspsaErI10bVv3EBPJ5 zT27CpSziXeWjavKRwfquzqLA+dhEI8mpCOzg8/qAqqvC/Xn8q0wER/HlpSuIhhzpCPl 4YhbJqn7DliBaKhj3pJ11FuykYe7Cd1zlhQ+c368i4iGSxsc6Bampfzd7MaRHE+LeoEV TRNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=eSk/B5akCpkVV7QxSZtURlOxcgNjBBC3d9BzaaHV+Yo=; b=j9qRaUADSC8p7nmzpEGOdGShSojUAUROe7RJYa46fdQIIXnw0VDgxBTuUP/CNO58N2 wNvNAdw+huuB09bQk6fpe5dR2Jffqb7zoO4Glfgrh5DNQYys1bsgJ2zxjnp5MQeYXJbQ WppRbxCfxSQ972o733ua6TpfhLuLNl/yKEEGaOcrsiwkYqfpq2T9HPuAyF/cXTs0UVfP ew9lNP7WfNJuuMN1CWkChJXlM/20OCuY421B9Et+EcryC8ASPM+9FoZrxaCK1y6rEOCA 7kDZ466W/Gb03BmUY7utzhLcNnzoHNvx9WTE3AX7KIPRASRrqOu5lCYXpZkAdyUk1/mx BhkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aXvHXnms; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u6si10482232ejn.818.2022.02.22.12.54.49; Tue, 22 Feb 2022 12:55:12 -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=@gmail.com header.s=20210112 header.b=aXvHXnms; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233386AbiBVQai (ORCPT + 99 others); Tue, 22 Feb 2022 11:30:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231695AbiBVQag (ORCPT ); Tue, 22 Feb 2022 11:30:36 -0500 Received: from mail-oo1-xc35.google.com (mail-oo1-xc35.google.com [IPv6:2607:f8b0:4864:20::c35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FBD0166E1B for ; Tue, 22 Feb 2022 08:30:10 -0800 (PST) Received: by mail-oo1-xc35.google.com with SMTP id p206-20020a4a2fd7000000b0031bfec11983so18270820oop.13 for ; Tue, 22 Feb 2022 08:30:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=eSk/B5akCpkVV7QxSZtURlOxcgNjBBC3d9BzaaHV+Yo=; b=aXvHXnmshI/v4gnEa7KQ/u5AnLl0KUHmoodSrXYzKv/VI6xttGqGaV+7DgkVsF2+xN PD31tb6JFeswkMQwQg4OszytvuKhiSW5fnV3GdpOZtF6nqzB4SYhG9I358zOJyNFHV6V ihh/83PRWA2jMmGD2X9nszbPjUvEECJwmm0yKcuggNBXEqq57KJAiAoV6WNFMAM2Na7w 2RPVyoNH4HBwdafAMqVmW2OAIXOUuEKjHMXvmqYUVyH56ClWtBHRx1xAFH6vCaReNfCh 4SRf4gsX+BlxDotxPR7AHmhOmVN77mIU3kg2fUewutUQn8U4Xjkqsx0MzgyLqXaGseNU P3Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=eSk/B5akCpkVV7QxSZtURlOxcgNjBBC3d9BzaaHV+Yo=; b=Ge9zuMuCUIhvwEWwnSLFKmrlcVHpM2NO9OfJYHxISyMAx9VTvzXx345cL+t5wcCuaR zbV9/Wy/paIq0oNIiZcGhDx7IlKW9MPm5ITEhomICQIfFehfasFpZ2VR3IwK+yB+TWEP iRHj8hFB9a4c/Xo3P2suef6aqObNL6r3c2LK5XVOptJZTxLpPXptiyEBHTmBp8qMoDXD PoGxwM+DXuxn26jIQRq0UTSMtIQyurduwQDzfJe4cuJ3QncaHRq+wUZT73Q1XvWr26vX rFDS0lbX1xlXHgSbh+st4DZtF5kZ0hLVpGSQpvamcvvGZEcAT6ZkL7RjHK/P1WNify3+ e4yw== X-Gm-Message-State: AOAM532sSjILgGYQEE24RI1ZF6Xy4pPy8rxW2tWzqTVvVGGjAUW0dZkT 3tynq9nuuvK4GdR0fXhBWVhu71xCzQbdSIlZXwM= X-Received: by 2002:a05:6870:3e0d:b0:d3:fe6d:57c3 with SMTP id lk13-20020a0568703e0d00b000d3fe6d57c3mr2017599oab.225.1645547409808; Tue, 22 Feb 2022 08:30:09 -0800 (PST) MIME-Version: 1.0 References: <20220222131701.356117-1-maira.canal@usp.br> <20220222131701.356117-4-maira.canal@usp.br> In-Reply-To: <20220222131701.356117-4-maira.canal@usp.br> From: Alex Deucher Date: Tue, 22 Feb 2022 11:29:58 -0500 Message-ID: Subject: Re: [PATCH 03/10] drm/amdgpu: Remove unused get_umc_v8_7_channel_index function To: =?UTF-8?B?TWHDrXJhIENhbmFs?= Cc: "Deucher, Alexander" , Christian Koenig , xinhui pan , Hawking Zhang , John Clements , Tao Zhou , "Chai, Thomas" , "Tuikov, Luben" , "Stanley.Yang" , Dennis Li , "Joshi, Mukul" , "Wentland, Harry" , "Leo (Sunpeng) Li" , "Siqueira, Rodrigo" , Anthony Koo , Magali Lemes , LKML , Maling list - DRI developers , mwen@igalia.com, amd-gfx list , Isabella Basso Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Applied. Thanks! Alex On Tue, Feb 22, 2022 at 8:17 AM Ma=C3=ADra Canal wrote= : > > Remove get_umc_v8_7_channel_index function, which is not used > in the codebase. > > This was pointed by clang with the following warning: > > drivers/gpu/drm/amd/amdgpu/umc_v8_7.c:50:24: warning: unused function > 'get_umc_v8_7_channel_index' [-Wunused-function] > static inline uint32_t get_umc_v8_7_channel_index(struct amdgpu_device *a= dev, > ^ > > Signed-off-by: Ma=C3=ADra Canal > --- > drivers/gpu/drm/amd/amdgpu/umc_v8_7.c | 7 ------- > 1 file changed, 7 deletions(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/umc_v8_7.c b/drivers/gpu/drm/amd/= amdgpu/umc_v8_7.c > index de85a998ef99..f35253e0eaa6 100644 > --- a/drivers/gpu/drm/amd/amdgpu/umc_v8_7.c > +++ b/drivers/gpu/drm/amd/amdgpu/umc_v8_7.c > @@ -47,13 +47,6 @@ static inline uint32_t get_umc_v8_7_reg_offset(struct = amdgpu_device *adev, > return adev->umc.channel_offs*ch_inst + UMC_8_INST_DIST*umc_inst; > } > > -static inline uint32_t get_umc_v8_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_ins= t_num + ch_inst]; > -} > - > static void umc_v8_7_ecc_info_query_correctable_error_count(struct amdgp= u_device *adev, > uint32_t umc_inst, uint32= _t ch_inst, > unsigned long *error_coun= t) > -- > 2.35.1 >