Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp120522pxm; Tue, 22 Feb 2022 07:25:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJz+McyUisHLkqhJz5oGtlkdVKLlWST15TcCaoayBDTCPxSov9yINRnnw2MfGN5wtqvZFLZB X-Received: by 2002:a05:6402:27cb:b0:412:124:e0db with SMTP id c11-20020a05640227cb00b004120124e0dbmr27320384ede.72.1645543501135; Tue, 22 Feb 2022 07:25:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645543501; cv=none; d=google.com; s=arc-20160816; b=bsCzMOHiEVvSuT8YhNcxkaDDR971XgX3fbqxTU79useQ2RW4ia2P/eB5273t7lxmp1 xFdubywBy2JitQNMSgXwMoBm6uymFPyv5dOrpelNAiiTdphSVvgipLgPMLvH42u5S1h4 9WHqPovvj1jQWlxSoEcg4IBnB4oP+kawNLVQpMnEjwmS/luAF4KHNLRNsJH0yPZw3Tf+ fXoLQNUPpvyooDCpQAMUaKRQLABvmARnFGw/R7siWY9vUOI+NE2BtrKVy9Zm8DfsOynk b9Dita73YYGPuOiDmU0C4hPoYbu43l6lSNki8KeGZC2qxiaaXv18G0wBVJtyzeh7ukea OPLA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ACyjILcPZ7NYc4LHqBI/xMepMYxZRqk3PuvZsYhS/Ak=; b=EnoC9Sw65FErQ34VhI1tfKJ5oQLvgBq0/kQn1viGmKcRooxhTYBNYGKIIDd9nOgFKw jO6sCLQC1/UEcpwBBxsaG/Yn/5GJAaIfhmV9yPlS1SzIhUJid8I5hK+uWHZUSmQ1CTy7 RvfjVDGx0qGCXOodqHlKs1XniHSp/4bBhv88uMVWZAFmE8M8mOHSwbMSGX8+d1p2Fgqf POrpL55f9pBTPCplUNWozbj3pSOoHpB06nFFbKUXNT440RlYwiRxFE/5SY0dMKu1VY/o yqCQ79wUvjQORGY+l8sWVlbhLj4kUi/0CnoKmus8N+EYSKsmZtst/gWHzmKbUNkbe5AL t0rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@usp.br header.s=usp-google header.b=v4JuF4eo; 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=QUARANTINE sp=NONE dis=NONE) header.from=usp.br Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c7si11796145ejd.491.2022.02.22.07.24.36; Tue, 22 Feb 2022 07:25:01 -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=@usp.br header.s=usp-google header.b=v4JuF4eo; 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=QUARANTINE sp=NONE dis=NONE) header.from=usp.br Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232342AbiBVNSj (ORCPT + 99 others); Tue, 22 Feb 2022 08:18:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232348AbiBVNSg (ORCPT ); Tue, 22 Feb 2022 08:18:36 -0500 Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B704C0842 for ; Tue, 22 Feb 2022 05:18:08 -0800 (PST) Received: by mail-oi1-x22c.google.com with SMTP id 12so6386233oix.12 for ; Tue, 22 Feb 2022 05:18:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=usp.br; s=usp-google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ACyjILcPZ7NYc4LHqBI/xMepMYxZRqk3PuvZsYhS/Ak=; b=v4JuF4eo37E18crpKjb/Gy2A7pJWq76VCa+SO0Yq2LZhwxQ80IckHLVEykfxl+nfW6 zOiTv4hSWHNOaMO3uESTI58NF+VpBtZ+ioz74gPPvRewBi5Wm/vNY4R76jnCGHoPc6H1 D4duIjjzalbpwjn4VmFoKeov9xAV/JkbSY0bME9CiQ5EoiVvI/bAL+3PvS4rK8pcTUer fAL6Y8cQdpq2p3zQaGuE84a+1HeTzBv7Vxh8mUZFHbhT28l7rk9/7J139WxWOZ2t9UX0 QfoIZcl0NVgcSrenDt/ZlCfp0kbAjFMyzQUcxgYWD2P6bDQVYoBq0GMddHGGMJx8FiVi Xkgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ACyjILcPZ7NYc4LHqBI/xMepMYxZRqk3PuvZsYhS/Ak=; b=5CnnKn2fWQskCatR4rDImlFuQawYVa1ZdK5Xq3E4jFLZmh1Vs5qkOhTQRDGtZwQuCA 9OxZ5A8SoAKR26mNtSddje9TUWrAKm5lCHaf4h3FE2VMxIm6ATQOUsctp9IZo/g8QYpb 62t3LsOVc4XXICQeIN11WH3qBa6pOZlR2B2LGfHaA3D7z/3JPy3RrJr/asHiJkbwzvYM gHxLtBKwMLC8BIZvlkfqQEMBLpVtPZVuR6Jtg+mHj7vyYwi7JWqTy1UFy+f0Dg9cRRIY fhRqj1FjFIubfiBaZWvoJdN9D2Q5z1jtAfqZskpnLEmW03beOfqpBwwauRtVHVrXdlkL /raw== X-Gm-Message-State: AOAM531gt8mGVr0OfFyyKh2qpA4XZv4JVa31g+LEu6g5XCtEEATENFdn 6vDyhxRD0M8cDVu4AE8emhF7WulLnt7dAu2u X-Received: by 2002:a05:6808:238e:b0:2d4:fe08:9351 with SMTP id bp14-20020a056808238e00b002d4fe089351mr1835703oib.291.1645535887885; Tue, 22 Feb 2022 05:18:07 -0800 (PST) Received: from fedora.. ([187.36.236.204]) by smtp.gmail.com with ESMTPSA id c9sm6325050otd.26.2022.02.22.05.18.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Feb 2022 05:18:07 -0800 (PST) From: =?UTF-8?q?Ma=C3=ADra=20Canal?= To: alexander.deucher@amd.com, christian.koenig@amd.com, Xinhui.Pan@amd.com, Hawking.Zhang@amd.com, john.clements@amd.com, tao.zhou1@amd.com, YiPeng.Chai@amd.com, luben.tuikov@amd.com, Stanley.Yang@amd.com, Dennis.Li@amd.com, mukul.joshi@amd.com, harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, Anthony.Koo@amd.com Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, magalilemes00@gmail.com, mwen@igalia.com, isabbasso@riseup.net, =?UTF-8?q?Ma=C3=ADra=20Canal?= Subject: [PATCH 05/10] drm/amd/display: Remove unused dcn316_smu_set_voltage_via_phyclk function Date: Tue, 22 Feb 2022 10:16:56 -0300 Message-Id: <20220222131701.356117-6-maira.canal@usp.br> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220222131701.356117-1-maira.canal@usp.br> References: <20220222131701.356117-1-maira.canal@usp.br> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Remove dcn316_smu_set_voltage_via_phyclk function, which is not used in the codebase. This was pointed by clang with the following warning: drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn316/dcn316_smu.c:171:5: warning: no previous prototype for function 'dcn316_smu_set_voltage_via_phyclk' [-Wmissing-prototypes] int dcn316_smu_set_voltage_via_phyclk(struct clk_mgr_internal *clk_mgr, int requested_phyclk_khz) ^ Signed-off-by: MaĆ­ra Canal --- .../amd/display/dc/clk_mgr/dcn316/dcn316_smu.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn316/dcn316_smu.c b/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn316/dcn316_smu.c index b7f9e1b34c11..fd6497fd2dc5 100644 --- a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn316/dcn316_smu.c +++ b/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn316/dcn316_smu.c @@ -168,22 +168,6 @@ int dcn316_smu_set_dispclk(struct clk_mgr_internal *clk_mgr, int requested_dispc return actual_dispclk_set_mhz * 1000; } -int dcn316_smu_set_voltage_via_phyclk(struct clk_mgr_internal *clk_mgr, int requested_phyclk_khz) -{ - int actual_phypclk_set_mhz = -1; - - if (!clk_mgr->smu_present && requested_phyclk_khz) - return requested_phyclk_khz; - - /* Unit of SMU msg parameter is Mhz */ - actual_phypclk_set_mhz = dcn316_smu_send_msg_with_param( - clk_mgr, - VBIOSSMC_MSG_SetPhyclkVoltageByFreq, - khz_to_mhz_ceil(requested_phyclk_khz)); - - return actual_phypclk_set_mhz * 1000; -} - int dcn316_smu_set_hard_min_dcfclk(struct clk_mgr_internal *clk_mgr, int requested_dcfclk_khz) { int actual_dcfclk_set_mhz = -1; -- 2.35.1